Problem:
Error info -- TNS:could not resolve the connect identifier specified
Solution:
modify the file $ORACLE_HOME/network/admin/sqlnet.ora as follow
#NAMES.DIRECTORY_PATH= (TNSNAMES)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)