Tags

11g (5) 12c (6) 18c (3) 19c (4) ASM (1) Critical Patch (11) Data Pump (1) Dataguard (9) Diverse (3) GRID (7) GitLab (2) Linux (8) OEM (2) ORA Errors (13) Oracle (12) RMAN (4)
Showing posts with label Delete RMAN Backups. Show all posts
Showing posts with label Delete RMAN Backups. Show all posts

Tuesday, December 3, 2019

Delete RMAN Backups



Delete RMAN Backups

It will delete all EXPIRED backups from RMAN repository.

RMAN Retention Policy
rman target /
RMAN> SHOW ALL;
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 4 DAYS;

What is an Obsolete Backup?
Backup that we have in our system (both on RMAN catalog, and as physical RMAN backup files at the file system level) that is older than 4 days is considered obsolete.

View Backups before Delete Obsolete?
RMAN> LIST BACKUP SUMMARY;

Perform RMAN CrossCheck:
Crosscheck backup command will check for the records in the RMAN repository to make sure they are accurate.
RMAN> CROSSCHECK BACKUP;

Delete Obsolete RMAN backup:
Once the crosscheck is done, it is time to delete the old obsolete backup using the DELETE OBSOLETE command as shown below.
RMAN> DELETE OBSOLETE;
OR
RMAN> DELETE NOPROMPT OBSOLETE;

View Backups After Delete Obsolete
RMAN> LIST BACKUP SUMMARY;

Delete Expired Backup:
What is an Expired Backup?
When you have an entry in the RMAN repository for a backup, but there are no corresponding physical rman backup files at the filesystem level, that is considered as expired entry.

Perform RMAN CrossCheck:
RMAN> CROSSCHECK BACKUP;
RMAN> LIST BACKUP SUMMARY;

Delete Expired RMAN Catalog Entries
RMAN> DELETE EXPIRED BACKUP;

View Backups after Delete Expired:
RMAN> LIST BACKUP SUMMARY;

List backupset:
LIST BACKUP SUMMARY;
CROSSCHECK BACKUP;
DELETE OBSOLETE;
DELETE EXPIRED BACKUP;

You can check the backup of the specific file:
 list backup of datafile 4;
Delete archivelogs:
crosscheck archivelog all;
delete noprompt expired archivelog all;
list backup;

physical standby without duplicate command

physical standby without duplicate command create a physical standby database using RMAN without using duplicate command PURPOSE:   All docu...