Oracle Recover Database Without Control Files and Redo Log
Oracle Recover Database Without Control Files and Redo Log
Again there has been some gap in my writing of articles. Today I will share one of my experience faced recently. We came
to know that one of the databases crashed. After some investigation we found that we only had data files and initialization
file intact. All other files i.e. control files and redo log files were lost. This was a development database and the control files
and log files were not multiplexed (First mistake). With only data files, how would you recover a database with minimal
loss? We even did not have consistent backup for the database (Second mistake). After doing some research, we finally
decided to give a go to recover the database with available data files and initialization file.
The steps followed to recover the database:
Startup the database with the initialization file. As we do not have the control files, start the database in no mount state.
209715200
1248140
75498612
130023424
2945024
bytes
bytes
bytes
bytes
bytes
TYPE
VALUE
----------integer
string
TL,
K:\ORCL10G\CONTROL\CONTROL
K:\ORCL10G\CONTROL\CON
02.CTL,
TROL03.CTL
Having the details of all the data files at hand recreate the control files.
GROUP 3 'K:\ORCL10G\LOG\REDO03.LOG'
DATAFILE
'K:\ORCL10G\DATA\SYSTEM01.DBF',
'K:\ORCL10G\DATA\UNDOTBS01.DBF',
'K:\ORCL10G\DATA\SYSAUX01.DBF',
'K:\ORCL10G\DATA\USERS01.DBF',
'K:\ORCL10G\DATA\EXAMPLE01.DBF',
'K:\ORCL10G\DATA\UNDOTBS02.DBF'
CHARACTER SET WE8MSWIN1252;
SIZE 50M