ITPub博客

首页 > Linux操作系统 > Linux操作系统 > netca 配置net service 报错 tns-04605

netca 配置net service 报错 tns-04605

原创 Linux操作系统 作者:pyzwj 时间:2012-12-18 16:44:22 0 删除 编辑

[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,成功。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28194062/viewspace-751302/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: junsansi
请登录后发表评论 登录
全部评论

注册时间:2012-09-25

  • 博文量
    63
  • 访问量
    303313