Reputation: 69
I am trying to configure my ODBC for Oracle. I installed Oracle client. I went to the ODBC Data Source Administrator and clicked Add and selected Oracle in OraClient 11g_home. I filled out the DataSource Name, TNS Service Name and UserID. I clicked Test Connection and it gave me the ORA-12154 error.
I realized that I did not specified the TNS_ADMIN path in the registry. Looking at the TNS file, the ODBC connection will look for the tnsnames.ora file for additional information, correct?
So, I googled and found that it states to specified the TNS_ADMIN path to c:\oracle_install_folder\product\11.2.0\client_1\network\admin
I just installed oracle client but not the Administrator install. I checked and did not find the network\admin folder under client_1.
Questions:
Thanks...
Upvotes: 1
Views: 4679
Reputation: 21
You do not need to set the TNS_ADMIN in the registry. The simplest way is to copy your 'tnsnames.ora' file to any place, as long as you set an environment variable TNS_ADMIN that points to the directory that contains the tnsnames.ora file. So the answers are:
You can set the TNS_ADMIN variable through "system properties / advanced properties / Environment variables / system variables"
Upvotes: 0