官方文档地址: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 run
RECOVER
DATABASE
and then open thedatabase with theRESETLOGS
option.
Table 2-27 indicates the restrictions that apply in differentsituations involving the RESTORE
CONTROLFILE
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 | First run SET | First run SET | First run SET |
No catalog, target mounted or open | Error. Must use | Error. Must use | Restores only to | Restores from specified file. If |
Catalog, target started in NOMOUNT state --必须处在 nomount模式下,而且需要进入恢复目录才行。 | Restores to --如果在恢复目录中 DB_NAME不唯一,还要设置DBID。 | Only use with catalog for testing purposes. | Restores only to | Restores from specified file. If |
Catalog, target mounted or open | Error. Must use | Do not use with catalog. | Restores only to | Restores from specified file. If |