Databases Reference
In-Depth Information
Here's another example showing how to uncatalog a specific backup piece:
RMAN> change backuppiece 'ilif2lo4_1_1' uncatalog;
uncataloged backuppiece
backup piece handle=ilif2lo4_1_1 recid=3876 stamp=619796229
Uncataloged 1 objects
RMAN>
If you're using a recovery catalog, the
change ... uncatalog
command will also delete the backup record you
are specifying in the
change ... uncatalog
command from the recovery catalog.
How It Works
The
change ... uncatalog
command changes only the RMAN repository information pertaining to the manually
deleted backups, but it doesn't actually delete the physical backups and copies of backups. The command removes
all references to data file copies, backup pieces, and archived redo logs from the recovery catalog. It also updates the
status of those records in the control file to be deleted.
Run the
change ... uncatalog
command anytime you delete a backup or an archived redo log with an
operating system command. The command removes all RMAN repository references for the file you manually
deleted. Otherwise, RMAN won't know about the files you deleted unless you run the
crosscheck
command.
Synchronizing the Repository with the Actual Backups
Problem
You've manually removed some old archived redo logs from disk and want to make sure you update the RMAN
repository (in the control file and in the recovery catalog) to match the actual backup situation both on disk and in the
media management catalog.
Solution
Use the
crosscheck
command to update the RMAN repository with the correct information about available backups.
If you physically remove an RMAN backup file, the
crosscheck
command will update the RMAN repository so its
records match the physical status of the backups. The
crosscheck
command synchronizes the backup data in the
RMAN repository (in the control file and the recovery catalog) with the actual backups both on disk and in the media
management catalog.
■
if you use all three of oracle's recommended backup maintenance polices—a backup retention policy, an
archived redo log deletion policy, and the flash recovery area—you don't need to resort to the
crosscheck
command
often. if you happen to be manually deleting backup files, run the
crosscheck
command often to make sure the rMan
repository is current.
Note