移除其中一个归档后则情况如下:
RMAN> recover database test;
Starting recover at 05-DEC-12
using channel ORA_DISK_1
starting media recovery
archive log thread 1 sequence 1 is already on disk as file /Oracle/archive/1_1_801229657.dbf
archive log thread 1 sequence 2 is already on disk as file /oracle/archive/1_2_801229657.dbf
archive log thread 1 sequence 3 is already on disk as file /oracle/archive/1_3_801229657.dbf
archive log thread 1 sequence 4 is already on disk as file /oracle/archive/1_4_801229657.dbf
archive log thread 1 sequence 5 is already on disk as file /oracle/archive/1_5_801229657.dbf
archive log thread 1 sequence 6 is already on disk as file /oracle/archive/1_6_801229657.dbf
archive log thread 1 sequence 7 is already on disk as file /oracle/archive/1_7_801229657.dbf
archive log thread 1 sequence 8 is already on disk as file /oracle/archive/1_8_801229657.dbf
archive log thread 1 sequence 9 is already on disk as file /oracle/archive/1_9_801229657.dbf
archive log thread 1 sequence 11 is already on disk as file /oracle/archive/1_11_801229657.dbf
archive log thread 1 sequence 12 is already on disk as file /oracle/archive/1_12_801229657.dbf
archive log thread 1 sequence 13 is already on disk as file /oracle/archive/1_13_801229657.dbf
archive log thread 1 sequence 14 is already on disk as file /oracle/archive/1_14_801229657.dbf
RMAN-11006: WARNING: test recovery results:
ORA-10574: Test recovery did not corrupt any data block
ORA-10573: Test recovery tested redo from change 2779426987 to 2779426987
ORA-10571: Test recovery canceled
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 12/05/2012 20:59:16
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of log thread 1 seq 10 lowscn 2779427837 found to restore
上面错误提示可清晰看到提示日志文件丢失提示
不过感觉这命令还不如下面命令好用
RMAN> restore validate archivelog sequence between 1 and 14;
Starting restore at 05-DEC-12
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 12/05/2012 21:08:18
RMAN-06026: some targets not found - aborting restore
RMAN-06025: no backup of log thread 1 seq 10 lowscn 2779427837 found to restore
