ORA-27086: unable to lock file - already in use 解决办法

ORA-27086: unable to lock file - already in use

SQL> startup

ORACLE instance started.

Total System Global Area 1854021632 bytes

Total System Global Area  521936896 bytes
Fixed Size            2254824 bytes
Variable Size          218105880 bytes
Database Buffers      293601280 bytes
Redo Buffers            7974912 bytes

ORA-00205: error in identifying control file, check alert log for more info

查看alert日志

SQL> select value from v$diag_info where name ='Diag Alert';

VALUE

-------------------------------------------------------------------------------

/data/oracle/ora11g/diag/rdbms/orcl/orcl/alert

$cd /data/oracle/ora11g/diag/rdbms/orcl/orcl/alert

 

# ll

log.xml

# less log.xml

日志分析:

host_id='hrtestdb' host_addr='10.3.64.204' module=''
 pid='7210'>
 <txt>ORA-00210: cannot open the specified control file
ORA-00202: control file: /data/oracle/ora11g/oradata/or/control03.ctl&apos;
ORA-27086: unable to lock file - already in use
Linux-x86_64 Error: 11: Resource temporarily unavailable

解决方法:

1.先使用lsof 或fuser 查询出正在使用这些文件的进程:

# lsof /data/oracle/ora11g/oradata/orcl/control*

oracle  xxx /data/oracle/ora11g/oradata/orcl/control01.ctl
oracle  xxx /data/oracle/ora11g/oradata/orcl/control02.ctl
oracle  xxx /data/oracle/ora11g/oradata/orcl/control03.ctl

删除 正在使用控制文件的线程,然后重新启动数据后正常

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值