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
[oracle@hrtestdb ~]cd /data/oracle/ora11g/diag/rdbms/tjdb/tjdb/alert
[oracle@hrtestdb 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
[oracle@hrtestdb 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: '/data/oracle/ora11g/oradata/tjdb/control03.ctl'
ORA-27086: unable to lock file - already in use
Linux-x86_64 Error: 11: Resource temporarily unavailable
解决:
1.先使用lsof 或fuser 查询出正在使用这些文件的进程:
[root@hrtestdb ~]#fuser -m -v /data
或
[root@hrtestdb ~]# 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
[root@hrtestdb ~]# ps -ef | grep /data/oracle |grep -v grep |cut -c 9-15 |xargs kill -s 9
或
[root@hrtestdb ~]# lsof /data |cut -c 9-13 |xargs kill -s 9
或
[root@hrtestdb ~]# fuser –k /data
2.卸载文件系统
[root@hrtestdb ~]#umount /data
3.重新装载文件系统
mount nfs目录的方法:
mount -t nfs hostname(orIP):/directory /mount/point
[oracle@hrtestdb ~]# 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
[root@hrtestdb ~]#mount -t nfs -o nolock 10.5.6.250:/nfs/hrtestdb /data
- 自动挂载存储
1.在/etc/fstab 添加自动挂载,如下配置格式
# <file system> <mount point> <type> <options> <dump> <pass>
[root@hrtestdb etc]# vi fstab #
# /etc/fstab
# Created by anaconda on Mon Jan 20 09:49:11 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
UUID=90bc6e34-39f4-45b1-a68b-8c5ecc81d7e0 /boot ext4 defaults 1 2
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
10.5.6.250:/nfs/hrtestdb /data nfs defaults 0 0
自动挂载存储
或:
添加到 /etc/rc.d/rc.local
2.把mount 的命令放到/etc/rc.d/rc.local 里面去,vi /etc/rc.d/rc.local ,然后在rc.local 中配置挂载命令:
mount -t nfs -o nolock 10.5.6.250:/nfs/hrtestdb /data
ORA-27086: unable to lock file - already in use的更多相关文章
- 启动受管服务器出现:unable to get file lock, will retry...
启动受管服务器出现:unable to get file lock, will retry... 解决方法:一.删掉Domain下的*.lok文件1. 删除edit.lok进入到domain_home ...
- Git – fatal: Unable to create ‘/.git/index.lock’: File exists错误解决办法
有时候在提交的时候,中间提交出错,导致有文件被lock,所以会报下面的错误: fatal: Unable to create ‘/msg/.git/index.lock’: File exists. ...
- <BEA-141281> <unable to get file lock, will retry ...> --reference
I ran into this error the first time I restarted Weblogic on one of my installs, the only reference ...
- 启动weblogic11g一直提示<141281> <unable to get file lock, will retry ...>
一次非正常关闭weblogic之后,再次启动时启动不成功,一直提示:<141281> <unable to get file lock, will retry ...> 解决方 ...
- [问题解决] initAndListen: 10309 Unable to create/open lock file: /data/db/mongod.lock
错误: 在linux下开启mongoDB的 $ >bin: ./mongod 时报错:initAndListen: 10309 Unable to create/open lock file: ...
- 【从翻译mos文章】Weblogic AdminServer 启动fail,报错"unable to get file lock, will retry"
Weblogic AdminServer 启动fail,报错"unable to get file lock, will retry" 参考原始: Weblogic AdminSe ...
- 15-5-23 下午02时22分58秒 CST> <Info> <Management> <BEA-141281> <unable to get file lock, will retry ...>
A-141281> <unable to get file lock, will retry ...> http://gdutlzh.blog.163.com/blog/s ...
- <BEA-141281> <unable to get file lock, will retry ...>
原文:http://gdutlzh.blog.163.com/blog/static/164746951201291903824812/ <BEA-141281> <unable t ...
- 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 ...
随机推荐
- VS2010 安装使用STLPort
VS2010 安装使用STLport 1.本机环境 win7 64位 visual studio 2010 中文旗舰版 STLport-5.2.1.tar.bz2 2.下载STLport http:/ ...
- u32 mac以及arp匹配
# Examples that match MAC (a big "thank you" to Julian Anastasov for this!): M0 through M5 ...
- shell 脚本实战笔记(6)--集群环境配置检测
1). 背景: 集群部署的时候, 需要一致的配置和环境设置. 对于虚拟机集群, 可以借助镜像拷贝, 复制和还原集群机器. 对与物理机集群而言, 则不一样, 如果机器一多, 多人去操作和配置, 对于成熟 ...
- js正则函数
js的正则函数主要有有replace,match,test,search,exec. 首先对文中的变量进行说明: rgExp为包含正则表达式模式和可用标志的正则表达式对象.也可以是包含正则表达式模式和 ...
- boot/head.S
/* * linux/boot/head.S * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * head.S contains the 32-bi ...
- 转:db2 iptables相关用法(2)
Centos 6 iptables 配置 Ben 2011/12/24 [root@localhost ben.liu]# service iptables status Table: filter ...
- Docker仓库管理
1.# docker pull registry //下载registry镜像,registry为docker官方提供的一个镜像,我们可以用它来创建本地的docker私有仓库. 2.# docker ...
- 正确答案 全国信息学奥林匹克联赛( ( NOIP2014) 复 赛 模拟题 Day1 长乐一中
[题目描述]小 H 与小 Y 刚刚参加完 UOIP 外卡组的初赛,就迫不及待的跑出考场对答案."吔,我的答案和你都不一样!",小 Y 说道,"我们去找神犇们问答案吧&qu ...
- 越狱Season 1-Episode 17: J-Cat
Season 1, Episode 17: J-Cat -Pope: Hey, that's looking good. 嗨,看起来真棒 You're making some real progres ...
- 【SDOI2008】【P1377】仪仗队
欧拉函数的应用 原题: 作为体育委员,C君负责这次运动会仪仗队的训练.仪仗队是由学生组成的N * N的方阵,为了保证队伍在行进中整齐划一,C君会跟在仪仗队的左后方,根据其视线所及的学生人数来判断队伍是 ...