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.
Copyright © 1996 - 2020
All rights reserved by
Burleson
Oracle ®
is the registered trademark of Oracle Corporation.
|
|