The backup retention policy specifies which backup should be stored to your data recovery needs. This policy can be based on a recovery window or redundancy.Use the configure command to the retention policy.The RECOVERY window parameter of the configure command specifies the number of days between the current time and the earliest point of recoverability. RMAN does not consider a full or incremental backup level 0 to be obsolete if it falls within the recovery window. In addition, RMAN retains all archived logs and level 1 incremental backups that are necessary to recover to any point within the window are.
This example show you that, you can recover the database to any point within the last month with the ”CONFIGURE RETENTION POLICY” command ;
RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;If you want to see current retention policy value ;
RMAN> SHOW RETENTION POLICY;If you want to DISABLE your retention policy , then you have to use ;
RMAN>CONFIGURE RETENTION POLICY TO NONE;