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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TNSNAMES.ORA 1

Status
Not open for further replies.

ADB1

Programmer
Aug 24, 2001
235
GB
Could somebody please explain how tnsnames.ora file is used on the different platforms below and where it should be stored?

Windows98
WindowsXP
Windows2000

Thanks,

Adam.
 
it is stored depending on how you structure your oracle installation. Normally, its going to be in something like d:\oracle\ora92\network\admin, or /u01/ora92/network/admin. I dont think there's a "correct" location that varies from platform to platform. If you take the defaults when you install Oracle just look for that /network/admin directory and you should find it there. The installation should also have configured the tnsnames file to allow you to connect to the local database you installed. If you want to connect to a remote database you must add the connection information to the tnsnames file for that remote database. Look at the lines that oracle put in tnsnames for your local database, then copy them inside the tnsnames file, modify the name and connection values and you should be able to connect to the report database. To test your connection(s) use the tnsping utility. It works kind of like ping, but you tnsping your database name.

You can get more "technical" explanations if you look around. Go to thats a good place to start.
 
The "correct" location is defined by TNS_ADMIN environment (registry) variable. If it's not set, the default value is %ORACLE_HOME%\NETWORK\ADMIN (%ORACLE_HOME%\NET80\ADMIN for 8.0).

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top