重建控制文件 recreate control file

简单总结如下:
1) 启动到mount
2) 执行Alter database backup controlfile to trace;
3) 找到第2步生成的trace文件,并作相应修改. 只保留创建语句
4) shutdown并启动到nomount, 执行创建语句
5) 启动到mount
6) 执行下面脚本,进行恢复
$more recover_db.sh
#!/bin/bash
source /home/oracle/.bash_profile
cd `dirname $0`

sqlplus / as sysdba  <startup mount;
recover database noparallel;
auto
EOD
7) 执行ALTER SYSTEM ARCHIVE LOG ALL;
8) ALTER DATABASE OPEN;
9) 注册临时文件  (语句在第2步生成的trace文件末尾)
ALTER TABLESPACE TEMP2 ADD TEMPFILE '+DATA1/isddw/datafile/temp2_01' REUSE;
....

附Metalink中的步骤
Applies to:
Oracle Server - Enterprise Edition
Information in this document applies to any platform.
"Checked for relevance on 12-March-2008"
***Checked for relevance on 25-Jul-2010***

Symptoms
ORA-1122 :database file %s failed verification check
ORA-1110 : datafile :
ORA-1207: ORA 1207 file is more recent than control file

Cause
The information in this file is inconsistent with information from the control file.
The datafile header CHECKPOINT count is beyond the controlfile CHECKPOINT count.

Solution
1.Mount the database
SQL>Startup mount

2. trace the control file

SQL> Alter database backup controlfile to trace;

3. Create a control file creation script. from the tracefile generated in user_dump_dest.

Use the Noresetlogs option

4.shutdown the database and start it NOMOUNT mode

SQL>shutdown abort
SQL>startup NoMount

5.Create the control file

Use the script. generated by the 'backup controlfile to trace' command above.

Reference: Note:1012929.6 How to Recreate the Controlfile

6.Recover database

SQL>recover database ;

7.Open the database

SQL>Alter database open

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/94384/viewspace-684444/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/94384/viewspace-684444/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值