Beruflich Dokumente
Kultur Dokumente
How to detect and fix a corruption in the datafile OS header/Block Zero - ORA-
27047 [ID 360032.1]
Applies to:
Oracle Server - Enterprise Edition - Version: 8.0.5.0 to 11.2.0.1 - Release: 8.0.5 to 11.2
Oracle Server - Enterprise Edition - Version: 8.0.5.0 to 11.2.0.1 [Release: 8.0.5 to 11.2]
Information in this document applies to any platform.
Symptoms
The OS Block Header is in the first datafile block. It is used by Oracle to store Operating System
information.
It is the Block Zero. It is not the datafile header which is in Oracle Block 1.
Corruption in Block Zero will not cause damage to the data and it is not detected by dbverify/rman.
When this block is corrupted the database may be opened with no errors.
@ This block contains a magic number to identify the platform, the size of the datafile in
Symptoms
Creating the control file may report error ORA-27047 when OS block header is invalid for a particular
datafile:
Cause
$ dbfsize /oradata/users.dbf
Header block magic number is bad
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLE... 24/06/2010
Page 2 of 3
/oradata/users.dbf: Header block file size is bad; trying raw file format...
/oradata/users.dbf: Header block magic number is bad
This can be caused by an invalid copy of the datafile. Example is when copying files between raw devices
and file systems using the OS command dd. Reference Bug 4307836 (closed as not a bug) in HPUX.
Bug 4721022 / Bug 4724358 may also cause it. See Note 4724358.8
Solution
Open the database using a good controlfile copy and resize the datafile.
$ dbfsize /oradata/users.dbf
If a file system corruption caused it, run fsck on the file system which may fix it.
Another option is to restore/recover the affected file from a backup.
bug:4307836note:373595.1bug:4721022bug:4724358bug:4307836bug:4721022bug:4724358
References
Related
Products
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Keywords
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLE... 24/06/2010
Page 3 of 3
Back to top
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLE... 24/06/2010