V$BACKUP_CORRUPTION displays information about corrupt block ranges in datafile backups from the control file. Note that corruptions are not tolerated in the control file and archived redo log backups.
Column | Datatype | Description |
RECID | NUMBER | Backup corruption record ID |
STAMP | NUMBER | Backup corruption record stamp |
SET_STAMP | NUMBER | Backup set stamp |
SET_COUNT | NUMBER | Backup set count |
PIECE# | NUMBER | backup piece that contains this corrupt block |
FILE# | NUMBER | Absolute file number of the datafile that contains the corrupt blocks |
BLOCK# | NUMBER | Block number of the first corrupt block in the range of corrupted blocks |
BLOCKS | NUMBER | Number of corrupted blocks found starting with BLOCK# |
CORRUPTION_CHANGE# | NUMBER | Change number at which the logical corruption was detected. Set to 0 to indicate media corruption. |
MARKED_CORRUPT | VARCHAR2(3) | Indicates whether this corruption was not previously detected by the Oracle Database (YES) or the Oracle Database had already discovered this corrupt block and marked it as corrupt (NO). Note that when a corrupt block is encountered in a backup, and was not already marked corrupt by the Oracle Database, then the backup process does not mark the block as corrupt in the production datafile. Thus, this field may be YES for the same block in more than one backup set. |
CORRUPTION_TYPE | VARCHAR2(9) | Type of block corruption in the datafile:
|
Note:
1. RMAN is able to detect block corruption. Three views server this purpose: V$BACKUP_CORRUPTION, V$COPY_CORRUPTION, and V$DATABASE_BLOCK_CORRUPTION.
2. RMAN identifies corrupt blocks and logs in V$DATABASE_BLOCK_CORRUPTION. If the backup validation discovers corrupt blocks, then RMAN updates the V$DATABASE_BLOCK_CORRUPTION view with rows describing the corruptions. You can repair corruptions using block media recovery. After a corrupt block is repaired, the row identifying this block is deleted from the view.
3. The V$BACKUP_CORRUPTION view shows corrupted blocks discovered during an RMAN backup. But once the blocks have been fixed, this view is not updated. The corrupt backup sets information in V$BACKUP_CORRUPTION are represented by SET_STAMP, and SET_COUNT columns.
4. Useful Join Columns: FILE# - join to V$DATAFILE.FILE#.
5. In 10.2.0.4, the v$database_block_corruption view is based on v$copy_corruption and v$backup_corruption. The rows for dropped datafile doesn't go away until the datafile# is reused by database and a backup of that file# is taken. This issue was fixed in 11g. To workaround the problem in 10.2.0.4, you will have to clear the v$backup_corruption and v$copy_corruption view on target database.
SQL> execute dbms_backup_restore.resetCfileSection(17); /** clear v$backup_corruption
SQL> execute dbms_backup_restore.resetCfileSection(18); /**clear v$copy_corruption
SQL> execute dbms_backup_restore.resetCfileSection(18); /**clear v$copy_corruption
Oracle data dictionary views
Last updated: September 9, 2009 |
No comments:
Post a Comment