Contents
What is expired backup in Oracle?
A backup is obsolete when REPORT OBSOLETE or DELETE OBSOLETE determines, based on the user-defined retention policy, that it is not needed for recovery. A backup is considered expired only when RMAN performs a crosscheck and cannot find the file. In short, obsolete means “not needed,” whereas expired means “not found.”
How can I set expiration dates for backup?
To access this, right-click the server name in Object Explorer and select properties; then select the Database Settings page. To have the backup set expire on a specific date, click On, and enter the date on which the set will expire.
How do I check RMAN backups?
To display selected backups:
- Connect RMAN to the target database as described in “Connecting to the Target Database Using RMAN.”
- Use the LIST BACKUP or LIST COPY command to display the specified backups, both backup sets and image copies.
What does it mean if a backup is expired?
“Backup set will expire”, means an expiration date to indicate when the backup set can be overwritten by another backup not that the file/data is removed. Please use a cleanup task to achieve what you want.
What happens if I delete an oracle backup?
Deleting expired backups removes from the Oracle Recovery Manager (RMAN) repository those backups that are listed as EXPIRED. Expired backups are those found to be inaccessible during a cross-check. No attempt is made to delete the files containing the backup from disk or tape; this action updates only the RMAN repository.
How to delete Oracle old obsolete and expired RMAN backup?
If you don’t properly delete obsolete and expired Oracle DB backup from the catalog, it will cause some unnecessary throw error message during backup and also it will take-up space at the filesystem level. Also, it is not recommended to directly remove the RMAN backup files from the filesystem using Linux rm command.
What happens if I delete an expired backup on my computer?
Expired backups are those found to be inaccessible during a cross-check. No attempt is made to delete the files containing the backup from disk or tape; this action updates only the RMAN repository. To delete expired backups:
Can a shell script automatically delete obsolete backups?
If you are writing a shell script that will automatically do this for you on an on-going basis, you don’t want to manually say “YES” to delete obsolete command as shown above. Instead, you can ignore the prompt and automatically delete all obsolete backups as shown below.