Where to store\update tnsnames.ora file when installed oracle client only?

19,760

Solution 1

I have Oracle Client installed on my machine. Last week my DBA updated my "tnsnames.ora" file because of server change. The file is in:

  • C:\oracle\ora81\network\ADMIN

I guess you should consult your DBA if copying the file to that directory doesn't work.

Solution 2

When you say oracle client only, are you using the Oracle Instant Client? If so you should set the TNS_ADMIN environment variable to point to where ever you store your tnsnames.ora file

Solution 3

On Yosemite (10.10.3) with Oracle SQL Developer 4.1.1.19 the default place where the client looks for the file is /etc.

In theory you can override that by setting the TNS_ADMIN environment variable to the folder containing your tnsnames.ora file, but I had trouble doing that.

Solution 4

Its in %ORACLE_HOME%\network\admin folder where %ORACLE_HOME% is the parth to which the client is installed, and an entry is done to the PATH variable. If the file does not exist, create one, using the file on the other machine as a template

Share:
19,760

Related videos on Youtube

Honza Hála
Author by

Honza Hála

Updated on September 17, 2022

Comments

  • Honza Hála
    Honza Hála over 1 year

    I installed the oracle client only but was told to update my tnsnames.ora file with the info my dba sent me. But I don't have a tnsnames.ora file.

    On another machine with a full oracle admin install it is at:

    • C:\Oracle\product\10.1.0\Db_1\NETWORK\ADMIN\tnsnames.ora

    So do I need the tnsnames.ora file?

    How do I let oracle know where it is?

    fk