Follow below decision tree for a sample TNS entry in$ORACLE_HOME/network/admin/tnsnames.ora file like below:
MYRAC=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST= mydb.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=MYSERVICE)))
- From cammand line issue: ping mydb.com
- If not work, WINS server client configuration problem !
- If works: tnsping MYRAC
i. If works, there must not be any problemJ
ii. If not work, from command line issue below command:
tnsping (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mydb.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=MYSERVICE)))
- If not work: Oracle client configuration/installation problem ! Or you are editing wrong tnsnames.ora file!
- If works: Check $ORACLE_HOME/network/admin/sqlnet.ora file. Note the
NAMES.DEFAULT_DOMAINparameter value if other than null and place it to your $ORACLE_HOME/network/admin/tnsnames.ora:
MYRAC.<names default domain>=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mydb.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME= MYSERVICE)))
No comments:
Post a Comment