ITPub博客

首页 > 数据库 > Oracle > 模拟控制文件丢失-日志文件是最新的,但数据文件来自备份

模拟控制文件丢失-日志文件是最新的,但数据文件来自备份

原创 Oracle 作者:Rman2017 时间:2017-04-19 09:33:23 0 删除 编辑

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup;

ORACLE instance started.


Total System Global Area  419430400 bytes

Fixed Size                  1267836 bytes

Variable Size             356517764 bytes

Database Buffers           58720256 bytes

Redo Buffers                2924544 bytes

Database mounted.

Database opened.



SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup;

ORACLE instance started.


Total System Global Area  419430400 bytes

Fixed Size                  1267836 bytes

Variable Size             356517764 bytes

Database Buffers           58720256 bytes

Redo Buffers                2924544 bytes

Database mounted.

Database opened.

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.



[oracle@localhost NACEC]$ rm -rf *.ctl

[oracle@localhost NACEC]$ rm -rf users01.dbf


[oracle@localhost wqbf]$ cp *.ctl /dat/DBData/oradata/NACEC/

[oracle@localhost wqbf]$ cp users01.dbf /dat/DBData/oradata/NACEC/



SQL> startup mount;

ORACLE instance started.


Total System Global Area  419430400 bytes

Fixed Size                  1267836 bytes

Variable Size             356517764 bytes

Database Buffers           58720256 bytes

Redo Buffers                2924544 bytes

Database mounted.


SQL> recover database using backup controlfile

ORA-00279: change 1209677 generated at 03/10/2014 18:48:21 needed for thread 1

ORA-00289: suggestion :

/dat/DBSoftware/oracle/flash_recovery_area/NACEC/archivelog/2014_03_10/o1_mf_1_1

_%u_.arc

ORA-00280: change 1209677 for thread 1 is in sequence #1


SQL> recover database using backup controlfile

Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

/dat/DBData/oradata/NACEC/redo01.log

Log applied.

Media recovery complete.


SQL> alter database open resetlogs;







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

请登录后发表评论 登录
全部评论

注册时间:2017-03-30

  • 博文量
    352
  • 访问量
    132771