ODBC connection error with TNS-12154 [message #307333] |
Tue, 18 March 2008 08:57  |
bbaz
Messages: 138 Registered: April 2007
|
Senior Member |
|
|
Hi All,
I have read several postings related to this problem but non of them seemed to help.
I can connect to my Database from Toad Normally using my TNS name set. I can successfully TNSPING the Service Name and receive 'OK' return. But when I try to set an ODBC connection and create a New DSN, I always get a TNS-12154 error.
I have checked my tnsnames.ora, sqlnet.ora, and listener.ora multiple times and all seem OK. I tried to reconfigure the Service name many times and still cannot create the ODBC connection to the Database.
Attached is Print Screen of the ODBC error and the TNSPING result. Again I can normally access the Database from my machine through Toad and using the same Service Name.
I am assuming the problem is that I have 2 ORACLE DIRECTORIES, one is for the Oracle 9i Client (call it DIR1), and one for Oracle 9i DS (call it DIR2). Although I have configured the TNSNAMES in both, I can only connect using the DS directory (DIR2) settings and TNSNAMES.ora. But the ODBC only recongnizes the TNSNAMES in configured in (DIR1), is there a way to MAP the ODBC to the settings under the second Oracle Directory (i.e. the DS directory), I think if I was able to do this I can get the connection working.
Kindly can you advise.
Regards,
Baz
|
|
|
|
Re: ODBC connection error with TNS-12154 [message #307342 is a reply to message #307335] |
Tue, 18 March 2008 09:15   |
bbaz
Messages: 138 Registered: April 2007
|
Senior Member |
|
|
Here are the contents of the SQLNET.ORA directories:
Under the path: C:\oracle\Oracle9i\network\admin
# SQLNET.ORA Network Configuration File: C:\oracle\Oracle9i\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DEFAULT_DOMAIN = <Our_Domain>.com
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (HOSTNAME, ONAMES)
and Under the path: C:\oracle\Oracle9iDS\network\admin
# SQLNET.ORA Network Configuration File: C:\oracle\Oracle9iDS\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DEFAULT_DOMAIN = <Our_Domain>.com
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)
Thanks anacedent.
Hope this helps.
|
|
|
|
|