Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

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.



  


 Title: TNS_ADMIN
 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

  




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 Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi239
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software