zoukankan      html  css  js  c++  java
  • OCP-1Z0-053-V12.02-3题

    3.Your database is in ARCHIVELOG mode. You have two online redo log groups, each of which contains

    one redo member. When you attempt to start the database, you receive the following errors:

    ORA-00313: open failed for members of log group 1 of thread 1

    ORA-00312: online log 1 thread 1: 'D:REDO01.LOG'

    You discover that the online redo log file of the current redo group is corrupted.

    Which statement should you use to resolve this issue?

    A. ALTER DATABASE DROP LOGFILE GROUP 1;

    B. ALTER DATABASE CLEAR LOGFILE GROUP 1;

    C. ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 1;

    D. ALTER DATABASE DROP LOGFILE MEMBER 'D:REDO01.LOG';

    Answer: C


    答案解析:

    参考:http://docs.oracle.com/cd/E11882_01/backup.112/e10642/osadvsce.htm#BRADV90052

    Table 30-4 Recovering After the Loss of an Online Redo Log Group

    If the Group Is... Then... And You Should...

    Inactive

    It is not needed for crash recovery

    Clear the archived or unarchived group.

    Active

    It is needed for crash recovery

    Attempt to issue a checkpoint and clear the log; if impossible, then you must either use Flashback Database or restore a backup and perform incomplete recovery up to the most recent available redo log.

    Current

    It is the redo log that the database is currently writing to

    Attempt to clear the log; if impossible, then you must either use Flashback Database or restore a backup and perform incomplete recovery up to the most recent available redo log.



    [oracle@rtest ~]$ oerr ora 313

    00313, 00000, "open failed for members of log group %s of thread %s"

    // *Cause:  The online log cannot be opened. May not be able to find file.

    // *Action: See accompanying errors and make log available.

    [oracle@rtest ~]$ oerr ora 312

    00312, 00000, "online log %s thread %s: '%s'"

    // *Cause:  This message reports the filename for details of another message.

    // *Action: Other messages will accompany this message. See the

    //          associated messages for the appropriate action to take.


    你的数据库在归档记录模式。你有两个在线重做日志组,其中每个都包含一个重做成员。当您尝试启动数据

    库时,您会收到以下错误:

    ORA-00313:线程1日志组1成员打开失败 

    ORA-00312:联机日志1线程1:'D: REDO01.LOG

    你发现当前的重做组联机重做日志文件被损坏。你应该使用哪种说法来解决这个问题?


    Clearing Inactive, Unarchived Redo

    Clearing a not-yet-archived redo log allows it to be reused without archiving it. This action makes backups unusable if they were started before the last change in the log, unless the file was taken offline before the first change in the log. Hence, if you need the cleared log file for recovery of a backup, then you cannot recover that backup. Clearing a not-yet-archived-redo-log, prevents complete recovery from backups due to the missing log.

    To clear an inactive, online redo log group that has not been archived:

    1. If the database is shut down, then start a new instance and mount the database:

      SQL> STARTUP MOUNT
    2. Clear the log using the UNARCHIVED keyword.

      For example, to clear log group 2, issue the following SQL statement:

      SQL> ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 2;

  • 相关阅读:
    有向图的十字链表存储表示 以及相关操作(包括增加弧、删除弧、删除顶点等)
    数据结构学习笔记—图---图的连通性、顶点间的路径
    解决Vue父路由进入子路由选中样式消失的问题
    解决vue页面刷新,数据丢失
    解决PHP接收不到axios的POST的传参方式
    rem理解及应用【笔记】
    JS基础(学习笔记)
    css中的小技巧
    css中文单行、多行超出省略号和英文换行(学习笔记)
    关于JS(原生js+jq)中获取、设置或者删除元素属性和获取元素值
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13316607.html
Copyright © 2011-2022 走看看