码迷,mamicode.com
首页 > 其他好文 > 详细

RMAN-20208: UNTIL CHANGE is before RESETLOGS change

时间:2019-11-28 19:10:25      阅读:59      评论:0      收藏:0      [点我收藏+]

标签:using   tor   fas   control   acl   tar   comm   lap   database   

执行recover操作时:

RMAN> recover database;     

Starting recover at 28-NOV-19

using channel ORA_DISK_1

starting media recovery

channel ORA_DISK_1: starting archived log restore to default destination

channel ORA_DISK_1: restoring archived log

archived log thread=1 sequence=7

channel ORA_DISK_1: restoring archived log

archived log thread=1 sequence=8

channel ORA_DISK_1: reading from backup piece /home/oracle/backup/arc_1025423665_3

channel ORA_DISK_1: piece handle=/home/oracle/backup/arc_1025423665_3 tag=TAG20191127T075425

channel ORA_DISK_1: restored backup piece 1

channel ORA_DISK_1: restore complete, elapsed time: 00:00:01

archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzq9b93_.arc thread=1 sequence=7

channel default: deleting archived log(s)

archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzq9b93_.arc RECID=10 STAMP=1025505834

archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arc thread=1 sequence=8

unable to find archived log

archived log thread=1 sequence=1

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of recover command at 11/28/2019 06:43:56

RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 2060718

RMAN> recover database until scn 2060718;

Starting recover at 28-NOV-19

using channel ORA_DISK_1

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of recover command at 11/28/2019 06:45:26

RMAN-20208: UNTIL CHANGE is before RESETLOGS change

 

 

RMAN> list incarnation;

List of Database Incarnations

DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time

------- ------- -------- ---------------- --- ---------- ----------

1       1       ORCL     1553125926       PARENT  1          26-JAN-17

2       2       ORCL     1553125926       PARENT  1408558    26-NOV-19

3       3       ORCL     1553125926       CURRENT 2060718    28-NOV-19

RMAN> reset database to incarnation 2;

database reset to incarnation 2

RMAN> restore database until scn 2060717;

Starting restore at 28-NOV-19

using channel ORA_DISK_1

channel ORA_DISK_1: restore complete, elapsed time: 00:00:25

Finished restore at 28-NOV-19

RMAN> recover database until scn 2060717;

Starting recover at 28-NOV-19

using channel ORA_DISK_1

starting media recovery

archived log for thread 1 with sequence 8 is already on disk as file /u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arc

channel ORA_DISK_1: starting archived log restore to default destination

channel ORA_DISK_1: restoring archived log

archived log thread=1 sequence=7

channel ORA_DISK_1: reading from backup piece /home/oracle/backup/arc_1025423665_3

channel ORA_DISK_1: piece handle=/home/oracle/backup/arc_1025423665_3 tag=TAG20191127T075425

channel ORA_DISK_1: restored backup piece 1

channel ORA_DISK_1: restore complete, elapsed time: 00:00:01

archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzqobn5_.arc thread=1 sequence=7

channel default: deleting archived log(s)

archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzqobn5_.arc RECID=11 STAMP=1025506218

archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arc thread=1 sequence=8

media recovery complete, elapsed time: 00:00:01

Finished recover at 28-NOV-19

RMAN> alter database open resetlogs;

Satement processed

RMAN> 

 

