关于RESTORE CONTROLFILE命令使用限制

官方文档地址:http://docs.oracle.com/cd/B19306_01/backup.102/b14194/rcmsynta051.htm#BGBJJGCB

 

Restrictions and Usage Notes for RESTORECONTROLFILE

 

  • After you restore a backup control file, you must runRECOVER DATABASE and then open thedatabase with the RESETLOGS option.

Table 2-27 indicates the restrictions that apply in differentsituations involving the RESTORECONTROLFILE command.

Table 2-27 RESTORE CONTROLFILE Scenarios

 RESTORE CONTROLFILE;RESTORE CONTROLFILE FROMAUTOBACKUP;RESTORE CONTROLFILE ... TO'filename';RESTORE CONTROLFILE ... FROM'media_handle' or TAG 'user_tag';

No catalog, target started in NOMOUNT state

Error. Must specify FROMAUTOBACKUP.

First run SET DBID. Restores to CONTROL_FILESlocations.

First run SET DBID. Must specify FROMAUTOBACKUP. Restores only to filename.

First run SET DBID. Restores from specified file (cannotrestore from TAG). If TO'filename' not used, restores toall CONTROL_FILES locations.

No catalog, target mounted or open

Error. Must use TO 'filename', wherefilenameis not in CONTROL_FILES list.

Error. Must use TO 'filename', wherefilenameis not in CONTROL_FILES list.

Restores only to filename, wherefilenameis not in CONTROL_FILES list.

Restores from specified file. If TO'filename' not used, restores toall CONTROL_FILES locations.

Catalog, target started in NOMOUNT state

--必须处在

nomount模式下,而且需要进入恢复目录才行。

Restores to CONTROL_FILES locations.Run SET DBID only ifDB_NAME not unique in catalog.

--如果在恢复目录中

DB_NAME不唯一,还要设置DBID。

Only use with catalog for testing purposes.

Restores only to filename, wherefilenameis not in CONTROL_FILES list.

Restores from specified file. If TO'filename' not used, restores toall CONTROL_FILES locations.

Catalog, target mounted or open

Error. Must use TO 'filename', wherefilenameis not in CONTROL_FILES list.

Do not use with catalog.

Restores only to filename, wherefilenameis not in CONTROL_FILES list.

Restores from specified file. If TO'filename' not used, restores toall CONTROL_FILES locations.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值