This is an archive version of the document. To get the most up-to-date information, see the current version.

Retention of RMAN Backups

In this article

    To configure retention policies for RMAN backups and archived redo logs, you can use standard Oracle RMAN commands.

    Configuring Retention Policy

    To edit retention policy for RMAN backups, connect to the target database in RMAN console and run set one of the following retention policies:

    configure retention policy to redundancy 7;

    configure retention policy to recovery window of 7 days;

    To delete obsolete backups, run the following command after each backup:

    delete obsolete;

    To disable retention policy for RMAN backups, run the following command:

    configure retention policy to none;

    For details, see the Configuring the Backup Retention Policy section of the Oracle Database Backup and recovery User's Guide.

    Configuring Archived Redo Log Deletion Policy

    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.

    configure archivelog deletion policy

    to backed up 3 times to sbt;

    To disable archivelog deletion policy, run the following command:

    configure archivelog deletion policy to none;

    For details, see the Configuring the Backup Retention Policy section of the Oracle Database Backup and recovery User's Guide.

    Deleting RMAN Backups from Veeam Backup Repository

    If you want to delete backups files, you can use the Oracle RMAN housekeeping functionality. For details, see the Deleting RMAN Backups and Archived Redo Logs section of the Oracle Database Backup and Recovery User's Guide.

    If you have lost the backup catalog, you can remove the backups manually from Veeam backup repositories.

    Deleting Backups Manually Note:

    If you remove backups from a Veeam backup repository manually, the backup catalog will not be updated.

    To remove a backup from Veeam backups repository, do the following:

    1. In the Veeam Backup & Replication console, open the Home view.
    2. In the Inventory pane, select Backups.
    3. In the working area, right-click the backup job object name and select Delete from disk.

    Deleting Backups Manually