Oracle8i Backup and Recovery Guide Release 8.1.5 A67773-01 |
|
To examine a backup set and report whether it can be restored. RMAN scans all of the backup pieces in the specified backup sets and looks at the checksums to verify that the contents are intact so that the backup can be successfully restored if necessary. Note that validate backupset actually tests whether the backup sets can be restored, whereas change ... crosscheck merely examines the headers of the specified files.
Use this command when you suspect that one or more backup pieces in a backup set are missing or have been damaged. Use validate backupset to specify which backups to test; use the validate option of the restore command to let RMAN choose which backups to validate.
This example validates the status of the backup set whose primary key is 12:
run{ allocate channel ch1 type disk; validate backupset 12; } # As the output indicates, RMAN determines whether it is possible to restore the # specified backup set. RMAN-03022: compiling command: allocate RMAN-03023: executing command: allocate RMAN-08030: allocated channel: c1 RMAN-08500: channel ch1: sid=10 devtype=DISK RMAN-03022: compiling command: validate RMAN-03023: executing command: validate RMAN-08016: channel ch1: starting datafile backupset restore RMAN-08502: set_count=16 set_stamp=341344502 creation_time=14-AUG-98 RMAN-08023: channel ch1: restored backup piece 1 RMAN-08511: piece handle=/oracle/dbs/0ga5h07m_1_1 params=NULL RMAN-08024: channel ch1: restore complete RMAN-08031: released channel: ch1