Configuring Archived Redo Log Retention
By default, archivelog deletion policy is disabled. While the archivelog deletion policy is disabled, RMAN deletes archived redo log backups according to the backup retention policy. If the backup retention policy is not configured, RMAN stores only the latest archived log backup.
To configure archivelog deletion policy, run the following command. When the number of archived log backups exceeds the specified number, RMAN deletes the oldest archived log backup.
To disable archivelog deletion policy, run the following command:
For details, see the Configuring the Backup Retention Policy section of the Oracle Database Backup and recovery User's Guide.