Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Setting the TNS_ADMIN Environment Variable

Oracle Database Tips by Donald BurlesonJanuary 2, 2015


The TNS_ADMIN  environment variable is used to specify the directory location for the tnsnames.ora file. The TNS_ADMIN environment variable can be defined in the following ways:

 

1.       Access the Windows registry by clicking: Start ?/span> Run ?/span> regedit

2. Add the TNS_ADMIN environment variable to the HKEY_LOCAL_MACHINE\Software\Oracle\ORACLE_HOME key by right mouse clicking, and then selecting: New ?/span> Key ?/span> String Value

 

If you are unsure where to set TNS_ADMIN in the registry, see the ORACLE_HOME\bin\oracle.key file which provides the location of the registry key used by executables within that home.

 

Each time a different Oracle version is installed on Windows, the default location to which SQL*Net files are generated is the ORACLE_HOME\network\admin directory.

 

TNS_ADMIN may also be defined as a system-wide or global variable within the operating system.  To do so:

1.      Logon as Administrator

2.      Click Start ?/span> Settings ?/span> Control Panel

3.      Double click the SYSTEM icon

4.      From System Properties, select Environment tab

5.      Highlight OS in the list of Systems Variables

6.      Change the Variable from OS to TNS_ADMIN

7.      Change the Value to the file path where the configuration files will reside.  

         For example: c:\oranwin\network\admin.

8.      Click set, then apply

9.      Click OK to close window

    Changing TNS_ADMIN at the Session Level

For temporary usage, the TNS_ADMIN may also be defined for a given DOS prompt by using the set command:

 

 C:\> set tns_admin=c:\temp 

 
   
Windows for the Oracle DBA

The landmark book Windows for the Oracle DBA is a comprehensive overview of everything an Oracle DBA needs to know to manage Oracle on Windows.  Order directly from Rampant and save 30%. 
 


 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster