By default, tnsnames.ora is located in the $ ORACLE_HOME / network / admin directory on UNIX operating systems and in the ORACLE_HOME \ network \ admin directory on Windows operating systems. tnsnames.ora can also be saved in the following places:
The directory specified by the TNS_ADMIN environment variable (or registry value)
On UNIX operating systems, the global configuration directory. For example, on Solaris, this directory is / var / opt / oracle
If you have multiple ORACLE_HOMES, keep in mind which one you are using, as the location of the tnsnames.ora file can vary from one ORACLE_HOME to another.
For the person who mentions the TWO_TASK environment variable, which is used to set the default database service name for the connection (which may be a database on another server). The name of the service that you installed TWO_TASK is then viewed in the tnsnames.ora file when it connects.
Robert Howlett Aug 31 '08 at 23:05 2008-08-31 23:05
source share