0
我在運行在Windows環境下的Oracle 11gR2測試數據庫機器上配置了RMAN增量備份。我已將保留策略設置爲7天的恢復窗口。週日我採取零級增量備份,如下所示:使用RMAN增量備份的保留策略
run {
HOST 'create_date_folder';
allocate channel ch1 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_0LVL_%d_s%s_p%p_t%t_%U';
allocate channel ch2 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_0LVL_%d_s%s_p%p_t%t_%U';
allocate channel ch3 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_0LVL_%d_s%s_p%p_t%t_%U';
BACKUP INCREMENTAL LEVEL 0 AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG;
release channel ch1;
release channel ch2;
release channel ch3;
}
在一週幾天我拿1級累積增量備份操作如下:
run {
HOST 'create_date_folder';
allocate channel ch1 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_1LVL_%d_s%s_p%p_t%t_%U';
allocate channel ch2 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_1LVL_%d_s%s_p%p_t%t_%U';
allocate channel ch3 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_1LVL_%d_s%s_p%p_t%t_%U';
BACKUP INCREMENTAL LEVEL 1 AS COMPRESSED BACKUPSET CUMULATIVE DATABASE PLUS ARCHIVELOG;
release channel ch1;
release channel ch2;
release channel ch3;
}
是我面臨的問題是儘管設置了保留策略舊備份(超過兩週)並未被RMAN視爲過時/過期,因爲它們不會通過執行delete obsolete命令而被刪除。第二個問題是如何限制RMAN不刪除Oracle生成的Archivelogs。 Pl指南。