Oracle ora-01578 Oracle Data block Corruption (file number 4, block number 840339)

Source: Internet
Author: User

ORA-01578 is a block of physical bad blocks/corruption, different from the logical corruption/bad block, usually accompanied by ORA-1110 appear, once Oracle read to the existence of a corrupted block will be reported caused By:java.sql.SQLException: Ora-01578:oracle Data Block Corruption (file number 4, block number 840339)
ORA-01110: Data file 4: ' E:\APP\ADMINISTRATOR\ORADATA\ORCL\USERS01. DBF '

Here's how to fix it:
1, use DBV Check data file, in the cmd directory directly input dBV file= ' E:\APP\ADMINISTRATOR\ORADATA\ORCL\USERS01. DBF ' blocksize=8192; then wait for the test results
2, check the damage related tables
SELECT Tablespace_name, Segment_type, owner, segment_name from dba_extents WHERE file_id = 4 and 840339 between block_id and block_id + blocks-1;
Find the relevant table name
3, internal event, set to skip the corrupted data block during full table scan: ALTER SYSTEM set events= ' 10231 Trace name context forever,level 10 ';
4. Export the above related table there is no corrupted data exp test/test file=t.dmp tables=t
5. Delete Damage related tables drop table t;
Then import the data into Imp test/test file=t.dmp tables=t


Oracle ora-01578 Oracle Data block Corruption (file number 4, block number 840339)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.