ORA-00227, ORA-00202: BRING UP INSTANCE AFTER MACHINE CRASH [ID 1072762.6]

当操作系统崩溃并导致两个实例运行时,重启数据库可能会遇到ORA-00227和ORA-00202错误。该文提供了解决方案,包括尝试使用控制文件的镜像副本,从初始化参数文件中注释掉损坏的控制文件,或通过脚本重新创建控制文件。
部署运行你感兴趣的模型镜像

Applies to:

Oracle Server - Enterprise Edition - Version 8.0.5.0 and later
z*OBSOLETE: NCR Unix SVR4
***Checked for relevance on 20-May-2011***


Symptoms


The OS crashed and at the time two instances were running.

After correcting the OS issue then you try to start the instance(s)
and upon mounting the database you receive the following errors:

ORA-00227: corrupt block detected in controlfile: (block %s, # blocks %s) 
Cause: A block header corruption or checksum error was detected on 
reading the controlfile. 
Action: Use the CREATE CONTROLFILE or RECOVER DATABASE USING BACKUP 
CONTROLFILE command. 

ORA-00202: control file: 
Cause: This message reports the name of the file involved in other 
messages.
Action: See the associated messages for a description of the problem.

Cause

Control file is corrupt.

Solution

Try to use one of the mirrored copies of the control file. You should have mirrored images of your control file. Oracle recommends at least 2 mirrored copies. Their locations should be listed in your "init.ora" file.

 

Try using one of these mirrored control files to enable you to bring up the database by copying one of them over the bad one.

 


Or 

Comment out the bad control file from the "control_files" parameter in your 
"init.ora" file and try bringing up the database with one of your mirrored 
control files.

If the above doesn't work, then all control files are corrupt and you must 
create a new control file.

Take a backup of the control files from the last backup and follow steps 
below to recreate a good control file.


===========
OPTION ONE
===========

1. The alert log should identify which control file it is trying to use.

See error ora-202.
> Note this (control1).

2. Make a backup of control files as they are now.

cp controlfiles controlfile.bk

3. Take one of the other control files and copy over the bad control file
noted above.

If this does not work, then proceed to the next step. 


==============
OPTION TWO 
==============

Comment the bad control file from the control_files parameter.

In the init.ora:

control_file = comment out the one listed in alert log from ora-202.

Try starting the instance. 

If you receive the same errors as previously with the name of the control file 
changed to controlfile2, then go to the next option.


=============
OPTION THREE
=============

Issue: 
1. Shutdown immediate. 

2. Startup nomount pfile= .

3. Alter database mount;

4. Alter database backup controlfile to trace;

5. Shutdown.

6. Check for trace file:

Either in user_dump_dest = trace file with latest time stamp; nothing 
or background_dump_dest. 

The file name should be: ora .trc.

This should contain a script to recreate the control file.

7. Save file as control.sql.

8. Edit file to start with: startup nomount.

9. Check Oracle_sid : should be set to correct sid.

10. Svrmgrl> connect internal

11. @control.sql

You will reeceive a message: Stmt processed. 

waiting on svrmgrl prompt

12. Svrmgrl media recovery complete

svrmgrl> select sysdate from dual; june 4, 1999

Database is up and open. 

13. Select on main application table: 

sqlplus : connected ok.


Solution Explanation: 
===================== 

If all the control files are corrupt, then you will need to create a new control 
file to be able to bring up your database.

Search Words: 
============= 

ORA-227
ORA-202

您可能感兴趣的与本文相关的镜像

Linly-Talker

Linly-Talker

AI应用

Linly-Talker是一款创新的数字人对话系统,它融合了最新的人工智能技术,包括大型语言模型(LLM)、自动语音识别(ASR)、文本到语音转换(TTS)和语音克隆技术

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值