how to recover corrupted datafile [message #130094] |
Thu, 28 July 2005 02:53 |
harmeet.gambhir
Messages: 30 Registered: June 2005
|
Member |
|
|
hi everybody,
i'm getting the following error on starting oracle database throught the enterprise manager console :
ORA-01122 : database file 2 failed verification check
ORA-01110 : datafile 2 'D:\oracle\oradata\new1\undotbs01.dbf'
ORA-01200 : actual file size of 72733 is smaller than correct size of 72960 blocks.
the database mounts but is not able to open..(i don't have any backup of the databse nor the datafiles)
pl help
thanks in advance..
|
|
|
Re: how to recover corrupted datafile [message #130116 is a reply to message #130094] |
Thu, 28 July 2005 04:32 |
tarundua
Messages: 1080 Registered: June 2005 Location: India
|
Senior Member |
|
|
>> datafile 2 'D:\oracle\oradata\new1\undotbs01.dbf'
As the name of the datafile suggest, it's a datafile attached to undo tablespace and if it is so then only one concern is there --
whether last time ur database was shutdown properly or not.
First of all at mount stage check the datafile belongs to undo tablespace or not. Use this query from sqlplus at mount stage --
SQL> select D.name " Filename", T.name " Tablespace name" from
2 V$datafile D, V$tablespace T
3 where D.TS# = T.TS#;
FILE_NAME
------------------------------------------------------------------------------
TABLESPACE_NAME
------------------------------
D:\ORACLE\ORADATA\TANUDB1\SYSTEM01.DBF
SYSTEM
D:\ORACLE\ORADATA\TANUDB1\UNDOTBS01.DBF
UNDOTBS1
D:\ORACLE\ORADATA\TANUDB1\DRSYS01.DBF
DRSYS
( on my machine)
As it shows that UNDOTBS01.DBF belongs to undotbs1 ( undo tablespace ) , if it is so on ur machine then do this :
--Take the specific datafile offline
SQL> alter database datafile 'D:\ORACLE\ORADATA\TANUDB1\UNDOTBS01.DBF' offline drop;
Database altered.
-- Open the database
SQL> alter database open;
Database altered.
-- create a new undo tablespace (like this)
SQL> create undo tablespace undotbs2
2 datafile 'D:\ORACLE\ORADATA\TANUDB1\UNDOTBS02.dbf' size 100M;
Tablespace created.
SQL> alter system set undo_tablespace=undotbs2;
System altered.
and u can use ur system freely, nothing is lost.
A word of caution ---
This scenario is going to work provided
-- That datafile belongs to undo tablespace.
Regards ,
tarun
|
|
|
|
|
|
Re: how to recover corrupted datafile [message #300573 is a reply to message #130116] |
Sat, 16 February 2008 04:03 |
tamilinfo
Messages: 1 Registered: February 2008 Location: Chennai
|
Junior Member |
|
|
hi everybody,
i'm getting the following error on starting oracle database throught the enterprise manager console :
ORA-01122 : database file 2 failed verification check
ORA-01110 : datafile 2 'D:\oracle\oradata\new1\undotbs01.dbf'
ORA-01200 : actual file size of 72733 is smaller than correct size of 72960 blocks.
the database mounts but is not able to open..(i don't have any backup of the databse nor the datafiles)
Last time My database was shutdown not properly
pl help
thanks in advance..
|
|
|
|
|
|
|
Re: how to recover corrupted datafile [message #328481 is a reply to message #130094] |
Fri, 20 June 2008 05:41 |
rohith
Messages: 4 Registered: June 2008 Location: Bangalore
|
Junior Member |
|
|
where alert.log and trace file located.....
// below shows while starting up oracle
[root@linuxorcl root]# su - oracle
[oracle@linuxorcl oracle]$ sqlplus sys/syspwd as sysdba;
SQL*Plus: Release 10.1.0.3.0 - Production on Fri Jun 20 15:58:32 2008
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 778776 bytes
Variable Size 154148328 bytes
Database Buffers 130023424 bytes
Redo Buffers 262144 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
sql>
// please give me step wise description
|
|
|
|
|
|
|
|
Re: how to recover corrupted datafile [message #649773 is a reply to message #130116] |
Wed, 06 April 2016 01:54 |
|
raniji123
Messages: 1 Registered: April 2016 Location: chennai
|
Junior Member |
|
|
Hi,
but when i do follow these below steps, after creating tablespace , i am getting an error "database not open".
My error is " actual fil size of 1530880 is smaller than correct size of 1532160 blocks". (system01.dbf)
Please assist on this as it is very urgent to resolve/
[Updated on: Wed, 06 April 2016 01:55] Report message to a moderator
|
|
|
|
|