RMAN> recover database;     
Starting recover at 28-NOV-19using channel ORA_DISK_1
starting media recovery
channel ORA_DISK_1: starting archived log restore to default destinationchannel ORA_DISK_1: restoring archived logarchived log thread=1 sequence=7channel ORA_DISK_1: restoring archived logarchived log thread=1 sequence=8channel ORA_DISK_1: reading from backup piece /home/oracle/backup/arc_1025423665_3channel ORA_DISK_1: piece handle=/home/oracle/backup/arc_1025423665_3 tag=TAG20191127T075425channel ORA_DISK_1: restored backup piece 1channel ORA_DISK_1: restore complete, elapsed time: 00:00:01archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzq9b93_.arc thread=1 sequence=7channel default: deleting archived log(s)archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzq9b93_.arc RECID=10 STAMP=1025505834archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arc thread=1 sequence=8unable to find archived logarchived log thread=1 sequence=1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 11/28/2019 06:43:56RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 2060718
RMAN> recover database until scn 2060718;
Starting recover at 28-NOV-19using channel ORA_DISK_1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 11/28/2019 06:45:00RMAN-20208: UNTIL CHANGE is before RESETLOGS change
RMAN> recover database until scn 2060718;
Starting recover at 28-NOV-19using channel ORA_DISK_1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 11/28/2019 06:45:26RMAN-20208: UNTIL CHANGE is before RESETLOGS change
RMAN> recover database;
Starting recover at 28-NOV-19using channel ORA_DISK_1
starting media recovery
unable to find archived logarchived log thread=1 sequence=1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 11/28/2019 06:46:00RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 2060718
RMAN> recover database until scn 2060718;
Starting recover at 28-NOV-19using channel ORA_DISK_1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 11/28/2019 06:47:12RMAN-20208: UNTIL CHANGE is before RESETLOGS change
RMAN> list incarnation;

List of Database IncarnationsDB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time------- ------- -------- ---------------- --- ---------- ----------1       1       ORCL     1553125926       PARENT  1          26-JAN-172       2       ORCL     1553125926       PARENT  1408558    26-NOV-193       3       ORCL     1553125926       CURRENT 2060718    28-NOV-19
RMAN> reset database to incarnation 2;
database reset to incarnation 2
RMAN> restore database until scn 2060717;
Starting restore at 28-NOV-19using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restorechannel ORA_DISK_1: specifying datafile(s) to restore from backup setchannel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbfchannel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/orcl/sysaux01.dbfchannel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/orcl/undotbs01.dbfchannel ORA_DISK_1: restoring datafile 00007 to /u01/app/oracle/oradata/orcl/users01.dbfchannel ORA_DISK_1: reading from backup piece /home/oracle/backup/db_ORCL_20191127_01uhtdrk_1_1channel ORA_DISK_1: piece handle=/home/oracle/backup/db_ORCL_20191127_01uhtdrk_1_1 tag=TAG20191127T074700channel ORA_DISK_1: restored backup piece 1channel ORA_DISK_1: restore complete, elapsed time: 00:00:25Finished restore at 28-NOV-19
RMAN> alter database open resetlogs;
RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of sql statement command at 11/28/2019 06:49:13ORA-01190: control file or data file 1 is from before the last RESETLOGSORA-01110: data file 1: ‘/u01/app/oracle/oradata/orcl/system01.dbf‘
RMAN> recover database until scn 2060717;
Starting recover at 28-NOV-19using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 8 is already on disk as file /u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arcchannel ORA_DISK_1: starting archived log restore to default destinationchannel ORA_DISK_1: restoring archived logarchived log thread=1 sequence=7channel ORA_DISK_1: reading from backup piece /home/oracle/backup/arc_1025423665_3channel ORA_DISK_1: piece handle=/home/oracle/backup/arc_1025423665_3 tag=TAG20191127T075425channel ORA_DISK_1: restored backup piece 1channel ORA_DISK_1: restore complete, elapsed time: 00:00:01archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzqobn5_.arc thread=1 sequence=7channel default: deleting archived log(s)archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzqobn5_.arc RECID=11 STAMP=1025506218archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arc thread=1 sequence=8media recovery complete, elapsed time: 00:00:01Finished recover at 28-NOV-19
RMAN> alter database open resetlogs;
Statement processed
RMAN> 

 

RMAN-20208: UNTIL CHANGE is before RESETLOGS change

标签:using   tor   fas   control   acl   tar   comm   lap   database   

原文地址:https://www.cnblogs.com/caodneg7/p/11951900.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!