RMAN> backup database format=‘/oracle_rman/%d_%s.dbf‘ plus archivelog; Starting backup at 31-7月 -11 current log archived using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=137 devtype=DISK RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of backup plus archivelog command at 07/31/2011 12:41:15 RMAN-06059: expected archived log not found, lost of archived log compromises recoverability ORA-19625: error identifying file /u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_2_7375pt80_.arc ORA-27037: unable to obtain file status 出现RMAN-06059,ORA-19625此种情况是因为归档日志已被删,但RMAN备份的时候仍然需要,备份无法进行下去, 执行change archivelog all crosscheck ;检查归档日志命令 RMAN> change archivelog all crosscheck ; released channel: ORA_DISK_1 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=137 devtype=DISK validation failed for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_2_7375pt80_.arc recid=1 stamp=757863003 validation failed for archived log archive log filename=/arc/1_3_757862072.dbf recid=2 stamp=757866473 validation failed for archived log archive log filename=/arc/1_4_757862072.dbf recid=3 stamp=757867158 validation failed for archived log archive log filename=/arc2/1_4_757862072.dbf recid=4 stamp=757867158 validation failed for archived log archive log filename=/arc/1_5_757862072.dbf recid=5 stamp=757867305 validation failed for archived log archive log filename=/arc2/1_5_757862072.dbf recid=6 stamp=757867305 validation failed for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/SYW/archivelog/2011_07_30/o1_mf_1_6_737bg68j_.arc recid=7 stamp=757867846 validation failed for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/SYW/archivelog/2011_07_30/o1_mf_1_7_737bl10x_.arc recid=8 stamp=757867969 validation failed for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/SYW/archivelog/2011_07_30/o1_mf_1_8_737bl2qc_.arc recid=9 stamp=757867970 validation failed for archived log archive log filename=/arc/1_9_757862072.dbf recid=10 stamp=757868173 validation failed for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_10_737bxx9y_.arc recid=11 stamp=757868349 validation failed for archived log archive log filename=/arc/1_11_757862072.dbf recid=12 stamp=757868925 validation succeeded for archived log archive log filename=/arc2/1_11_757862072.dbf recid=13 stamp=757868925 validation failed for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_12_737cm5vn_.arc recid=14 stamp=757869029 validation failed for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_13_737crw78_.arc recid=15 stamp=757869212 validation failed for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_14_737d2xd0_.arc recid=16 stamp=757869533 validation succeeded for archived log archive log filename=/arc/1_15_757862072.dbf recid=17 stamp=757869674 validation succeeded for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_15_737d7bom_.arc recid=18 stamp=757869674 validation succeeded for archived log archive log filename=/arc/1_16_757862072.dbf recid=19 stamp=757870597 validation succeeded for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_16_737f45pm_.arc recid=20 stamp=757870597 validation succeeded for archived log archive log filename=/arc/1_17_757862072.dbf recid=21 stamp=757870657 validation succeeded for archived log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_17_737f61b4_.arc recid=22 stamp=757870657 validation succeeded for archived log archive log filename=/arc/1_18_757862072.dbf recid=23 stamp=757946312 validation succeeded for archived log archive log filename=/arc/1_19_757862072.dbf recid=24 stamp=757946471 Crosschecked 24 objects 发现有很多过期的归档,运行以下命令进行***过期的归档 RMAN> delete expired archivelog all; released channel: ORA_DISK_1 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=137 devtype=DISK List of Archived Log Copies Key Thrd Seq S Low Time Name ------- ---- ------- - ---------- ---- 1 1 2 X 30-7月 -11 /u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_2_7375pt80_.arc 2 1 3 X 30-7月 -11 /arc/1_3_757862072.dbf 3 1 4 X 30-7月 -11 /arc/1_4_757862072.dbf 4 1 4 X 30-7月 -11 /arc2/1_4_757862072.dbf 5 1 5 X 30-7月 -11 /arc/1_5_757862072.dbf 6 1 5 X 30-7月 -11 /arc2/1_5_757862072.dbf 7 1 6 X 30-7月 -11 /u01/app/oracle/flash_recovery_area/SYW/archivelog/SYW/archivelog/2011_07_30/o1_mf_1_6_737bg68j_.arc 8 1 7 X 30-7月 -11 /u01/app/oracle/flash_recovery_area/SYW/archivelog/SYW/archivelog/2011_07_30/o1_mf_1_7_737bl10x_.arc 9 1 8 X 30-7月 -11 /u01/app/oracle/flash_recovery_area/SYW/archivelog/SYW/archivelog/2011_07_30/o1_mf_1_8_737bl2qc_.arc 10 1 9 X 30-7月 -11 /arc/1_9_757862072.dbf 11 1 10 X 30-7月 -11 /u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_10_737bxx9y_.arc 12 1 11 X 30-7月 -11 /arc/1_11_757862072.dbf 14 1 12 X 30-7月 -11 /u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_12_737cm5vn_.arc 15 1 13 X 30-7月 -11 /u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_13_737crw78_.arc 16 1 14 X 30-7月 -11 /u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_14_737d2xd0_.arc Do you really want to delete the above objects (enter YES or NO)? yes deleted archive log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_2_7375pt80_.arc recid=1 stamp=757863003 deleted archive log archive log filename=/arc/1_3_757862072.dbf recid=2 stamp=757866473 deleted archive log archive log filename=/arc/1_4_757862072.dbf recid=3 stamp=757867158 deleted archive log archive log filename=/arc2/1_4_757862072.dbf recid=4 stamp=757867158 deleted archive log archive log filename=/arc/1_5_757862072.dbf recid=5 stamp=757867305 deleted archive log archive log filename=/arc2/1_5_757862072.dbf recid=6 stamp=757867305 deleted archive log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/SYW/archivelog/2011_07_30/o1_mf_1_6_737bg68j_.arc recid=7 stamp=757867846 deleted archive log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/SYW/archivelog/2011_07_30/o1_mf_1_7_737bl10x_.arc recid=8 stamp=757867969 deleted archive log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/SYW/archivelog/2011_07_30/o1_mf_1_8_737bl2qc_.arc recid=9 stamp=757867970 deleted archive log archive log filename=/arc/1_9_757862072.dbf recid=10 stamp=757868173 deleted archive log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_10_737bxx9y_.arc recid=11 stamp=757868349 deleted archive log archive log filename=/arc/1_11_757862072.dbf recid=12 stamp=757868925 deleted archive log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_12_737cm5vn_.arc recid=14 stamp=757869029 deleted archive log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_13_737crw78_.arc recid=15 stamp=757869212 deleted archive log archive log filename=/u01/app/oracle/flash_recovery_area/SYW/archivelog/2011_07_30/o1_mf_1_14_737d2xd0_.arc recid=16 stamp=757869533 Deleted 15 EXPIRED objects ***了15个过期的归档,现在再执行一次备份 RMAN> backup database format=‘/oracle_rman/%d_%s.dbf‘ plus archivelog; Starting backup at 31-7月 -11 current log archived using channel ORA_DISK_1 channel ORA_DISK_1: starting archive log backupset channel ORA_DISK_1: specifying archive log(s) in backup set input archive log thread=1 sequence=11 recid=13 stamp=757868925 input archive log thread=1 sequence=15 recid=18 stamp=757869674 input archive log thread=1 sequence=16 recid=20 stamp=757870597 input archive log thread=1 sequence=17 recid=22 stamp=757870657 input archive log thread=1 sequence=18 recid=23 stamp=757946312 input archive log thread=1 sequence=19 recid=24 stamp=757946471 input archive log thread=1 sequence=20 recid=25 stamp=757946742 input archive log thread=1 sequence=21 recid=26 stamp=757947186 input archive log thread=1 sequence=22 recid=27 stamp=757947643 channel ORA_DISK_1: starting piece 1 at 31-7月 -11 channel ORA_DISK_1: finished piece 1 at 31-7月 -11 piece handle=/u01/app/oracle/flash_recovery_area/SYW/backupset/2011_07_31/o1_mf_annnn_TAG20110731T130043_739rcx0n_.bkp tag=TAG20110731T130043 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:10 Finished backup at 31-7月 -11 Starting backup at 31-7月 -11 using channel ORA_DISK_1 channel ORA_DISK_1: starting full datafile backupset channel ORA_DISK_1: specifying datafile(s) in backupset input datafile fno=00001 name=/u01/app/oracle/oradata/syw/system01.dbf input datafile fno=00003 name=/u01/app/oracle/oradata/syw/sysaux01.dbf input datafile fno=00002 name=/u01/app/oracle/oradata/syw/undotbs01.dbf input datafile fno=00004 name=/u01/app/oracle/oradata/syw/users01.dbf channel ORA_DISK_1: starting piece 1 at 31-7月 -11 channel ORA_DISK_1: finished piece 1 at 31-7月 -11 piece handle=/oracle_rman/SYW_6.dbf tag=TAG20110731T130053 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:01:05 channel ORA_DISK_1: starting full datafile backupset channel ORA_DISK_1: specifying datafile(s) in backupset including current control file in backupset including current SPFILE in backupset channel ORA_DISK_1: starting piece 1 at 31-7月 -11 channel ORA_DISK_1: finished piece 1 at 31-7月 -11 piece handle=/oracle_rman/SYW_7.dbf tag=TAG20110731T130053 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03 Finished backup at 31-7月 -11 Starting backup at 31-7月 -11 current log archived using channel ORA_DISK_1 channel ORA_DISK_1: starting archive log backupset channel ORA_DISK_1: specifying archive log(s) in backup set input archive log thread=1 sequence=23 recid=28 stamp=757947722 channel ORA_DISK_1: starting piece 1 at 31-7月 -11 channel ORA_DISK_1: finished piece 1 at 31-7月 -11 piece handle=/u01/app/oracle/flash_recovery_area/SYW/backupset/2011_07_31/o1_mf_annnn_TAG20110731T130202_739rgcwd_.bkp tag=TAG20110731T130202 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02 Finished backup at 31-7月 -11 RMAN>
RMAN-06059: expected archived log not found,ORA-19625
时间: 2024-10-19 11:45:07