The VALIDATE option of the BACKUP command in RMAN allows you to verify that database files exist, are in the correct locations, and are free from physical or logical corruption that would prevent RMAN from backing them up.
- RMAN reads files completely but doesn't create backup sets
- Corrupt blocks are recorded in V$DATABASE_BLOCK_CORRUPTION
- Block media recovery can fix corrupted blocks
- Validation entries are removed after repair
Basic Concepts of RMAN Validation
• Blocks access to datafiles during restore/recovery
• Permits only one restore operation per datafile
• Ensures correct order of incremental backups
• Stores corruption detection information
• Performs continuous block validation
Example 1: Validating Entire Database
Starting validate at 23-DEC-24
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=33 device type=DISK
channel ORA_DISK_1: starting validation of datafile
channel ORA_DISK_1: specifying datafile(s) for validation
input datafile file number=00001 name=/u01/app/oradata/TEST/system01.dbf
input datafile file number=00002 name=/u01/app/oradata/TEST/sysaux01.dbf
input datafile file number=00003 name=/u01/app/oradata/TEST/undotbs01.dbf
input datafile file number=00004 name=/u01/app/oradata/TEST/users01.dbf
channel ORA_DISK_1: validation complete, elapsed time: 00:00:45
Validation Results
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
1 OK 0 15399 93442 4474162
File Name: /u01/app/oradata/TEST/system01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 62215
Index 0 13060
Other 0 2766
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
2 OK 0 22615 87042 4484038
File Name: /u01/app/oradata/TEST/sysaux01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 19664
Index 0 16520
Other 0 28241
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
3 OK 0 33 19200 4474161
File Name: /u01/app/oradata/TEST/undotbs01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 0
Index 0 0
Other 0 19167
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
OK 0 1292 3846 4688662
File Name: /u01/app/oradata/TEST/users01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 1228
Index 0 383
Other 0 937
Example 2: Validating Specific Datafile
Starting validate at 25-JAN-25
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=285 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=533 device type=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: SID=567 device type=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: SID=263 device type=DISK
channel ORA_DISK_1: starting validation of datafile
channel ORA_DISK_1: specifying datafile(s) for validation
input datafile file number=00530 name=/oracle/ACP/sapdata20/oracle/datafiles/sr3.data518
channel ORA_DISK_1: validation complete, elapsed time: 00:00:35
List of Datafiles
=================
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
530 OK 0 3719021 3932160 42465412921
File Name: /oracle/ACP/sapdata20/oracle/datafiles/sr3.data518
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 156570
Index 0 54430
Other 0 2139
Finished validate at 25-JAN-25
- Regular validation helps prevent backup failures
- Monitor validation results for corruption indicators
- Keep track of validation history
- Address any corruptions promptly
For more detailed information, refer to: How to Check/Validate that RMAN Backups Are Good (Doc ID 466221.1)
Please feel free to ask questions in the comments below. 🙂
Toufique Khan