can't connect Oracle from localhost

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)

你可能感兴趣的:(oracle)