RMAN - Retention Policy
Retention Policy
- Setting to specify how long to keep backups
- Any backups that are not needed to support this recovery window are
marked as OBSOLETE and are automatically removed by RMAN if
you are using a flash recovery area, if you are no user FRA the
deletion need to be done Manually
- Applies to full back up only (level 0) not to level 1
- Backups can be automatically retained and managed using one of
two methods:
- Redundancy :
- X number of backups
- Default !!
- Recovery Window :
- X number of days
- Recommended by Oracle
How to ..
RMAN> show all;
using target database control file instead of
recovery catalog
RMAN configuration parameters for database with
db_unique_name ORCL are:
CONFIGURE
RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR
DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP
TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE
DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE
TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; #
default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF
RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; #
default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO
'/u01/app/oracle/Database/11.2.0/orcl/dbs/snapcf_orcl.f'; # default
RMAN> show retention policy;
RMAN configuration parameters for database with
db_unique_name ORCL are:
CONFIGURE
RETENTION POLICY TO REDUNDANCY 1; # default
RMAN> configure retention policy to
recovery window of 10 days;
new RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF
10 DAYS;
new RMAN configuration parameters are
successfully stored
RMAN> show retention policy;
RMAN configuration parameters for database with
db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF
10 DAYS;
|
Comments