Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
Use case for retention policy based on Redundancy

Versions applicable : 11.2.0.4 and higher
RMAN retention policies allow you to specify how long you want to retain backups in the backup media.
RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
The above configuration means RMAN will retain maximum of two backup copies (Versions) irrespective of time period.
When a third copy is created , the 'first' oldest copy is made obsolete and made eligible for deletion.
Following is a statement from a book titled 'Oracle RMAN for Absolute beginners' (2014) by Darl Kuhn
" I find that a retention policy based on redundancy is easier to work with and more predictable with regard to how long backups are retained. If I set redundancy to 2, I know that RMAN won’t mark as obsolete the latest two backups. In contrast, the recovery window retention policy depends on the frequency of the backups and the window length to determine whether a backup is obsolete. "
Darl seems to prefer Redundancy over Recovery Window retention policy . But, I would like to know when exactly is it suitable to use 'Redundancy' retention policy ?
Is it when you have less space available in the backup media ? Or something to do with incremental backup types (Differential/Cumulative) which is used in conjunction ?
Answers
-
You will have to ask the author of the book. I can only give you my view, and to my knowledge the assessment is incorrect. There is no such thing like "marking" anything as obsolete. RMAN will use the retention policy to determine which backup or recovery data is currently outside the retention policy. Hence the report obsolete and delete obsolete command always re-evaluate the current situation. Also, RMAN never deletes anything automatically without your consent.
The retention policy does not guarantee that data is deleted. You cannot use it to make sure you have enough capacity available for backup.
Keep in mind that the default control_file_record_keep_time parameter defines a minimum of 7 days by default. This parameter applies to records in the control file that are circularly reusable, such as archive log records and various backup records. RMAN cannot evaluate data that is no longer recorded.
Whether you use edundancy or recovery window retention depends on your restore and recovery requirements. Redundancy specifies that you have x number of backups available. it does not define how old these backups are. Again, keep the control_file_record_keep_time parameter in mind. A recovery window won't consider data as obsolete based on time evaluation, regardless of how many copies you may have. What you use depends on your restore and recovery requirements.