Oracle -- ORA-00119 错误解决方法 此法也可解决ORA-91078 LRM-00109错误

来源:互联网 发布:apache插件 编辑:程序博客网 时间:2024/05/19 14:37


1.运行 sqlplus / as sysdb


 sqlplus / as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 12 18:37:07 2013Copyright (c) 1982, 2009, Oracle.  All rights reserved.Connected to an idle instance.


2.输入命令 !ps -aef | grep orcl  (orcl 为你当前登录用户的名称)

orcl      3591  3312  0 18:31 pts/0    00:00:00 sqlplus   as sysdbaorcl      3592  3591  0 18:31 ?        00:00:00 oracleorcl.2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))orcl      3600  3591  0 18:32 pts/0    00:00:00 /bin/bash -c ps -aef | grep orclorcl      3601  3600  1 18:32 pts/0    00:00:00 ps -aeforcl      3602  3600  0 18:32 pts/0    00:00:00 grep orcl

3.找到类似与倒数第四条的格式:  oracleorcl.2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))

     其中oracleorcl.2 为Oracle进程名,名字的格式为oracle$ORACLE_SID. 可以很容易的看出当前进程与orcl.2实例关联。

4.(问题出现地方) 运行 startup 


ORA-00119: invalid specification for system parameter LOCAL_LISTENERORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=CentOS.haibao637)(PORT=1521))'

原因,由第3步可以得知,与当前进程绑定的实例名为orcl.2. startup命令会到$ORACLE_HOME/dbs目录下 搜索名字为init${ORACLE.SID}.ora (当前为initorcl.2.ora)

所以,其中一个原因就是不存在该文件,要不就是该文件为空

5.退出exit

6.运行 echo db_name=orcl.2 > initorcl.2.ora

7.转到第一步

。。。。

8.到第四步时,运行成功到结果(数字不一样不是错。。。):

ORACLE instance started.Total System Global Area  150667264 bytesFixed Size    1335080 bytesVariable Size   92274904 bytesDatabase Buffers   50331648 bytesRedo Buffers    6725632 bytes


9.bingo!