zoukankan      html  css  js  c++  java
  • 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;
  • 相关阅读:
    从架构演进的角度聊聊Spring Cloud都做了些什么?
    Spring Cloud在国内中小型公司能用起来吗?
    中小型互联网公司微服务实践-经验和教训
    springcloud(十二):使用Spring Cloud Sleuth和Zipkin进行分布式链路跟踪
    springcloud(十一):服务网关Zuul高级篇
    springcloud(十):服务网关zuul初级篇
    springcloud(九):配置中心和消息总线(配置中心终结版)
    [讨论]C++编译/编辑器对OIer的必要功能
    [题解]How Many Tables HDU
    [干货]文件输入输出实例&Ptask的编写
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13317071.html
Copyright © 2011-2022 走看看