delete expired删除的是那些本来RMAN以为存在但是实际上在磁盘或者磁带上已经被删除了的信息,删除的只是RMAN资料库中的记录;delete obsolete则删除旧于备份保留策略定义的备份数据同时也更新RMAN资料库以及控制文件。
对于EXPIRED状态的产生,与crosscheck命令是密切相关的,RMAN通过crosscheck命令检查备份是否存在于备份介质上,如果不存在,则状态由AVAILABLE改为EXPIRED。
例如这里将控制文件的备份删除,再使用crosscheck进行检查,该备份的状态由AVAILABLE改为EXPIRED:
crosscheck还常使用于:在手工删除归档日志后,使用crosscheck进行检查,再删除expired状态的归档信息。
对于obsolete状态,是针对MAN备份保留策略来说的,超过了这个保留策略的备份,会被标记为obsolete,但其状态依旧为AVAILABLE,我们可以使用report obsolete来查看已废弃的备份。
例如这里,冗余数为1,有两个控制文件的备份,较早的一个备份,就会被标记为obsolete:
--实验过程
RMAN>
RMAN 配置参数为:
CONFIGURE RETENTION POLICY TO REDUNDANCY 7;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'd:backupcontrol_%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:ORACLEPRODUCT10.2.0DB_1DATABASESNCFBACK.ORA'; # default
crosscheck backup;
RMAN>
使用通道 ORA_DISK_1
使用通道 ORA_DISK_2
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T154409_690YBB26_.BKP recid=1 stamp=729791050
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NCSNF_TAG20100915T154409_690YDQG0_.BKP recid=2 stamp=729791127
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T155109_690YQFOM_.BKP recid=3 stamp=729791469
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NCSNF_TAG20100915T155109_690YSTYZ_.BKP recid=4 stamp=729791546
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZJYY3_.BKP recid=5 stamp=729792286
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZKB11_.BKP recid=6 stamp=729792298
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZKS3T_.BKP recid=7 stamp=729792313
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZL85W_.BKP recid=8 stamp=729792328
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZLHGT_.BKP recid=9 stamp=729792335
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZLYKD_.BKP recid=10 stamp=729792350
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792358_690ZM7OY_.BKP recid=11 stamp=729792359
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZMWVL_.BKP recid=13 stamp=729792380
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZNRTK_.BKP recid=14 stamp=729792407
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZO6YW_.BKP recid=15 stamp=729792422
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZOP1D_.BKP recid=16 stamp=729792438
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792445_690ZOYWS_.BKP recid=17 stamp=729792446
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792779_69100F0M_.BKP recid=20 stamp=729792781
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792947_69105NX7_.BKP recid=23 stamp=729792948
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729793356_6910LG3Z_.BKP recid=28 stamp=729793358
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729793590_6910SR6W_.BKP recid=35 stamp=729793592
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_29LO1FFU_1_1 recid=107 stamp=729857541
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_28LO1FFT_1_1 recid=108 stamp=729857534
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ALO1FI2_1_1 recid=109 stamp=729857603
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-05 recid=110 stamp=729857608
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2CLO1FND_1_1 recid=111 stamp=729857774
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ELO1FNI_1_1 recid=112 stamp=729857783
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2DLO1FNH_1_1 recid=113 stamp=729857778
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2FLO1FPK_1_1 recid=114 stamp=729857845
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-06 recid=115 stamp=729857848
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2HLO1GHF_1_1 recid=116 stamp=729858608
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ILO1GHF_1_1 recid=117 stamp=729858608
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2JLO1GHG_1_1 recid=118 stamp=729858610
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2LLO1GHK_1_1 recid=119 stamp=729858618
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2KLO1GHK_1_1 recid=120 stamp=729858612
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2MLO1GJS_1_1 recid=121 stamp=729858685
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-07 recid=122 stamp=729858689
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2OLO1GPJ_1_1 recid=123 stamp=729858869
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2QLO1GPN_1_1 recid=124 stamp=729858872
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2PLO1GPN_1_1 recid=125 stamp=729858871
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2RLO1GRI_1_1 recid=126 stamp=729858932
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-08 recid=127 stamp=729858935
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ULO1I9M_1_1 recid=128 stamp=729860409
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2TLO1I9L_1_1 recid=129 stamp=729860406
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-09 recid=130 stamp=729860474
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_33LO1IK9_1_1 recid=131 stamp=729860749
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_32LO1IK9_1_1 recid=132 stamp=729860745
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-0A recid=133 stamp=729860820
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_35LOK20G_1_1 recid=134 stamp=730466321
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_36LOK20G_1_1 recid=135 stamp=730466322
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_37LOK20I_1_1 recid=136 stamp=730466323
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_39LOK20M_1_1 recid=137 stamp=730466335
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_38LOK20M_1_1 recid=138 stamp=730466326
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3ALOK22V_1_1 recid=139 stamp=730466400
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100923-00 recid=140 stamp=730466404
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3CLPEEKK_1_1 recid=141 stamp=731331221
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3DLPEEKK_1_1 recid=142 stamp=731331222
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3FLPEEKP_1_1 recid=143 stamp=731331234
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3ELPEEKO_1_1 recid=144 stamp=731331225
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3GLPEEO3_1_1 recid=145 stamp=731331332
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20101002-00 recid=146 stamp=731331342
已交叉检验的 60 对象
crosscheck backup;
RMAN>
使用通道 ORA_DISK_1
使用通道 ORA_DISK_2
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_29LO1FFU_1_1 recid=107 stamp=729857541
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_28LO1FFT_1_1 recid=108 stamp=729857534
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ALO1FI2_1_1 recid=109 stamp=729857603
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-05 recid=110 stamp=729857608
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2CLO1FND_1_1 recid=111 stamp=729857774
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ELO1FNI_1_1 recid=112 stamp=729857783
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2DLO1FNH_1_1 recid=113 stamp=729857778
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2FLO1FPK_1_1 recid=114 stamp=729857845
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-06 recid=115 stamp=729857848
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2HLO1GHF_1_1 recid=116 stamp=729858608
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ILO1GHF_1_1 recid=117 stamp=729858608
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2JLO1GHG_1_1 recid=118 stamp=729858610
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2LLO1GHK_1_1 recid=119 stamp=729858618
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2KLO1GHK_1_1 recid=120 stamp=729858612
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2MLO1GJS_1_1 recid=121 stamp=729858685
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-07 recid=122 stamp=729858689
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2OLO1GPJ_1_1 recid=123 stamp=729858869
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2QLO1GPN_1_1 recid=124 stamp=729858872
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2PLO1GPN_1_1 recid=125 stamp=729858871
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2RLO1GRI_1_1 recid=126 stamp=729858932
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-08 recid=127 stamp=729858935
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ULO1I9M_1_1 recid=128 stamp=729860409
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2TLO1I9L_1_1 recid=129 stamp=729860406
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-09 recid=130 stamp=729860474
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_33LO1IK9_1_1 recid=131 stamp=729860749
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_32LO1IK9_1_1 recid=132 stamp=729860745
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-0A recid=133 stamp=729860820
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_35LOK20G_1_1 recid=134 stamp=730466321
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_36LOK20G_1_1 recid=135 stamp=730466322
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_37LOK20I_1_1 recid=136 stamp=730466323
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_39LOK20M_1_1 recid=137 stamp=730466335
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_38LOK20M_1_1 recid=138 stamp=730466326
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3ALOK22V_1_1 recid=139 stamp=730466400
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100923-00 recid=140 stamp=730466404
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3CLPEEKK_1_1 recid=141 stamp=731331221
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3DLPEEKK_1_1 recid=142 stamp=731331222
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3FLPEEKP_1_1 recid=143 stamp=731331234
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3ELPEEKO_1_1 recid=144 stamp=731331225
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3GLPEEO3_1_1 recid=145 stamp=731331332
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20101002-00 recid=146 stamp=731331342
已交叉检验的 40 对象
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T154409_690YBB26_.BKP recid=1 stamp=729791050
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NCSNF_TAG20100915T154409_690YDQG0_.BKP recid=2 stamp=729791127
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T155109_690YQFOM_.BKP recid=3 stamp=729791469
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NCSNF_TAG20100915T155109_690YSTYZ_.BKP recid=4 stamp=729791546
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZJYY3_.BKP recid=5 stamp=729792286
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZKB11_.BKP recid=6 stamp=729792298
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZKS3T_.BKP recid=7 stamp=729792313
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZL85W_.BKP recid=8 stamp=729792328
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZLHGT_.BKP recid=9 stamp=729792335
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZLYKD_.BKP recid=10 stamp=729792350
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792358_690ZM7OY_.BKP recid=11 stamp=729792359
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZMWVL_.BKP recid=13 stamp=729792380
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZNRTK_.BKP recid=14 stamp=729792407
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZO6YW_.BKP recid=15 stamp=729792422
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZOP1D_.BKP recid=16 stamp=729792438
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792445_690ZOYWS_.BKP recid=17 stamp=729792446
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792779_69100F0M_.BKP recid=20 stamp=729792781
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792947_69105NX7_.BKP recid=23 stamp=729792948
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729793356_6910LG3Z_.BKP recid=28 stamp=729793358
交叉校验备份片段: 找到为 'EXPIRED'
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729793590_6910SR6W_.BKP recid=35 stamp=729793592
已交叉检验的 20 对象
delete exipired backup; --删除exipired backup
RMAN>
使用通道 ORA_DISK_1
使用通道 ORA_DISK_2
备份片段列表
BP 关键字
------- ------- --- --- ----------- ----------- ----------
28
29
43
44
84
85
86
87
88
89
102
122
123
124
125
140
188
235
312
388
是否确定要删除以上对象 (输入 YES 或 NO)?
是否确定要删除以上对象 (输入 YES 或 NO)? 已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T154409_690YBB26_.BKP recid=1 stamp=729791050
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NCSNF_TAG20100915T154409_690YDQG0_.BKP recid=2 stamp=729791127
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T155109_690YQFOM_.BKP recid=3 stamp=729791469
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NCSNF_TAG20100915T155109_690YSTYZ_.BKP recid=4 stamp=729791546
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZJYY3_.BKP recid=5 stamp=729792286
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZKB11_.BKP recid=6 stamp=729792298
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZKS3T_.BKP recid=7 stamp=729792313
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZL85W_.BKP recid=8 stamp=729792328
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZLHGT_.BKP recid=9 stamp=729792335
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160446_690ZLYKD_.BKP recid=10 stamp=729792350
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792358_690ZM7OY_.BKP recid=11 stamp=729792359
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZMWVL_.BKP recid=13 stamp=729792380
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZNRTK_.BKP recid=14 stamp=729792407
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZO6YW_.BKP recid=15 stamp=729792422
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKBACKUPSET2010_09_15O1_MF_NNNDF_TAG20100915T160620_690ZOP1D_.BKP recid=16 stamp=729792438
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792445_690ZOYWS_.BKP recid=17 stamp=729792446
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792779_69100F0M_.BKP recid=20 stamp=729792781
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729792947_69105NX7_.BKP recid=23 stamp=729792948
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729793356_6910LG3Z_.BKP recid=28 stamp=729793358
已删除备份片段
备份段 handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREABACKAUTOBACKUP2010_09_15O1_MF_S_729793590_6910SR6W_.BKP recid=35 stamp=729793592
20 EXPIRED 对象已删除
crosscheck backup;
RMAN>
使用通道 ORA_DISK_1
使用通道 ORA_DISK_2
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_29LO1FFU_1_1 recid=107 stamp=729857541
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_28LO1FFT_1_1 recid=108 stamp=729857534
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ALO1FI2_1_1 recid=109 stamp=729857603
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-05 recid=110 stamp=729857608
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2CLO1FND_1_1 recid=111 stamp=729857774
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ELO1FNI_1_1 recid=112 stamp=729857783
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2DLO1FNH_1_1 recid=113 stamp=729857778
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2FLO1FPK_1_1 recid=114 stamp=729857845
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-06 recid=115 stamp=729857848
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2HLO1GHF_1_1 recid=116 stamp=729858608
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ILO1GHF_1_1 recid=117 stamp=729858608
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2JLO1GHG_1_1 recid=118 stamp=729858610
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2LLO1GHK_1_1 recid=119 stamp=729858618
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2KLO1GHK_1_1 recid=120 stamp=729858612
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2MLO1GJS_1_1 recid=121 stamp=729858685
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-07 recid=122 stamp=729858689
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2OLO1GPJ_1_1 recid=123 stamp=729858869
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2QLO1GPN_1_1 recid=124 stamp=729858872
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2PLO1GPN_1_1 recid=125 stamp=729858871
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2RLO1GRI_1_1 recid=126 stamp=729858932
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-08 recid=127 stamp=729858935
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2ULO1I9M_1_1 recid=128 stamp=729860409
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_2TLO1I9L_1_1 recid=129 stamp=729860406
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-09 recid=130 stamp=729860474
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_33LO1IK9_1_1 recid=131 stamp=729860749
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_32LO1IK9_1_1 recid=132 stamp=729860745
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-0A recid=133 stamp=729860820
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_35LOK20G_1_1 recid=134 stamp=730466321
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_36LOK20G_1_1 recid=135 stamp=730466322
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_37LOK20I_1_1 recid=136 stamp=730466323
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_39LOK20M_1_1 recid=137 stamp=730466335
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_38LOK20M_1_1 recid=138 stamp=730466326
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3ALOK22V_1_1 recid=139 stamp=730466400
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100923-00 recid=140 stamp=730466404
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3CLPEEKK_1_1 recid=141 stamp=731331221
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3DLPEEKK_1_1 recid=142 stamp=731331222
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3FLPEEKP_1_1 recid=143 stamp=731331234
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3ELPEEKO_1_1 recid=144 stamp=731331225
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPBACKUP_3GLPEEO3_1_1 recid=145 stamp=731331332
交叉校验备份片段: 找到为 'AVAILABLE'
备份段 handle=D:BACKUPCONTROL_C-4048592102-20101002-00 recid=146 stamp=731331342
已交叉检验的 40 对象
report obsolete;
RMAN>
RMAN 保留策略将应用于该命令
将 RMAN 保留策略设置为冗余 7
已废弃的备份和副本报表
类型
-------------------- ------ ------------------ --------------------
备份集
备份片段
备份集
备份片段
备份集
备份片段
备份集
备份片段
备份集
备份片段
delete obsolete; --删除不冗余的
RMAN>
RMAN 保留策略将应用于该命令
将 RMAN 保留策略设置为冗余 7
使用通道 ORA_DISK_1
使用通道 ORA_DISK_2
删除以下已废弃的备份和副本:
类型
-------------------- ------ ------------------ --------------------
备份集
备份片段
备份集
备份片段
备份集
备份片段
备份集
备份片段
备份集
备份片段
是否确定要删除以上对象 (输入 YES 或 NO)?
是否确定要删除以上对象 (输入 YES 或 NO)? 已删除备份片段
备份段 handle=D:BACKUPBACKUP_29LO1FFU_1_1 recid=107 stamp=729857541
已删除备份片段
备份段 handle=D:BACKUPBACKUP_28LO1FFT_1_1 recid=108 stamp=729857534
已删除备份片段
备份段 handle=D:BACKUPBACKUP_2ALO1FI2_1_1 recid=109 stamp=729857603
已删除备份片段
备份段 handle=D:BACKUPCONTROL_C-4048592102-20100916-05 recid=110 stamp=729857608
已删除备份片段
备份段 handle=D:BACKUPBACKUP_2CLO1FND_1_1 recid=111 stamp=729857774
5 对象已删除