You are on page 1of 2

Oracle Database Recovery From Hot Backup.

1- One of The Mirrored Copies of The Control File is Lost

In this case, one of the other copies of the control file should be used to bring the database up.

• If the instance is still up, do a shutdown abort.


• Use a good copy of the control file to copy onto the location of the lost one. If you are having hardware
problems with the current location of the lost control file, such as disk or controller failures, choose
another location for copying the file and then edit the init.ora file for this instance. Edit the
CONTROL_FILES parameter to reflect the current location of the control files after you have done the
copy.
• Start up the database

2- All Current Copies of The Control File Are Lost

• An important factor in this scenario is the existence of a backup trace of the control file generated with
the ALTER DATABASE BACKUP CONTROLFILE TO TRACE command:
• Copy all Datafiles from Hot Backup to its original location.
• Start-up database in nomount state by using SVRMGRL.
Startup Nomount;

• If you do have such a trace file and it reflects the current structure of the database in terms of datafiles
and log files, you can run it as SQL script. But make sure that you have redo log files on its original
location otherwise when you run this script it will give you error, saying that it can’t open Login1.log
(name of the first log file) file.

Run the above script, which create the new control file and it automatically mount the database.

• For Point in time recovery you have to need all Archive Log files in LOG_ARCHIVE-DEST.

• Set Autorecovery on;

• The following command will apply all Archive Log file and bring database up to date.
Recover Database;

• Alter Database Open;

Note: Don’t open the database, unless the recovery is completed.

3- Recover Lost/Damage Table-space File

• First shutdown the database and copy the table-space datafile from hot backup to its location.
• Start-up database in mount state by issuing following command
Startup Database Mount;
• Set Autorecovery on;
• Recover Database;
• Alter Database Open;

Imran Haider
ESB National Grid/EirGrid
Ireland

You might also like