Question

Can't acces my CentOS/oracle 11g database

When I try to connect with TOAD this appears: TNS_ADMIN environment variable is not defined EZCONNECT is not the first naming method in NAMES.DIRECTORY_PATH which may conflict with other naming methods specified.

Plus I do not know what to put on the service name section

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The TNS_ADMIN environment variable is used to specify the directory location for the tnsnames.ora file. The TNS_ADMIN environment variable can be defined in the following ways:

For UNIX users, the order in which Oracle searches locations for Oracle Net files like sqlnet.ora and tnsnames.ora are in this order:

  1. $HOME for hidden files only (i.e., .sqlnet.ora and .tnsnames.ora)
  2. $TNS_ADMIN
  3. $HOME
  4. /etc or /var/opt/oracle (depends on platform)
  5. $ORACLE_HOME/network/admin

Don’t hesitate to contact me if you have any trouble !

Hi @javierruiz You’re probably better off asking in a Oracle forum, but when I searched a bit, it seems like you’re probably missing the Oracle path from $PATH: https://dba.stackexchange.com/questions/22739/oracle-11g-r2-standard-edition-installation-set-environment-variable-path-and