Lab-06-Using Optional Backup Features
Lab-06-Using Optional Backup Features
Overview
In this practice, you will use RMAN to create an archival backup.
Overview
In this practice, you create an archival backup, that is, a backup that is not under your normal
retention policies and it is not in your normal fast recovery area (FRA) destination. This KEEP
FOREVER database backup could be used for recovery if some of your later hands-on activities
were to require it. Archival backups can be created with an open or a mounted database.
You must use a recovery catalog to be able to create an archival backup of an OPEN database.
Without a recovery catalog, you must put the database in a MOUNTED state.
Timing Estimate
It should take approximately 20 minutes to complete this practice.
RMAN>
2. Shut down and then restart the database instance in MOUNT mode so you can create a
backup copy of the entire database in a mounted state.
RMAN> SHUTDOWN IMMEDIATE;
RMAN>
RMAN>
Question: Why did the backup command fail?
Answer: It failed because a backup with the KEEP option (an archival backup) cannot be
written to the Fast Recovery Area. Allowing this has the potential of causing the Fast
Recovery Area to quickly run out of space.
5. Create an archival backup with a FORMAT clause that will direct RMAN to create the backup
in the /home/oracle/backup directory and keep it for 365 days.
RMAN> BACKUP DATABASE FORMAT '/home/oracle/backup/%U' TAG
keep_db_tag KEEP UNTIL TIME 'SYSDATE+365';
RMAN>
6. Open the database.
RMAN> alter database open;
Statement processed
RMAN>
8. Exit RMAN.
RMAN> exit
…
$
9. Close the terminal window.