denrepo

OracleBackup & recovery

Corrupt blocks found by RMAN

Blocks RMAN has flagged as corrupt. The view is filled by backups and by RMAN VALIDATE, so run a validate first if you haven't recently.

Not yet verified. How scripts are tested

ora-corruption.sql
1-- Refresh the list first (in RMAN):2--   RMAN> VALIDATE CHECK LOGICAL DATABASE;3 4CLEAR COLUMNS5SET LINESIZE 100 PAGESIZE 100 TRIMOUT ON TAB OFF6COLUMN file#           HEADING "FILE#"  FORMAT 999997COLUMN block#          HEADING "BLOCK#" FORMAT 99999999998COLUMN blocks          FORMAT 999,9909COLUMN corruption_type HEADING "TYPE"   FORMAT A1210 11SELECT file#, block#, blocks, corruption_type12FROM v$database_block_corruption13ORDER BY file#, block#;

Save it as ora-corruption.sql and run it with SQL> @ora-corruption.

Open in denrepoRelated tool: RMAN command builder

Helps with

More Oracle scripts: Backup & recovery