Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: TNSNAMES.ORA (Client/Server) and ODBC.INI
RJSchulzSJ (rjschulzsj_at_aol.com) wrote:
: can anybody send me examples of tnsnames.ora files on server and client ? : how have i to edit the local odbc.ini for connect ? : does odbc and tnsnames communicate ? if yes, how ?
Using SQL*Net V2, all you need to do in the ODBC Administrator is to supply the connect string for a database, as found in TNSNAMES.ORA. ODBC does not directly read TNSNAMES.ORA; ODBC communicates with the SQL*Net drivers, which reads TNSNAMES.ORA.
Here's the TNSNAMES.ORA file I use on TCP/IP enabled clients. It describes two databases, RSCRAS and RASTEST. The DECNet portions are commented out because the SQL*Net drivers see it first and choke rather than continuing and trying the other specifiec protocol, TCP/IP. I don't know why. On DECNet clients and on the servers, those lines are uncommented.
################
################
(ADDRESS = (COMMUNITY = TCP.world) (PROTOCOL = TCP) (Host = REHAB2) (Port = 1527) ) (ADDRESS = (COMMUNITY = TCP.world) (PROTOCOL = TCP) (Host = REHAB2) (Port = 1528) )
(SID = RSCRAS) (GLOBAL_NAME = RASTEST.world)
(ADDRESS = (COMMUNITY = TCP.world) (PROTOCOL = TCP) (Host = RSCNET) (Port = 1527) ) (ADDRESS = (COMMUNITY = TCP.world) (PROTOCOL = TCP) (Host = RSCNET) (Port = 1528) )
(SID = RSCRAS) (GLOBAL_NAME = RSCRAS.world)
-- ======================================================================== "Villains, I say to you now: | Mike Carmack KNOCK OFF ALL THAT EVIL!" | Vulcan Dragon -==(UDIC)==- S P O O N !!!! - The Tick | mcarmack_at_freenet.columbus.oh.usReceived on Thu May 01 1997 - 00:00:00 CDT
![]() |
![]() |