If you cannot open database due to some non-critical datafile being corrupt or not found and you do not have the backup either, you can offline the corrupt file and restart the database ....
Starting the database gave the following error:
SQL> SQL> ORACLE instance started.
Total System Global Area 1.4008E+11 bytes
Fixed Size 2166320 bytes
Variable Size 5.3687E+10 bytes
Database Buffers 8.5899E+10 bytes
Redo Buffers 489947136 bytes
Database mounted.
ORA-01122: database file 166 failed verification check
ORA-01110: data file 166: '/test1/sf1000/scratch_ts'
ORA-01210: data file header is media corrupt
Login to the database and offline that particular datafile
-bash-4.1$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue Aug 28 14:38:51 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL> alter database datafile '/test1/sf1000/scratch_ts' offline for drop
2 ;
Database altered.
SQL> alter database open;
Database altered.
Friday, October 12, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment