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

  • 问题现象:

SQL> startup

ORACLE instance started.

Total System Global Area 1854021632 bytes

Fixed Size                      2242584 bytes

Variable Size             1136658408 bytes

Database Buffers       708837376 bytes

Redo Buffers                 6283264 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/tjdb/tjdb/alert

[[email protected] ~]cd /data/oracle/ora11g/diag/rdbms/tjdb/tjdb/alert

[[email protected] alert]# ll
?荤.?.102508
-rw-r-----. 1 oracle oinstall 10485978 12?.30 2014 log_16.xml
-rw-r-----. 1 oracle oinstall 10485945 1?. 25 2015 log_17.xml
-rw-r-----. 1 oracle oinstall 10485763 2?. 13 2015 log_18.xml
-rw-r-----. 1 oracle oinstall 10485996 3?.  8 2015 log_19.xml
-rw-r-----. 1 oracle oinstall 10485761 3?. 21 2015 log_20.xml
-rw-r-----. 1 oracle oinstall 10485841 4?.  3 2015 log_21.xml
-rw-r-----. 1 oracle oinstall 10485932 4?. 15 2015 log_22.xml
-rw-r-----. 1 oracle oinstall 10485792 7?.  4 17:42 log_23.xml
-rw-r-----. 1 oracle oinstall 10485970 7?.  4 23:41 log_24.xml
-rw-r-----. 1 oracle oinstall 10392897 10?.21 09:20 log.xml
[[email protected] alert]# less log.xml

Alert 日志片断:

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: &apos;/data/oracle/ora11g/oradata/tjdb/control03.ctl&apos;
ORA-27086: unable to lock file - already in use
Linux-x86_64 Error: 11: Resource temporarily unavailable

解决:

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

[[email protected] ~]#fuser -m -v /data

[[email protected] ~]# lsof /data/oracle/ora11g/oradata/tjdb/control*
COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
oracle  8041 oracle  256u   REG   0,19 11026432 1867986 /data/oracle/ora11g/oradata/tjdb/control01.ctl
oracle  8041 oracle  257u   REG   0,19 11026432 1868772 /data/oracle/ora11g/oradata/tjdb/control02.ctl
oracle  8041 oracle  258u   REG   0,19 11026432 1868514 /data/oracle/ora11g/oradata/tjdb/control03.ctl
oracle  8043 oracle  256u   REG   0,19 11026432 1867986 /data/oracle/ora11g/oradata/tjdb/control01.ctl
oracle  8043 oracle  257u   REG   0,19 11026432 1868772 /data/oracle/ora11g/oradata/tjdb/control02.ctl
oracle  8043 oracle  258u   REG   0,19 11026432 1868514 /data/oracle/ora11g/oradata/tjdb/control03.ctl
oracle  8045 oracle  256uW  REG   0,19 11026432 1867986 /data/oracle/ora11g/oradata/tjdb/control01.ctl
oracle  8045 oracle  257uW  REG   0,19 11026432 1868772 /data/oracle/ora11g/oradata/tjdb/control02.ctl
oracle  8045 oracle  258uW  REG   0,19 11026432 1868514 /data/oracle/ora11g/oradata/tjdb/control03.ctl
oracle  8051 oracle  258u   REG   0,19 11026432 1867986 /data/oracle/ora11g/oradata/tjdb/control01.ctl
oracle  8051 oracle  259u   REG   0,19 11026432 1868772 /data/oracle/ora11g/oradata/tjdb/control02.ctl
oracle  8051 oracle  260u   REG   0,19 11026432 1868514 /data/oracle/ora11g/oradata/tjdb/control03.ctl
oracle  8278 oracle  257u   REG   0,19 11026432 1867986 /data/oracle/ora11g/oradata/tjdb/control01.ctl
oracle  8278 oracle  258u   REG   0,19 11026432 1868772 /data/oracle/ora11g/oradata/tjdb/control02.ctl
oracle  8278 oracle  259u   REG   0,19 11026432 1868514 /data/oracle/ora11g/oradata/tjdb/control03.ctl

[[email protected] ~]# ps -ef | grep /data/oracle |grep -v grep |cut -c 9-15 |xargs kill -s 9

[[email protected] ~]# lsof /data |cut -c 9-13 |xargs kill -s 9

2.卸载文件系统

[[email protected] ~]#unmount  /data

3.重新装载文件系统

mount nfs目录的方法:
mount -t nfs hostname(orIP):/directory /mount/point

[[email protected] ~]# df -h
/dev/mapper/VolGroup-lv_root   18G      4.4G   13G     27%     /
tmpfs                           1.9G    1.8G    140M  93%     /dev/shm
/dev/sda1                                  485M   37M    423M   8%     /boot
10.5.6.250:/nfs/hrtestdb            178G    74G     95G    44%   /data

[[email protected] ~]#mount -t nfs -o nolock 10.5.6.250:/nfs/hrtestdb  /data

时间: 2024-11-07 01:17:45

ORA-27086: unable to lock file - already in use的相关文章

启动weblogic111g一直提示&lt;141281&gt; &lt;unable to get file lock, will retry ...&gt;

一次非正常关闭weblogic之后,再次启动时启动不成功,一直提示:<141281> <unable to get file lock, will retry ...> 解决方法:进入域目录: [email protected]:~$ cd oracle/middleware/user_projects/domains/yshy_domain/ (1)删除 edit.lok (2)进入config目录删除 config.lok (3)[email protected]:yshy_d

启动Weblogic时报 &lt;unable to get file lock, will retry...&gt;解决方案

启动Weblogic时,报 <unable to get file lock, will retry...>,解决方法: I ran into this error the first time I restarted Weblogic on one of my installs, the only reference that I was able to find is the error description below: BEA-141281 Info: unable to get f

WebLogic ERROR: unable to get file lock, will retry …

由于非正常结束Weblogic 进程才导致启动终端输出这样的错误信息     解决办法一.删掉Domain下的*.lok文件1. 删除edit.lok     cd <DOMAIN_HOME> 删除edit.lok文件     rm edit.lok2.删除 config.lok     <DOMAIN_HOME/config 删除config.lok文件     rm config.lok3.删除AdminServer.lok     cd <DOMAIN_HOME>/se

【翻译自mos文章】Weblogic AdminServer 启动fail,报错为&quot;unable to get file lock, will retry&quot;

Weblogic AdminServer 启动fail,报错为"unable to get file lock, will retry" 参考原文: Weblogic AdminServer fails with "unable to get file lock, will retry" error message (Doc ID 1613945.1) 适用于: Oracle WebLogic Server - Version 8.1 and later Infor

[转]Git – fatal: Unable to create &#39;XXX/.git/index.lock’: File exists.的解决办法

参考资料: http://sheshui.me/articles/git-quickly-tutorial-20120517 http://stackoverflow.com/questions/9282632/git-index-lock-file-exists-when-i-try-to-commit-but-cannot-delete-the-file 我的说明: 我操作的是ubuntu环境.window远程 1 若在window下远程打开操作窗口(不是console),进入.git目录删

Unable to create ‘.git/index.lock‘: File exists

Unable to create '.git/index.lock': File exists 分类: Git&SVN |2014-03-03 14:10 |1231人阅读 Git – fatal: Unable to create '/.git/index.lock': File exists. fatal: Unable to create '/path/my_proj/.git/index.lock': File exists. If no other git process is cur

EXCEPTION:FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS

FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS Hi, Today I will share you my other experience using git control system, it happened to me after I’ve created a branch, when adding my changes to remote or even committed my file I’ve started to s

git提交代码出现错误fatal: Unable to create &#39;项目路径/.git/index.lock&#39;: File exists.

git提交代码出现错误fatal: Unable to create '项目路径/.git/index.lock': File exists. 具体出错代码如下: 具体原因不详,在stackoverflow上查找了很久,也不清楚原因,但是stackoverflow给出了解决的方法. 解决方法: 在当前项目下打开git bash,运行如下命令: rm -f ./.Git/index.lock 只为成功找方法.大胆的尝试,下一个fun就是你的fun! git提交代码出现错误fatal: Unable

【从翻译mos文章】Weblogic AdminServer 启动fail,报错&amp;quot;unable to get file lock, will retry&amp;quot;

Weblogic AdminServer 启动fail,报错"unable to get file lock, will retry" 参考原始: Weblogic AdminServer fails with "unable to get file lock, will retry" error message (Doc ID 1613945.1) 适用于: Oracle WebLogic Server - Version 8.1 and later Inform