ORA-12154: TNS:could not resolve service name [message #67037] |
Fri, 20 June 2003 03:26 |
JOHN
Messages: 182 Registered: April 1998
|
Senior Member |
|
|
Right then,
I have Oracle client and a version of Oracle Personal Edition running on my Win2k system. The tnsnames.ora and sqlnet.ora files are the same (except for the header line e.g. # TNSNAMES.ORA Network ...
I can tnsping the personal edition instance fine but when I attempt to tnsping the db for which the client is installed I get a TNS-03505: Failed to resolve name. error. The connection data for this remote database appears to be ok in tnsnames.ora. I get the ORA-12154 error when attempting to connect to the remote instance via a SQL client e.g. TOAD.
My tnsnames.ora file is: CTSTEST is remote instance, MyORA817 is personal edition
# TNSNAMES.ORA Network Configuration File: C:OraHome1networkADMINtnsnames.ora
# Generated by Oracle configuration tools.
CTSTEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = DEVDC1)(PORT = 1521))
)
(CONNECT_DATA =
(SID = CTSTEST)
)
)
MYORA817 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ni-cr-cts-3945a)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = MyORA817)
)
)
Weird bit is though, when I got to Net8 Config Assistant, I can test the connection to the remote database fine and cannot connect to the personal edition instance i.e the opposite if what's happening with tnsping. I think the error could have something to do with the CONNECT_DATA string i.e remote uses SID= while personal uses SERVICE_NAME=
In the registry I have two homes i.e. HOME0 and HOME1 which point to the relevant directories.
Anybody know what could be happening ?
|
|
|
|
Re: ORA-12154: TNS:could not resolve service name [message #67039 is a reply to message #67038] |
Mon, 23 June 2003 02:16 |
JOHN
Messages: 182 Registered: April 1998
|
Senior Member |
|
|
No joy I'm afraid.
Added the registry value to both HOME keys so that only one version of tnsnames.ora is used. Also changed format from SID=.... to SERVICE_NAME=... as suggested. Still the same problem.
Is there anything else I can try ?
|
|
|
|
|