Where I can find the tnsnames.ora file for my Oracle Windows client?

  • I installed Oracle client for my Windows 7 machine. I can connect to a remote Oracle database using Toad for Oracle using the direct method (giving host, port and service name for the connection).

    Now I tried to find the tnsnames.ora file from the Oracle client oracle home, but could not find it. I could not find a NETWORK\ADMIN folder in ORACLE_HOME (C:\app\myaccount\product\11.2.0\client_1).

    Where is this file located?

    That's the default location; however, if you set the `TNS_ADMIN` environment variable, that location will be used instead.

    I could find it here: C:\USER_NAME\product\11.2.0\dbhome_1\NETWORK\ADMIN

  • At least for older releases, I'd generally just create my own. It's a plain text file but you probably need to start with an example.

License under CC-BY-SA with attribution


Content dated before 6/26/2020 9:53 AM