Manually Recreate The Control File or Recover Database Without Control Files and Redo Log Files
Manually Recreate The Control File or Recover Database Without Control Files and Redo Log Files
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.
Startup the database with the initialization file. As we do not have the control
files, start
the database in no mount state.
Once the control file is created, try mounting the database. If the database mounts
well
then everything seems to be fine.
Database altered.
The database mounted successfully. Open the database with resetlogs option.
Database altered.
Here we go. The database opened successfully. The only point to consider is that of
the data loss. The data in the redo log files, as it existed before the loss, will
be lost. Hence the data loss here could be minimum.
Conclusion :