Unable to connect using Net service name [message #283198] |
Mon, 26 November 2007 06:18 |
caljedi
Messages: 6 Registered: November 2007
|
Junior Member |
|
|
I'm running 10.2.0.3 on a RHEL 4 box. I am able to connect to Oracle locally using :
sqlplus username
however, if i try to login using:
sqlplus username@SID, i get this error message:
================================
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
==================================
My sqlnet.ora file looks like this:
=======================
SQLNET.AUTHENTICATION_SERVICES=(NONE)
NAMES.DEFAULT_DOMAIN = world
NAMES.DIRECTORY_PATH=(TNSNAMES)
=============================
and my tnsnames.ora file looks like this:
===========================
testsid.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 1.2.3.4)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = testsid)
)
)
==================================
I've tried this with both SYSDBA users as well as standard users; also ran TNSPING on the box which returns a success code, so I'm not really sure what I'm missing here. Any help would be greatly appreciated.
|
|
|
|
|
|
Re: Unable to connect using Net service name [message #283210 is a reply to message #283209] |
Mon, 26 November 2007 06:33 |
caljedi
Messages: 6 Registered: November 2007
|
Junior Member |
|
|
Here's how i know that the database is up:
[oracle@testhost admin]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Nov 26 04:32:26 2007
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.3.0 - Production
SQL> select count(1) from tab;
COUNT(1)
----------
3517
|
|
|
Re: Unable to connect using Net service name [message #283213 is a reply to message #283210] |
Mon, 26 November 2007 06:35 |
caljedi
Messages: 6 Registered: November 2007
|
Junior Member |
|
|
and here's the output from TNSPING:
tnsping testsid
TNS Ping Utility for Linux: Version 10.2.0.3.0 - Production on 26-NOV-2007 04:34:32
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
/opt/oracle/product/10gR2/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 1.2.3.4)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = testsid)))
OK (0 msec)
|
|
|
|
|
|
|
Re: Unable to connect using Net service name [message #283228 is a reply to message #283225] |
Mon, 26 November 2007 06:58 |
caljedi
Messages: 6 Registered: November 2007
|
Junior Member |
|
|
==========================================================
SQL> select name from v$database;
NAME
---------
testsid
SQL>
==========================================================
SQL> select instance_name, status from v$instance;
INSTANCE_NAME STATUS
---------------- ------------
testsid OPEN
|
|
|