I have a need to connect to an Oracle 188.8.131.52 database. I have a user
who successfully connects to it with her Oracle 7.3 client. I have an
Oracle 9.2 client installed on my machine.
I had her send me her tnsnames.ora from her PC. The entry I wanted was
as follows (some letters replaced with xxx for security reasons):
xxxora2_prod2 = (DESCRIPTION=
She has an ODBC connection using her Ora 73 client drivers which works
I then add the same entry to my
Now if I ping this hostname, it works fine.
If I tnsping this hostname it works fine.
Used HOSTNAME adapter to resolve the alias
Attempting to contact
OK (70 msec)
If I try and tnsping the tnsname, however, I get an error:
TNS-03505: Failed to resolve name
And if I then try and create an ODBC connection using my client I get a
short wait and then an "Unable to connect" "SQLState=08004" "ORA-12154:
TNS:could not resolve service name" error.
The existing entries in my (9.2 client) tnsnames.ora don't have a SID,
they have a SERVICE_NAME. So I change mine from SID to SERVICE_NAME.
My file now looks like this:
(FAILOVER = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = xxxora2.xxx.xxx.com.au)(PORT
(SERVICE_NAME = prod2)
(INSTANCE_NAME = prod2)
If I now try and create the connection, I get a "Unable to connect"
"SQLState=S1000" "ORA-12705: invalid or unknown NLS parameter value
I have checked my HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\NLS_LANG value
which is AMERICAN_AMERICA.WE8ISO8859P1 so that looks OK.
Does anyone have any ideas?? I am a developer not a DBA and haven't
played with Oracle clients for years.
If I change the port number to 1521 and try again I get a "ORA-12514:
TNS:listener could not resolve SERVICE_NAME given in connect
descriptor" error, but I am just clutching at straws now.
Simon.C...@BHPBilliton.com remove the xxx