There are two mutually exclusive options for implementing a retention policy: redundancy and recovery window. If no retention policy is configured by the user, then the REPORT OBSOLETE andDELETE OBSOLETE commands use a default retention policy of REDUNDANCY 1.
To configure a retention policy based on a recovery window, use the following command:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW : configure retention policy to recovery window of 7 days;
To configure a retention policy based on redundancy, use the following command:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2
You can also disable the retention policy completely, meaning that RMAN does not consider any backup to be obsolete. To do so, use the following command:
CONFIGURE RETENTION POLICY TO NONE
|
ARCH: Archival disabled due to shutdown: 1089 |
select type, record_size, records_total, records_used from v$controlfile_record_section;
TYPE RECORD_SIZE RECORDS_TOTAL RECORDS_USED
---------------------------- ----------- ------------- ------------
ARCHIVED LOG 584 308 0
BACKUP SET 40 409 0
NOTE
=====
You should keep the recovery window time period less than or equal to the value of the control file parameter CONTROL_FILE_RECORD_KEEP_TIME to prevent the record of older backups from being overwritten in the control file.
主题: Rman backup retention policy
文档 ID: 注释:462978.1 类型: BULLETIN
上次修订日期: 22-NOV-2007
Recovery Window