Fixing Oracle Database Block Corruption 11g
Fixing Oracle Database Block Corruption 11g
FILE_NAME
-------------------------------------------------------------------------------------------------------
---------------------------
/oracle/oradata/ORCL/datafile/o1_mf_users_5twzp1c3_new.dbf
Strategy: The repair includes complete media recovery with no data loss
Repair script: /oracle/diag/rdbms/orcl/orcl/hm/reco_1500755688.hm
Do you really want to execute the above repair (enter YES or NO)? YES
executing repair script
VERIFY:
- Using DB VERIFY
$ dbv -help
$ dbv FILE=/oracle/oradata/ORCL/datafile/o1_mf_users_5twzp1c3_new.dbf
BLOCKSIZE=8192
Command:
run{
BACKUP VALIDATE DATABASE;
BLOCKRECOVER CORRUPTION LIST;
}
Example:
$ dd if=/dev/zero of=/oracle/oradata/ORCL/datafile/o1_mf_users_5twzp1c3_new.dbf bs=8k
conv=notrunc seek=10 count=1
1+0 records in
1+0 records out
8192 bytes (8.2 kB) copied, 0.000707258 seconds, 11.6 MB/s
RMAN> run{
BACKUP VALIDATE DATABASE;
BLOCKRECOVER CORRUPTION LIST;
}
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
2 OK 0 34420 117536 1162049
File Name: /oracle/oradata/ORCL/datafile/o1_mf_sysaux_5twzp15k_.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 21077
Index 0 14799
Other 0 47240
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
3 OK 0 112 33280 1162051
File Name: /oracle/oradata/ORCL/datafile/o1_mf_undotbs1_5twzp19d_.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 0
Index 0 0
Other 0 33168
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
4 FAILED 0 1078 35304 909266
File Name: /oracle/oradata/ORCL/datafile/o1_mf_users_5twzp1c3_new.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 29789
Index 0 2182
Other 1 2255
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
5 OK 0 5903 12800 1107868
File Name: /oracle/oradata/ORCL/datafile/o1_mf_tbs_data_5v51k05o_.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 3585
Index 0 3138
Other 0 174
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
6 OK 0 12265 12808 1112803
File Name: /oracle/oradata/ORCL/datafile/o1_mf_flow_1_5w23bgcm_.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 159
Index 0 97
Other 0 287
no rows selected
By: Surachart