Report this

What is the reason for this report?

Can't acces my CentOS/oracle 11g database

Posted on May 14, 2017

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



This textbox defaults to using Markdown to format your 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.

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

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 !

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.