当前位置: 代码迷 >> Oracle认证考试 >> 请问一个OCP真题
  详细解决方案

请问一个OCP真题

热度:317   发布时间:2016-04-24 03:51:14.0
请教一个OCP真题.
请教一个OCP真题

3.5.67 In your production database, you:
-Are using Recovery Manager (RMAN) with a recovery catalog to perform the
backup operation at regular intervals Set the control  le autobackup to "on"
-Are maintaining image copies of the database  le.
You have lost the server parameter tile (SPFILE) and the control  file. Which option
must you consider before restoring the SPFILE and the control  le by using the
control  le autobackup?
(A) setting DBID for the database
(B) using the RMAN SWITCH command
(C) using the RMAN SET NEWNAME command
(D) starting up the database Instance In the NOMOUNT state

今天考试的时候我选的D. 好像错了. (考试结果指出我recovery control file的题有错,这是唯一一道我没有把握的.)

Set DBID应该是不用的吧, 记得有一题解说中曾经说过用了Catalog就不用设DBID的.这个我不是很确定.

SWITCH感觉也不对,SWITCH相当于SQL中的alter datafile的filename,现在control file 都丢了,还switch个屁啊.
Set Newname,是让RMAN把文件恢复在新的位置用的.不知道这儿要这个做什么.题目没讲恢复在新位置啊.

实际中,要是遇到这样的情况,我肯定把SPFILE和CONTROL FILE恢复在原位,数据文件和Online Log如果都在recover database using controlfile backup.如果也要恢复就做一个until cancel的incomplete recovery.不知道还有什么更好的方法.请大师指点.

------解决方案--------------------
B吧,control file 丢了,但是有catalog 
  相关解决方案