Archivelog Backups are not recognized as OBSOLETE
Setup:
- Windows Server 2012
- Oracle 12.1.0.1
- 2 new databases, without any applications
- RMAN-backups to file system
- RMAN catalog database in use
I'm using the same backup script for Oracle 11gR2 and the affected Oracle 12cR1 databases. No Oracle 11gR2 database shows the problem described below.
The problem:
When executing DELETE OBSOLETE all level 0 and level 1 incremental backups, as well as any controlfile and SPFile backups, that are obsolete regarding the retention policy, are deleted. It does not matter if the retention policy is "REDUNDANCY" or "RECOVERY WINDOW". All backups of archivelogs are kept.
Executing
LIST BACKUP OF ARCHIVELOG ALL SUMMARY;
I get a list of all archivelog backups that are still present (I deleted some backups manually due to space constraints). Executing