Topic: Database Administration >> TNS_ADMIN
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Prashant |
Posted: Jan 19, 2008 08:26:55 AM |
Total Post: 9
Joined: Oct, 2007
|
Where is TNS_ADMIN environment set ??Pls guide me through...
Thank You. |
|
|
Mohammed Taj |
| Posted: Jan 19, 2008 09:10:12 AM | |
|
Total Post: 694
Joined: Jul, 2007
|
TNS_ADMIN
On federated servers that run Windows, the Oracle client looks for the tnsnames.ora file in the %ORACLE_HOME%\NETWORK\ADMIN directory, where %ORACLE_HOME% is defined in the db2dj.ini file. If the tnsnames.ora file is not in the %ORACLE_HOME%\NETWORK\ADMIN directory, you need to set the TNS_ADMIN environment variable on the federated server.
On federated servers that run AIX, Linux, and HP-UX, the client looks for the tnsnames.ora file in the /etc directory. If the client does not locate the tnsnames.ora file in the /etc directory, then the client looks for the file in the $ORACLE_HOME/network/admin directory, where $ORACLE_HOME is defined in db2dj.ini file. If client does not find the tnsnames.ora file, you need to set the TNS_ADMIN environment variable. You set the variable in the db2dj.ini file to the path where the tnsnames.ora file is located.
For example, if the tnsnames.ora file is in the /home/oracle directory, you set the variable to:
TNS_ADMIN=/home/oracle
7 On federated servers that run Solaris, the client looks for 7 the tnsnames.ora file in the /var/opt/oracle directory. 7 If the client does not find the tnsnames.ora file in the /var/opt/oracle directory, then the client looks for the file in the $ORACLE_HOME/network/admin directory, where $ORACLE_HOME is defined in db2dj.ini file. If client does not find the tnsnames.ora file, you need to set the TNS_ADMIN environment variable. 7 You set the variable in the db2dj.ini file to the path where the tnsnames.ora file is located.
7 For example, if the tnsnames.ora file is in the /home/oracle directory, you set 7 the variable to:
7 TNS_ADMIN=/home/oracle
In short
1.TNS_ADMIN is use to point network configuration files "tnsnames.ora"
2.In windows enviourment you have to set on COMMAND PROMPT "cmd>"
3. In linux/soloris/aix/unix you have to set on command prompt "$"
REGARDS
Taj
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 814 |
| Mohammed Taj | 694 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| positive fanatic | 361 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 239 |
| neeraj sharma | 228 |
| Ramesh Jois | 226 |
| snehalatha p | 169 |
|
|