最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501
当前位置: 首页 - 科技 - 知识百科 - 正文

使用旧的控制文件恢复

来源:懂视网 责编:小采 时间:2020-11-09 11:13:22
文档

使用旧的控制文件恢复

使用旧的控制文件恢复:在做resetlogs启数据库也会因为数据文件内部一致而中止,需要恢复 备份控制文件 alter database backup controlfileto '/bk/ctl.bk'; SQL> alter system switch logfile; alter system switch logfile * ERRO
推荐度:
导读使用旧的控制文件恢复:在做resetlogs启数据库也会因为数据文件内部一致而中止,需要恢复 备份控制文件 alter database backup controlfileto '/bk/ctl.bk'; SQL> alter system switch logfile; alter system switch logfile * ERRO

在做resetlogs启数据库也会因为数据文件内部一致而中止,需要恢复

备份控制文件

alter database backup controlfileto '/bk/ctl.bk';

SQL> alter system switch logfile;

alter system switch logfile

*

ERROR at line 1:

ORA-03113: end-of-file on communication channel

SQL> conn /as sysdba

Connected to an idle instance.

SQL> startup

Oracle instance started.

Total System Global Area 314572800 bytes

Fixed Size 1219136 bytes

Variable Size 100664768 bytes

Database Buffers 205520896 bytes

Redo Buffers 7168000 bytes

ORA-00205: error in identifying control file, checkalert log for more info

SQL> ! /bk/ctl.bk/u01/tiger/oradata/orcl2/control02.ctl

/bin/bash: /bk/ctl.bk: ????

SQL> ! cp /bk/ctl.bk/u01/tiger/oradata/orcl2/control02.ctl

SQL> ! cp /bk/ctl.bk/u01/tiger/oradata/orcl2/control03.ctl

SQL> ! cp /bk/ctl.bk/u01/tiger/oradata/orcl2/control01.ctl

SQL> alter database mount;

Database altered.

SQL> alter database open;

alter database open

*

ERROR at line 1:

ORA-01589: must use RESETLOGS or NORESETLOGS option fordatabase open

需要恢复

SQL> alter database open resetlogs;

alter database open resetlogs

*

ERROR at line 1:

ORA-01194: file 1 needs more recovery to beconsistent

ORA-01110: data file 1: '/u01/tiger/oradata/orcl2/system01.dbf'

SQL> recover database;

ORA-00283: recovery session canceled due to errors

ORA-01610: recovery using the BACKUP CONTROLFILE option mustbe done

数据库检测控制文件和数据文件的SCN的对比,,发现控制文件是老的

SQL> recover database using backupcontrolfile;

ORA-00279: change 458762 generated at 09/03/201214:28:45 needed for thread 1

ORA-00289: suggestion :/u01/tiger/flash_recovery_area/ORCL2/archivelog/2012_09_03/o1_mf_1_2_%u_.arc

ORA-00280: change 458762 for thread 1 is insequence #2

Specify log: {=suggested | filename |AUTO | CANCEL}

auto

ORA-00279: change 458780 generated at 09/03/201214:50:27 needed for thread 1

ORA-00289: suggestion :/u01/tiger/flash_recovery_area/ORCL2/archivelog/2012_09_03/o1_mf_1_3_%u_.arc

ORA-00280: change 458780 for thread 1 is insequence #3

ORA-00278: log file'/u01/tiger/flash_recovery_area/ORCL2/archivelog/2012_09_03/o1_mf_1_2_848nst62_.arc'no longer

needed for this recovery

ORA-00279: change 458785 generated at 09/03/201214:50:35 needed for thread 1

ORA-00289: suggestion : /u01/tiger/flash_recovery_area/ORCL2/archivelog/2012_09_03/o1_mf_1_4_%u_.arc

ORA-00280: change 458785 for thread 1 is insequence #4

ORA-00278: log file'/u01/tiger/flash_recovery_area/ORCL2/archivelog/2012_09_03/o1_mf_1_3_848nsvk0_.arc'no longer

needed for this recovery

ORA-00279: change 458791 generated at 09/03/201214:50:42 needed for thread 1

ORA-00289: suggestion :/u01/tiger/flash_recovery_area/ORCL2/archivelog/2012_09_03/o1_mf_1_5_%u_.arc

ORA-00280: change 458791 for thread 1 is insequence #5

ORA-00278: log file'/u01/tiger/flash_recovery_area/ORCL2/archivelog/2012_09_03/o1_mf_1_4_848nt295_.arc'no longer

needed for this recovery

ORA-00308: cannot open archived log'/u01/tiger/flash_recovery_area/ORCL2/archivelog/2012_09_03/o1_mf_1_5_%u_.arc'

ORA-27037: unable to obtain file status

Linux Error: 2: No such file or directory

Additional information: 3

给它一组组尝试

SQL> recover database using backupcontrolfile;

ORA-00279: change 458791 generated at 09/03/201214:50:42 needed for thread 1

ORA-00289: suggestion : /u01/tiger/flash_recovery_area/ORCL2/archivelog/2012_09_03/o1_mf_1_5_%u_.arc

ORA-00280: change 458791 for thread 1 is insequence #5

Specify log: {=suggested | filename |AUTO | CANCEL}

/u01/tiger/oradata/orcl2/redo01.log

Log applied.

Media recovery complete.

SQL> alter database openresetlogs;

Database altered.

SQL>

linux

声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文档

使用旧的控制文件恢复

使用旧的控制文件恢复:在做resetlogs启数据库也会因为数据文件内部一致而中止,需要恢复 备份控制文件 alter database backup controlfileto '/bk/ctl.bk'; SQL> alter system switch logfile; alter system switch logfile * ERRO
推荐度:
标签: 恢复 老的 以前的
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top