oracle错误 119,启动数据库异常,错误代码ORA-00119,ORA-00132

e38ade26d6209a23fd73899dfb2d37ae.png

在SQLplus中startup启动Oracle报下面这个错

ORA-00119: invalid specification for system parameter LOCAL_LISTENER

ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'

解决过程:

创建spfile参数文件

create pfile from spfile;

从Oracle安装目录下面的

database文件夹(%ORACLE_HOME%\database)

找到这个文件 ,

文件名格式是这样的(INIT%ORACLE_SID%.ORA)

即 init数据库服务名.ora

当然,具体视情况而定,

例如我在Linux下面发现这个文件夹在dbs文件夹内。。

找到该文件之后打开编辑该文件

搜索local_listener='LISTENER_ORCL'

然后删除所在行保存即可。

指定从此启动

#指定从此启动

#示例

startup nomount pfile='/u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora'

正常情况下应该可以成功启动

ca2460333377b7bce1ebcb876f31b456.png

然后通过spfile创建pfile文件

create spfile from pfile;

5452718280d49a26108586c775062a05.png

尝试启动

startup

如果提示

ORA-01081: cannot start already-running ORACLE - shut it down first

就执行关闭下

shutdown

8356fa50e4eb10681e3af655cf66adc3.png

再试一次

startup

a69924ce22010f6fa7e3263b18ee0395.png

OK,搞定~

Oracle可以正常启动了。

部分操作记录:

[oracle@dbserver1051 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Mon Dec 3 14:07:35 2018

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup

ORA-00119: invalid specification for system parameter LOCAL_LISTENER

ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'

SQL> create pfile from spfile;

File created.

#分割线,看上面步骤,请先修改initorcl.ora文件再继续

SQL> startup nomount pfile='/u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora';

ORACLE instance started.

Total System Global Area 2421825536 bytes

Fixed Size 2255632 bytes

Variable Size 805307632 bytes

Database Buffers 1593835520 bytes

Redo Buffers 20426752 bytes

SQL> create spfile from pfile;

File created.

SQL> startup

ORA-01081: cannot start already-running ORACLE - shut it down first

SQL> shutdown

ORA-01507: database not mounted

ORACLE instance shut down.

SQL> startup

ORACLE instance started.

Total System Global Area 2421825536 bytes

Fixed Size 2255632 bytes

Variable Size 805307632 bytes

Database Buffers 1593835520 bytes

Redo Buffers 20426752 bytes

Database mounted.

Database opened.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值