SQL> startup
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'
在另一个终端进入
# su - oracle
[oracle@huang14 ~]$ cd /opt/oracle/10g/dbs/
[oracle@huang14 dbs]$ strings spfileorcl.ora >initorcl.ora
把下面这行改成下面这样就可以了,注意大小写哦。
[oracle@huang14 dbs]$ grep local_liste initorcl.ora
*.local_listener='(ADDRESS_LIST=(Address=(Protocol=TCP)(Host=172.0.0.1)(Port=1521)))'
SQL> startup nomount pfile='/opt/oracle/10g/dbs/initorcl.ora'
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 62916852 bytes
Database Buffers 100663296 bytes
Redo Buffers 2973696 bytes
SQL> create spfile from pfile;
File created.
因为在nomount阶段所以我们可以force
SQL> startup force
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 62916852 bytes
Database Buffers 100663296 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'
在另一个终端进入
# su - oracle
[oracle@huang14 ~]$ cd /opt/oracle/10g/dbs/
[oracle@huang14 dbs]$ strings spfileorcl.ora >initorcl.ora
把下面这行改成下面这样就可以了,注意大小写哦。
[oracle@huang14 dbs]$ grep local_liste initorcl.ora
*.local_listener='(ADDRESS_LIST=(Address=(Protocol=TCP)(Host=172.0.0.1)(Port=1521)))'
SQL> startup nomount pfile='/opt/oracle/10g/dbs/initorcl.ora'
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 62916852 bytes
Database Buffers 100663296 bytes
Redo Buffers 2973696 bytes
SQL> create spfile from pfile;
File created.
因为在nomount阶段所以我们可以force
SQL> startup force
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 62916852 bytes
Database Buffers 100663296 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
本文解决了一个在启动Oracle数据库时遇到的问题,即ORA-00119和ORA-00132错误。通过修改listener配置文件(initorcl.ora),特别是确保正确设置local_listener参数,成功解决了问题。在nomount阶段,使用force选项启动数据库,然后从pfile文件创建spfile,最终使数据库实例正常启动。
932

被折叠的 条评论
为什么被折叠?



