I have an Oracle database 10g (10.2.0.1.0) which has crashed due to the Windows Server 2003 box went bananas. Anyway I've since resintalled Oracle Database on a fresh box and I also managed to recover all database files except control files and redo logs. I set up a sample database in which I deliberately deleted the control files and redo logs for test purposes and issued a create controlfile script as follows:
CREATE CONTROLFILE DATABASE "Sample" RESETLOGS
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 32
MAXINSTANCES 8
MAXLOGHISTORY 300
DATAFILE
'C:\oracle\product\10.2.0\oradata\SAMPLE\sysaux01.dbf' size 256000K,
'C:\oracle\product\10.2.0\oradata\SAMPLE\system01.dbf' size 491520K,
'C:\oracle\product\10.2.0\oradata\SAMPLE\undotbs01.dbf' size 30720K,
'C:\oracle\product\10.2.0\oradata\SAMPLE\example01.dbf' size 102400K,
'C:\oracle\product\10.2.0\oradata\SAMPLE\users01.dbf' size 5120K,
;
Now here is the problem: ORA-01163: SIZE Clause indicates 12800 (blocks), but should match header 640. This is reported for the users01.dbf file. The strange part 640 blocks = 640*8192 bytes = 5242880 = 5120K which is exactly what I have used in my script.
Any ideas why this is happening?
Thanks a lot
CREATE CONTROLFILE DATABASE "Sample" RESETLOGS
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 32
MAXINSTANCES 8
MAXLOGHISTORY 300
DATAFILE
'C:\oracle\product\10.2.0\oradata\SAMPLE\sysaux01.dbf' size 256000K,
'C:\oracle\product\10.2.0\oradata\SAMPLE\system01.dbf' size 491520K,
'C:\oracle\product\10.2.0\oradata\SAMPLE\undotbs01.dbf' size 30720K,
'C:\oracle\product\10.2.0\oradata\SAMPLE\example01.dbf' size 102400K,
'C:\oracle\product\10.2.0\oradata\SAMPLE\users01.dbf' size 5120K,
;
Now here is the problem: ORA-01163: SIZE Clause indicates 12800 (blocks), but should match header 640. This is reported for the users01.dbf file. The strange part 640 blocks = 640*8192 bytes = 5242880 = 5120K which is exactly what I have used in my script.
Any ideas why this is happening?
Thanks a lot