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参数的别名名称。

      

posted @ 2016-05-31 09:07  珠烁晶莹  阅读(264)  评论(0编辑  收藏  举报