Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Orace setting on NT
On Nt, you can define tns_admin by right clicking on "my computer" and
going to the properties.
You can also define the variable in a command window: set tns_admin=path.
Oracle will also use a tnsnames file if it exists in the current
directory (or in the start in directory used by the short-cut),
I think there is probably a hierarchy of sorts so that if the alias isn't
found in the tnsnames in the current directory, it will look at the one in
network\admin...
chaim
"Bob Metelsky" <bmetelsky_at_cps92.com>@fatcity.com on 10/07/2002 01:24:04 PM
Please respond to ORACLE-L_at_fatcity.com
Sent by: root_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:
>
> This is a very easy question. I'm usually working
> with Oracle on UNIX, but today I need to connect
> to a remote instance from my NT desktop. Is there an
> equivalent to TNS_ADMIN varaiable in NT? ( I'm trying
> to force Oracle to use a specific tnsnames.ora file
> on my machine adn TNS_ADMIN variable is the way to
> do it on UNIX.)
>
Afaik on NT or 2k oracle uses only one tnsnames.ora file its located in
$ORAHOME\network\admin
There is a sql.net file that dictates the precedence of files eg tns onames
Eg sql.net
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME) Here oracle looks for the tnsnames then onames.... Then finally hostname
bob
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Bob Metelsky INET: bmetelsky_at_cps92.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Chaim.Katz_at_Completions.Bombardier.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Oct 07 2002 - 14:28:21 CDT
![]() |
![]() |