Q

Deleting backups using RMAN

How do I use RMAN to delete old backups?

How does one delete backups pertaining to previous incarnations of a database with RMAN? Even though they are older than the seven-day retention policy they do not get deleted with delete obsolete.

You have a couple of options. The first one I'd suggest is to use CROSSCHECK to remove any backups that no longer exist. The RMAN command is:

CROSSCHECK BACKUP

There are other options, so consult the RMAN Reference Guide. The CROSSCHECK command does not remove the backups from RMAN. It marks backups as AVAILABLE, UNAVAILABLE, or EXPIRED. You can use the DELETE EXPIRED command to remove the expired backups.

Another thing that you should consider doing is using the DELETE OBSOLETE command on a regularly scheduled basis. This can remove those backups from RMAN that are no longer needed for recovery.

Finally, to change the status of an RMAN backup, use the CHANGE command. For instance, to change backupset #1234 to UNAVAILABLE, use the following command:

CHANGE BACKUPSET 1234 UNAVAILABLE
This was first published in September 2004

Dig deeper on Oracle database backup and recovery

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close