For example, an Oracle 10 client is installed or Oracle XE is installed. Both contain a home folder with tnsnames.ora. Later, the Oracle 11g instant client + ODBC compontents is added. Now there are two home folders.
In this case, the TNS_ADMIN environment variable needs to exist:
- Create TNS_ADMIN variable via control panel -> system -> advanced -> environment variables -> system variables
- Set is to one of the admin folders, eg.:
c:\oracle\ic_x32_11.2.0.1.0_basiclite\NETWORK\ADMIN
Note: make sure is contains the tnsnames.ora, sqlnet.ora and listener.ora files. - Create a ODBC connection using the Oracle driver and check if the "tns service name" dropdown box contains readable entries
- Just to be sure, replace the body of all other tnsnames.ora files with:
IFILE=c:\oracle\ic_x32_11.2.0.1.0_basiclite\NETWORK\ADMIN
1 comment:
Could also be that windows is appending .txt to the file. Check the file properties, type of file should be ORA (.ora) not Text.
Post a Comment