Oracle - What TNS Names file am I using?

前端 未结 11 618
长发绾君心
长发绾君心 2020-12-07 13:50

Sometimes I get Oracle connection problems because I can\'t figure out which tnsnames.ora file my database client is using.

What\'s the best way to figure this out?

11条回答
  •  囚心锁ツ
    2020-12-07 14:44

    Shouldn't it always be "$ORACLE_ HOME/network/admin/tnsnames.ora"? Then you can just do "echo $oracle_ home" or the *nix equivalent.

    @Pete Holberton You are entirely correct. Which reminds me, there's another monkey wrench in the works called TWO_ TASK

    According http://www.orafaq.com/wiki/TNS_ADMIN
    TNS_ADMIN is an environment variable that points to the directory where the SQL*Net configuration files (like sqlnet.ora and tnsnames.ora) are located.

提交回复
热议问题