netca 配置 local naming method报错-TNS-04605: Invalid syntax error: Unexpected char or LITERAL "(" befor

转载自:http://blog.itpub.net/28194062/viewspace-751302/

netca 配置 local naming method报错

[oracle@zoe ~]$ netca

Oracle Net Services Configuration:
ServiceAliasException: Could not enum Net Service Names: TNS-04404: no error
  caused by: oracle.net.config.ConfigException: TNS-04414: File error
  caused by: TNS-04605: Invalid syntax error: Unexpected char or LITERAL "(" before or at  ( DESCRIPTION_LIST =
ServiceAliasException: Could not enum Net Service Names: TNS-04404: no error
  caused by: oracle.net.config.ConfigException: TNS-04414: File error
  caused by: TNS-04605: Invalid syntax error: Unexpected char or LITERAL "(" before or at  ( DESCRIPTION_LIST =
Oracle Net Services configuration terminated by user.  The exit code is -1

 

原因是$ORACLE_HOME/network/admin 下存在一个tnsnames.ora 文件, 而且该文件里面存在非tnsnames.ora格式的字符。

删除该文件,再次使用netca创建local naming,成功。

你可能感兴趣的:(Oracle,oracle,netca,TNS-04605)