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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

282 CHAPTER 6 ■ BACKUP AND RECOVERYValidating with the validate CommandWe’ll present some examples that show how to validate various database objects in order toillustrate the range of the new validate command. Here’s an example showing how to validatea backup set by using the validate command:RMAN> validate backupset 7;Starting validate at 21-MAY-07using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=193 device type=DISKchannel ORA_DISK_1: starting validation of datafile backup setchannel ORA_DISK_1: reading from backup piece C:\ORCL<strong>11</strong>\APP\ORACLE\PRODUCT\<strong>11</strong>.1.0\DB_1\DATABASE\5TIFHU1H_1_1channel ORA_DISK_1: piece handle=C:\ORCL<strong>11</strong>\APP\ORACLE\PRODUCT\<strong>11</strong>.1.0\DB_1\DATABASE\5TIFHU1H_1_1 tag=TAG20070419T081823channel ORA_DISK_1: restored backup piece 1channel ORA_DISK_1: validation complete, elapsed time: 00:00:01Finished validate at 21-MAY-07RMAN>You can validate an individual block in a datafile by specifying the datafile and block numbers,as shown in the following example:RMAN> validate datafile 2 block 24;The block-level validation shown here is the lowest level of granularity that you can go towith the validate command. On the other extreme, you can use the validate command tocheck the entire database at once, as shown in the following example:RMAN> validate database;Starting validate at 21-MAY-07using channel ORA_DISK_1channel ORA_DISK_1: starting compressed full datafile backup setchannel ORA_DISK_1: specifying datafile(s) for validationinput datafile file number=00002 name=C:\ORCL<strong>11</strong>\APP\ORACLE\ORADATA\1\SY01.DBF...channel ORA_DISK_1: validation complete, elapsed time: 00:<strong>11</strong>:24List of Datafiles=================File Status Marked Corrupt Empty Blocks Blocks Examined High SCN---- ------ -------------- ------------ --------------- ----------1 OK 0 12542 72960 7236557File Name: C:\ORCL<strong>11</strong>\APP\ORACLE\ORADATA\ORCL<strong>11</strong>\SYSTEM01.DBFBlock Type Blocks Failing Blocks Processed

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

Saved successfully!

Ooh no, something went wrong!