Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats the difference?

Status
Not open for further replies.

calahans

Programmer
Jun 14, 1999
348
IE
Could someone explain the difference between tnsnames and sqlnet.ora (is that correct). From what I have picked up they are two different ways to identify the whereabouts of an oracle server. What is the exact purpose? Are these files mutually exclusive?<br>
<br>
Excuse my ignorance!<br>
<br>
C
 
tnsnames.ora is a file containing definitions of database services, mapping service names to connection details.<br>
E.g. if you do sqlplus fred/bassett@hounds it may take the name hounds and use the mapping info in tnsnames.ora to establish a connection via SQL*Net to the Oracle database instance with SID = HNDZ on server DOGS (or IP address 1.2.3.4 or wherever).<br>
This mapping information may also be supplied by an Oracle names server if one exists.<br>
sqlnet.ora is a control file for SQL*Net that tells it where to look for its mapping information e.g. if a names server exists it may indicate that this should be tried first when establishing a connection, then if the service name is not defined there, the users local tnsnames.ora file should be checked. It may also contain optional diagnostic and other parameters.<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top