|
用run脚本备份数据到文件系统的某个路径,8个通道备份,备份集为93--100
然后有意删除了这个路径下的8个bkp文件
此时list backup; 依然可以看到这些备份集,并且状态依然显示为AVAILABLE,但实际应该为expired
首先我删除了备份集100
delete backupset 100; 是成功的,删除后再list backup,已经看不到备份集100
但是稍等一会时间后,再尝试删除备份集99,98,97等就失败报错
此时应该怎么删除这些实际处于expired状态的备份集
信息如下:
RMAN> delete backupset 98;
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
using channel ORA_DISK_5
using channel ORA_DISK_6
using channel ORA_DISK_7
using channel ORA_DISK_8
List of Backup Pieces
BP Key BS Key Pc# Cp# Status Device Type Piece Name
------- ------- --- --- ----------- ----------- ----------
98 98 1 1 AVAILABLE DISK /u01/app/oracle/backup0615/db_34r89k5e.bkp
Do you really want to delete the above objects (enter YES or NO)? y
RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due
RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
RMAN-06210: List of Mismatched objects
RMAN-06211: ==========================
RMAN-06212: Object Type Filename/Handle
RMAN-06213: --------------- ---------------------------------------------------
RMAN-06214: Backup Piece /u01/app/oracle/backup0615/db_34r89k5e.bkp
|
|