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?
strace sqlplus -L scott/tiger@orcl helps to find .tnsnames.ora file on /home/oracle to find the file it takes instead of $ORACLE_HOME/network/admin/tnsnames.ora file. Thanks for the posting.
strace sqlplus -L scott/tiger@orcl
.tnsnames.ora
/home/oracle
$ORACLE_HOME/network/admin/tnsnames.ora