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

152.You are performing incomplete recovery using RMAN. You execute the following RUN block:

RUN

{

SET UNTIL SCN 1107600;

RESTORE DATABASE;

RECOVER DATABASE;

}

Which statement is true about the result?

A.RMAN restores all datafiles from the most recent backup available since the failure and applies the redo

logs necessary to recover the database to SCN 1107600

B.RMAN restores all datafiles needed to restore the database through SCN 1107599 and applies the redo

logs necessary to recover the database through SCN 1107599.

C.RMAN restores all datafiles and control files from the most recent backup

D.The RUN block fails because you did not specify an UNTIL clause in your RECOVER DATABASE

command

Answer: B

答案解析:

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

通过以上,还原恢复到指定的SCN。

执行时间点恢复
可以通过以下步骤执行服务器管理的时间点恢复。数据库必须处于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;
备份恢复难得的经典力作 Getting Started with RMAN in Oracle Database 11g 1 Oracle Database 11g Backup and Recovery Architecture Tour . . . . . . . . . . . . . . 3 2 Introduction to the RMAN Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 PART II Setup Principles and Practices 3 RMAN Setup and Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 4 Media Management Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 5 Oracle Secure Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 6 Backing Up to Amazon Web Services Using the Oracle Secure Backup Cloud Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 7 Enhancing RMAN with VERITAS NetBackupTM for Oracle . . . . . . . . . . . . . . . . . . 153 8 Configuring HP Data Protector for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 9 RMAN and Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 10 Using the Recovery Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 11 RMAN Backups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 12 RMAN Restore and Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 PART III Using RMAN Effectively 13 Using Oracle Enterprise Manager for Backup and Recovery . . . . . . . . . . . . . . . . 307 14 RMAN Advanced Recovery Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345 15 Surviving User Errors: Flashback Technologies . . . . . . . . . . . . . . . . . . . . . . . . . . . 377 16 Maintaining RMAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399 17 Monitoring and Reporting on RMAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423 18 Performance Tuning RMAN Backup and Recovery Operations . . . . . . . . . . . . . . 445 PART IV RMAN in the Oracle Ecosystem 19 Duplication: Cloning the Target Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465 20 RMAN and Data Guard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491 21 RMAN and Real Application Clusters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501 22 RMAN in Sync and Split Technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517 23 RMAN in the Workplace: Case Studies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531 PART V Appendixes A RMAN Syntax Reference Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 559 B RMAN Scripting Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621 C Setting Up an RMAN Test Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值