Database Restore and Recovery Procedure: Outline

The basic procedure for performing restore and recovery with RMAN is as follows:
1. Determine which database files must be restored from backup, and which backups
(which specific tapes, or specific backup sets or image copies on disk) to use for
the restore operation.
The files to be restored may include the control file, SPFILE,
archived redo log files, and datafiles.


2. Place the database in the state appropriate for the type of recovery that you are
performing.
For example, if you are recovering a single tablespace or datafile, then
you can keep the database open and take the tablespace or datafile offline. If you
are restoring all datafiles, then you must shut down the database and then mount
it before you can perform the restore.


3. Restore lost database files from backup with the RESTORE command. You may
restore files to their original locations, or you may have to restore them to other
locations if, for instace, a disk has failed. You may also have to update the SPFILE
if you have changed the control file locations, or the control file if you have
changed the locations of datafiles or redo logs.


4. Perform media recovery on restored datafiles, if any, with the RECOVER command.


5. Perform any final steps required to make the database available for users again .
For example, re-open the database if necessary, as happens when restoring lost
control files, or bring offline tablespaces online if restoring and recovering
individual tablespaces.



This outline is intended to encompass a wide range of different scenarios. Depending
upon your situation, some of the steps described may not apply. (For example, you do
not need to perform media recovery if the only file restored from backup is the
SPFILE.) You will have to devise your final recovery plan based on your situation.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值