I installed the 32-bit and 64-bit Oracle 11g drivers. I search my computer to search for files named "tnsnames.ora" and found 3 in the following places:
1. C:\Oracle\product\11203_32bit\CLIENT_1\NETWORK\ADMIN 2. C:\Oracle\product\11203_64bit\CLIENT_1\NETWORK\ADMIN 3. C:\Windows\TNS
The existence of the third place in the tnsnames.ora file surprises me.
The following Oracle clients are installed on my computer:
"C:\Program Files (x86)\Quest Software\Toad for Oracle 11.6\Toad.exe" "C:\Program Files\Devart\dbForge Studio Express for Oracle\dbforgeoracle.exe"
Depending on the location of each program (Program Files (x86) and c: \ Program Files), this means that Toad, a 32-bit program, should use a 32-bit driver, and dbForge should use 64 bits.
dbForge seems to use the tnsnames.ora file anywhere # 2 or # 3. I know this by systematically renaming everything except one of the tns files, and then checking to see if the connection names from the file are available when you try to create a new connection with using the application.
However, TOAD seems to only recognize the tnsnames.ora file at location # 3 and does not recognize the tnsnames.ora file at location 2 at all! (Since it was a 32-bit program, I did not expect it to recognize the tns file in location 2, and that was so). To summarize the TOAD test for reliable clarity, TOAD only recognized the tns file at location 3.
Other colleagues do not have a tns file at location 3 on their machines. I am not sure why I am doing this. When I launch Toad, it shows the following 2 Home, with the 32-bit Home as active.
OraClient11g_home1 (11.2.0.3) ORACLE_HOME:C:\app\C39293\product\11.2.0\client_1 ORACLE_HOME_NAME:OraClient11g_home1 ORACLE_HOME_KEY:HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraClient11g_home1 ORACLE_SID: NLS_LANG:AMERICAN_AMERICA.WE8MSWIN1252 SQLPATH: LOCAL: Client DLL:C:\app\C39293\product\11.2.0\client_1\oci.dll TNSNames.ora: SQLNet.ora: LDAP.ora: Login.sql: GLogin.sql: In system PATH:No Home is valid:No OraClient11g_home1_32bit (11.2.0.3) ORACLE_HOME:c:\oracle\product\11203_32bit\CLIENT_1 ORACLE_HOME_NAME:OraClient11g_home1_32bit ORACLE_HOME_KEY:HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraClient11g_home1_32bit ORACLE_SID: NLS_LANG:AMERICAN_AMERICA.WE8MSWIN1252 SQLPATH:c:\oracle\product\11203_32bit\CLIENT_1\dbs LOCAL: Client DLL:c:\oracle\product\11203_32bit\CLIENT_1\bin\oci.dll TNSNames.ora: SQLNet.ora: LDAP.ora: Login.sql: GLogin.sql:c:\oracle\product\11203_32bit\CLIENT_1\sqlplus\admin\glogin.sql In system PATH:Yes
Q1: Is OraClient11g_home1 my 64-bit home, or do I have two Oracle clients installed?
Q2: Why does the 32-bit TOAD not use tns at location # 1 instead of using only the one located at location # 3?
Q3: If I stay in the tns file in 3rd place, both dbForge and TOAD work, but I would like to know why I can understand exactly how to transfer tns information from one machine to another.