|
You have the option to either recover or restore Oracle tablespaces or datafiles. If you recover
the datafiles, Backup Professional will ensure that the tablespace or datafile is offline, restore
the data to its original place, recover the data and place the datafiles online again. This cannot
be done with the System tablespace since it has to be online when you restore it.
The first step is to retrieve the
files that you want to restore from the Storage Platform.
- Click on the Restore
tab and select the dump folder from the specific backup
date.
- From the File menu,
click Restore.
- Select a restore location and restore the files. Do not recreate
the directory structure.
There are a few different scenarios when recovering an Oracle database, tablespace or datafile.
- After you have selected the recovery folder (the folder to
where you restored the data) click on Retrieve
Tablespaces. A list of the available tablespaces
will be displayed. Restore
control files must be enabled when you do a full restore.
- When you
click on Restore,
the Backup Client will remind you to make sure that
the database is offline. If you are only restoring a
few datafiles, make sure that they are offline before
continuing.
- Change the necessary settings and click
on Restore.
- The Backup Client will restore the selected files to their original location but they
will not be recovered.
After the client has restored
the files, you have to manually recover the files and
start the database.
The following examples provide some
help if you prefer to restore the data using SQL Plus.
Recovering a Closed Database
Media or hardware failure
- Determine which datafile or datafiles need to be recovered.
- Shutdown immediately
- Open the Backup Client and restore the dump directory from
the Storage Platform. Open the Oracle
Restore tab and select the files that you want
to restore. Click on Restore.
- Open SQL Plus with the following command: sqlplus
/nolog
- Connect / as sysdba
- Mount the database with the startup mount; command
- Recover datafile 'c:\data\datafile1.dbf'; or recover tablespace
tablespacename; or recover database;
- Open database
Recovering an Opened Database
Media or hardware failure (Not the System Tablespace)
- Determine the datafile or datafiles that need to be recovered.
- Open sqlplus /nolog and
connect /as sysdba
- Take the datafile offline alter database datafile 'filename' offline;
- Open the Backup Client and restore the dump directory. Select the datafile that you want to restore.
- Recover datafile 'c:\data\datafile1.dbf'; or recover tablespace
tablespacename;
- Bring the tablespace or datafile online (Step 16 in the next section – Recovery/Full Recovery)
- Recover datafile 'c:\data\datafile1.dbf'; or recover tablespace tablespacename;
- Recovering a Database
- Media or hardware failure (System Tablespace)
- Unlike other tablespaces, the SYSTEM tablespace must be available
in order to open the database. Therefore, if any members
of the system tablespace are damaged, they must be restored
now. Before doing this, make sure that the database is
not open. It may be mounted. To make sure, run the following
command on the mounted, closed database.
- C:\Oracle\Ora92\bin>sqlplus / nolog
- connect / as sysdba
- select status from v$instance;
The following will be displayed:
STATUS
MOUNTED 1 row selected.
- If
the database is not open, restore the damaged files from
the most recent backup available restore dump directory
and select the datafiles. Once all damaged files in the
system tablespace are restored, run the following command
on the mounted, closed database:
- recover tablespace system;
- alter database open;
- quit
Full Media Recovery - Recovery to the same location
- Open SQL Plus and stop the database with the shutdown abort; command.
- Open the Backup Client and Restore the entire dumpfolder from the Storage Platform.
- Open the Oracle Restore tab and restore all files including the control files.
- Mount the database in SQL Plus: startup mouna
- Recover database using backup controlfile; Accept the default path that is suggested
- When restoring the log files. If the last log file cannot be located run the recover database using backup controlfile;
command again and supply the path to the redo folder that
you restored as well as the filename of the redo log file within that folder.
- Alter database open resetlogs;
- The Oracle database will be opened and ready.
| |
|
| |
|
 |
Back |
| |
|
|