zoukankan      html  css  js  c++  java
  • Performing Time-Based or Change-Based Incomplete Recovery

    OCP 053:

    192.What is the purpose of the until change option of the restore command?

    A. It allows you to select the SCN that you want to restore to.

    B. It allows you to select the log sequence number you want to restore to.

    C. It allows you to select the timestamp you want to restore to.

    D. It allows you to manually stop the restore at any time as online redo logs are applied.

    E. None of the above.

    Answer: A

    答案解析:
     

    Performing Time-Based or Change-Based Incomplete Recovery

    This section describes how to specify an SCN or time for the end point of recovery. If your database is affected by seasonal time changes (for example, daylight savings time), then you may experience a problem if a time appears twice in the redo log and you want to recover to the second, or later time. To handle time changes, perform cancel-based or change-based recovery.

    To perform change-based or time-based recovery:

    1. Follows Step 1 through Step 8 in "Performing Closed Database Recovery".

    2. Issue the RECOVER DATABASE UNTIL statement to begin recovery. If recovering to an SCN, then specify as a decimal number without quotation marks. For example, to recover through SCN 10034 issue:

      RECOVER DATABASE UNTIL CHANGE 10034;

      If recovering to a time, then the time is always specified using the following format, delimited by single quotation marks: 'YYYY-MM-DD:HH24:MI:SS'. The following statement recovers the database up to a specified time:

      RECOVER DATABASE UNTIL TIME '2000-12-31:12:47:30'
    3. Apply the necessary redo log files to recover the restored data files. The database automatically terminates the recovery when it reaches the correct time, and returns a message indicating whether recovery is successful.

      Note:

      Unless recovery is automated, the database supplies the name from LOG_ARCHIVE_DEST_1 and asks you to stop or proceed with after each log. If the control file is a backup, then after the archived logs are applied you must supply the names of the online logs.
    4. Follow Steps 4 and 5 in "Performing Cancel-Based Incomplete Recovery".

     
    UNTIL SCN integer Specifies an SCN as an upper, noninclusive limit.

    RMAN selects only files that it can use to restore or recover up to but not including the specified SCN (seeExample 4-38). For example, RESTORE DATABASE UNTIL SCN 1000 chooses only backups that could be used to recover to SCN 1000.

  • 相关阅读:
    pins-模块内的代码及资源隔离方案
    Android Gradle defaultConfig详解及实用技巧
    实用抓包工具:whistle
    Gradle中的闭包
    Android Gradle 依赖配置:implementation & api
    Android Studio Run项目出现Failure [INSTALL_FAILED_TEST_ONLY]
    Android 8.0对隐式广播的进一步限制
    cookie 详解
    一分钟内搭建全web的API接口神器json-server详解
    高性能前端 art-template 模板
  • 原文地址:https://www.cnblogs.com/gispf/p/3778303.html
Copyright © 2011-2022 走看看