Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

DBA - Backup Rentention Policy

Back


Take-Away:

Command Description
SHOW RETENTION POLICY; Show the current retention policy
CONFIGURE RETENTION POLICY CLEAR; To revert to the default value
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; Default, Enable Redundancy Retention Policy
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF <days> DAYS; Enable Recovery Window Retention Policy
CONFIGURE RETENTION POLICY TO NONE; Disable Retention Policy
REPORT OBSOLETE; Report obsolete backup
DELETE OBSOLETE; Delete obsolete backup

Retention Policy

rman_retention_policy01


Recovery Window Retention Policy

recovery catalog CONTROL_FILE_RECORD_KEEP_TIME parameter
not using >=recovery window
using >=the time period between catalog resynchronizations
-- where <days> is the size of the recovery window.
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF <days> DAYS;

rman

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;

Redundancy Retention Policy

-- Replace <copies> with the desired number of copies to meet your policy requirements.
CONFIGURE RETENTION POLICY TO REDUNDANCY <copies>;

Disabling the Retention Policy

CONFIGURE RETENTION POLICY TO NONE;

Batch Deletes of Obsolete Backups

-- identify which backups are obsolete
REPORT OBSOLETE;

-- Deletes obsolete data file backups, copies, archived redo log files and log backups.
DELETE OBSOLETE;

TOP