zoukankan      html  css  js  c++  java
  • ORA-00119,ORA-00132 错误处理

    故障现象:

    由于我修改过数据库的DBNAME,之后重启数据库时出现了 ORA-00119,ORA-00132 ,如下:

    SQL> startup nomount pfile='$ORACLE_HOME/dbs/initetdb.ora';
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENER_ETDB'

    故障原因及解决方案:

    Your initialisation parameter is looking for an alias LISTENER; and you've shown that exists in your listener.ora, but the database does not look at that file - it may not even be able to read it.

    If you specify an alias then it has to exist in the tnsnames.ora file, so add a matching same entry to that file:

    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        )
      )
    

    Or alternatively set your initialisation parameter to the connect string rather than an alias, so it doesn't need to refer to tnsnames.ora:

    *.local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))'

    翻译:你的初始化参数正在寻找一个LISTENER的别名;你应该在listener.ora文件中显示出这个别名,但数据库在那个文件中没有找到 - 它甚至可能是无法读取。
    如果你指定一个别名,然后它必须存在在tnsnames.ora 文件中,所以添加匹配的同一条目到该文件。

    定位到我本身的问题就是:我的初始化参数文件中指定了LOCAL_LISTENER的别名为:LISTENER_ETDB,但是在我的tnsnames.ora文件中却找不到LISTENER_ETDB这个条目。
    一种解决办法就是在tnsname中增加LISTENER_ETDB这个条目,另一种解决办法就是修改参数文件中的LOCAL_LISTENER参数的别名名称。

          

  • 相关阅读:
    Webservice详解
    Spring IOC/DI和AOP原理
    MySQL 使用JOIN优化子查询
    MySQL 更新语句技巧
    MySQL插入语句解析
    MySQL用户无法登陆问题
    MySQL基础学习(二) 常用SQL命令
    Servlet/JSP-08 EL表达式
    插值和空间分析(一)_探索性数据分析(R语言)
    爱重启的windows,伤不起
  • 原文地址:https://www.cnblogs.com/wqswjx/p/5528128.html
Copyright © 2011-2022 走看看