How can I configure my Oracle tnsnames file location?

AndrewL picture AndrewL · Apr 6, 2011 · Viewed 11.6k times · Source

I have Oracle 10g installed on Windows. Currently, my tnsnames file is stored at %ORACLEHOME%\network\admin. However, I want to configure Oracle to look somewhere else for that file.

How can I do this?

Andrew L

Answer

Chandu picture Chandu · Apr 6, 2011

You can use the TNS_ADMIN environment variable to specify a custom location of TNSNAMES.ORA file. Check this wiki: http://www.orafaq.com/wiki/TNS_ADMIN