OCP-1Z0-053-V12.02-268题

来源:互联网 发布:js中set的用法 编辑:程序博客网 时间:2024/06/06 02:39

268.You are using Recovery Manager (RMAN) for backup and recovery operations with a recovery

catalog. You have been taken database backups every evening. On November 15, 2007, at 11:30 AM,

you were informed that the USER_DATA tablespace was accidentally dropped.

On investigation, you found that the tablespace existed until 11:00 AM, and important transactions were

done after that.

So you decided to perform incomplete recovery until 11:00 AM. All the archive logs needed to perform

recovery are intact. In NOMOUNT state you restored the control file that has information about the

USER_DATA tablespace from the latest backup. Then you mounted the database.

Identify the next set of commands that are required to accomplish the task?

A.RMAN> run

{

SET UNTIL TIME 'Nov 15 2007 11:00:00';

RESTORE DATABASE;

RECOVER DATABASE;

}

B.RMAN> run

{

SET UNTIL TIME 'Nov 15 2007 11:00:00';

RESTORE DATABASE;

RECOVER DATABASE USING BACKUP CONTROLFILE;

}

C.RMAN> run

{

RESTORE DATABASE;

RECOVER DATABASE UNTIL TIME 'Nov 15 2007 11:00:00';

}

D.RMAN> run

{

RESTORE TABLESPACE user_data;

RECOVER TABLESPACE user_data UNTIL TIME 'Nov 15 2007 11:00:00';

}

Answer: A

答案解析:

答案解析:

参考:执行时间点恢复:http://blog.csdn.net/rlhua/article/details/12346829

可以通过以下步骤执行服务器管理的时间点恢复。数据库必须处于ARCHIVELOG模式。
1.确定还原目标。这可以是日期和时间、SCN、还原点或日志序列号。例如,如果你知道某些错误事务处理是在昨天下午3:00 提交的,则可以选择昨天下午2:59 作为目标还原点时间。
2.设置国家语言支持(NLS) 操作系统环境变量,确保为RMAN 提供的时间常量的格式是正确的。以下是一些示例设置:
$ export NLS_LANG = american_america.us7ascii
$ export NLS_DATE_FORMAT = "yyyy-mm-dd:hh24:mi:ss"
3.装载数据库。如果数据库已打开,则必须先将其关闭,如本例所示:
RMAN> shutdown immediate
RMAN> startup mount
4.创建一个RUN块并运行该块。RECOVER和RESTORE命令应位于同一个RUN块中,这样UNTIL设置可以同时应用于两者。例如,如果选择恢复到特定SCN,则RESTORE命令需要知道该值,以便可以从足够早的备份(即该SCN 之前的备份)还原文件。
以下是RUN块的一个示例:
RUN
{
SET UNTIL TIME '2007-08-14:21:59:00';
RESTORE DATABASE;
RECOVER DATABASE;
}
5.打开数据库进行读/写操作时,会立即完成刚刚执行的还原。因此,先先在READ ONLY模式下打开数据库并查看某些数据,检查恢复操作是否符合预期结果。
RMAN> SQL 'ALTER DATABASE OPEN READ ONLY';
6.如果对恢复结果感到满意,则使用RESETLOGS选项打开数据库,如下所示:
RMAN> ALTER DATABASE OPEN RESETLOGS;
原创粉丝点击