The Oracle Networking product's search for configuration files is not standard across platforms and may change from version to version.
Windows NT/2000 running Oracle 9i
First: The directory where the application is launched. For example, if sqlplus resides in
ORACLE_HOME\bin\sqlplus but was launched from the c:\temp directory, then
c:\temp is searched for a tnsnames.ora file.
Second: The value of the TNS_ADMIN environment variable.
Third: ORACLE_HOME\network\admin
Sun Solaris running Oracle 8i or 9i
First: The oracle user's home directory is searched for a hidden '.tnsnames.ora'
Second: The value of the TNS_ADMIN environment variable.
Third: /var/opt/oracle
Fourth: $ORACLE_HOME/network/admin
Note: The PATH environment variable may introduce differences into the behavior of the search. Clients logged on to a Novell network may also inadvertently pull configuration files from an alternate location.
Determining an operating system's search path for the Oracle configuration files is very easy. On Windows NT, a freeware utility called 'filemon' may be used which displayed all files accessed during the execution of an application (like sqlplus). On UNIX, a truss-like utility should be used that can generate output of files an application tried to access. In both cases, remove the tnsnames.ora file, run the appropriate OS monitor utility, and search for all occurrences of the word 'tnsnames'.
Main Topics
Browse All Topics





by: lappinsPosted on 2006-11-07 at 07:59:49ID: 17890397
The default locations for TNSNAME.ORA and SQLNET.ORA files are:
* Windows 3.x client
ORAWIN\NETWORK\ADMIN directory
* Windows 95/98 client
SQL*Net 2.x - ORAWIN95\NETWORK\ADMIN
Net8 - ORAWIN95\NET80\admin
Net8i - ORACLE\ORA81\NETWORK\ADMIN
* Windows NT client
SQL*Net 2.x - ORANT\NETWORK\ADMIN
Net8 - ORANT\NET80\ADMIN
Net8i - ORACLE\ORA81\NETWORK\ADMIN
* UNIX Client
$ORACLE_HOME/NETWORK/ADMIN
or /etc
or /var/opt/oracle