免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 12243 | 回复: 13
打印 上一主题 下一主题

oracle 实例启动 报错 ORA-27086 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-07-12 13:32 |只看该作者 |倒序浏览
各位大虾, 小弟的数据库 在实例启动时报错,
ORA-00210: cannot open the specified control file
ORA-00202: control file: '/opt/app/oracle/flash_recovery_area/emalog/control02.ctl'
ORA-27086: unable to lock file - already in use

请教如何解决这个错误 ORA-27086

谢谢

论坛徽章:
0
2 [报告]
发表于 2011-07-12 14:33 |只看该作者
看看你的启动文件SPFILE中初始化参数指定的控制文件的位置,现在你的主备控制文件都没有找到,或者没有权限打开。

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
3 [报告]
发表于 2011-07-12 15:06 |只看该作者
是不是控制文件重复指定了啊。

论坛徽章:
0
4 [报告]
发表于 2011-07-12 20:02 |只看该作者
回复 1# neil_god


    把实例shutdown,然后再启动试试

论坛徽章:
0
5 [报告]
发表于 2011-07-13 08:35 |只看该作者
请阅读下面关于控制文件的内容,修改你的控制文件启动项:
本文来自:
Oracle® Database 2 Day DBA
10g Release 2 (10.2)
Part Number B14196-02

控制文件(Control Files)
控制文件跟踪数据库的物理组件,它是数据库的重要功能。由于控制文件的重要性,Oracle建议控制文件应该有多个副本。换言之,控制文件应该有多个完全相同的副本。使用DBCA创建数据库时,三个控制文件自动创建并互相同步。

(A control file tracks the physical components of the database. It is essential to the functioning of the database. Because of the importance of the control file, Oracle recommends that the control file be multiplexed. In other words, the control file should have multiple identical copies. For databases created with DBCA, three copies of the control file are automatically created and kept in sync with each other.)

如果控制文件失败,那么你的数据库将不可用。只要你有一个控制文件的副本,你可以关闭数据库使用控制文件副本重新创建控制文件,然后重新启动数据库。另外一种方法是从初始化参数的控制文件CONTROL_FILES中删除损坏的控制文件表项,使用其它的控制文件重新启动数据库。

(If any control file fails, then your database becomes unavailable. As long as you have a control file copy, however, you can shut down your database and re-create the failed control file from the copy, then restart your database. Another option is to delete the failed control file from the CONTROL_FILES initialization parameter and restart your database with the remaining control files.)

论坛徽章:
0
6 [报告]
发表于 2011-07-13 08:47 |只看该作者
内容来自:Oracle 10g 管理员手册
Oracle® Database Administrator's Guide
10g Release 2 (10.2)
Part Number B14231-02

创建初始的控制文件
使用CREATE DATABASE创建Oracle数据库的初始控制文件,在创建数据库时,控制文件的名字被CONTROL_FILES初始化参数文件指定,操作系统在CONTROL_FILES中指定完整文件名,下面是TROL_FILES初始化参数的一个例子:
CONTROL_FILES = (/u01/oracle/prod/control01.ctl,
                               /u02/oracle/prod/control02.ctl,
                               /u03/oracle/prod/control03.ctl)

论坛徽章:
0
7 [报告]
发表于 2011-07-13 08:48 |只看该作者
认真阅读Oracle的官方文档才能使你成为合格的DBA。

论坛徽章:
3
处女座
日期:2014-11-05 11:02:4315-16赛季CBA联赛之四川
日期:2015-12-10 14:37:4015-16赛季CBA联赛之天津
日期:2017-09-08 18:39:34
8 [报告]
发表于 2011-07-16 01:17 |只看该作者
本帖最后由 godymoon 于 2011-07-16 01:20 编辑

文件的属组权限对不对?
如果都正常,再看看有没有ora进程,先干掉这些进程,再启动看看
还有就是使用fuser 命令解除'/opt/app/oracle/flash_recovery_area/emalog/control02.ctl'的使用

论坛徽章:
0
9 [报告]
发表于 2011-07-16 11:43 |只看该作者
呵呵!你这个错误我见过,你肯定是启动了多个实例,没有停止前面的实例,进程还在跑着呢,
ORA-27086: unable to lock file - already in use

这句报错已经告诉你了啊!shutdown immediate,查看sid重新启动数据库

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
10 [报告]
发表于 2011-07-16 15:00 |只看该作者
:wink:楼上有理
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP