11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

280 CHAPTER 6 ■ BACKUP AND RECOVERYThe change command converts a routine weekly backup in this case to an archival backupthat never becomes obsolete (keep forever). The change command thus changes the exemptionstatus of a backup or copy vis-à-vis the configured retention policy. If you want to make along-term backup that’s ineligible for deletion into one that’s eligible for deletion (that is, eligiblefor the obsolete status), you can do so by issuing the change ... nokeep command, as shown here:RMAN> change copy of database controlfile nokeep;■Note You can’t use the change ... keep command for backup files stored in the flash recovery area.The nokeep option brings the long-term image copies for both datafiles and controlfilesback under the purview of the configured retention policy, thus guaranteeing that eventuallythey become eligible for the obsolete status again.Restoring an Archival BackupThe easiest way to restore an archival backup is by using the duplicate command after creatinga temporary instance. Here’s a quick summary of the procedure:1. Prepare the auxiliary instance, which includes the duplicate command’s usual preparatorysteps for creating an auxiliary instance, such as creating the password file and theinitialization parameter file. You must also establish <strong>Oracle</strong> Net connectivity to the auxiliaryinstance and start the auxiliary instance.2. Connect to the recovery catalog, the target, and the auxiliary instances, as shown here:RMAN> connect target sys/@prod1RMAN> connect catalog rman/rman@catdbRMAN> connect auxiliary /3. Issue the list restore point all command to see the available restore points in thedatabase:RMAN> list restore point all;SCN RSP Time Type Time Name------- -------- ----- ------- --------------3074299 21-MAY-07 FIRSTQUART07RMAN>4. Issue the duplicate database command, making sure you specify the restore point towhich you’d like to restore the database, using the archival backup:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!