unix下的oracle数据可,现在有两个tnsnames.ora文件,一个在oracle主目录/u002/app/oracle/product/TEST/10.2.0/network/admin下面,一个在/var/opt/oracle目录下.
请问有没有什么配置文件可以确定当前数据库TEST使用的是哪一个tnsnames.ora配置文件.

解决方案 »

  1.   

    \oracle\ora102\NETWORK\ADMIN  tnsnames.ora
      

  2.   

    oracle的官方文档The search order for the cman.ora, listener.ora, and tnsnames.ora files is as follows: The directory specified by the TNS_ADMIN environment variable, if set One of the following directories: For Solaris systems, the /var/opt/oracle directory For other operating systems, the /etc directory The $ORACLE_HOME/network/admin directory 
      

  3.   

    应该是在 $ORACLE_HOME/network/admin 中的那个。