重庆思庄Oracle、Redhat认证学习论坛

标题: netca 配置net service 报错 tns-04605 [打印本页]

作者: jiawang    时间: 6 天前
标题: netca 配置net service 报错 tns-04605
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、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2