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

    285.View the Exhibit to examine the error while executing the REPAIR FAILURE command in an RMAN

    session.

    What is the reason for this error?

    A. Another repair session is running concurrently.

    B. The failure ID has not been mentioned in the command for data file 5.

    C. There are new failures recorded in the Automatic Diagnostic Repository (ADR).

    D. The ADVISE FAILURE command has not been issued before the REPAIR FAILURE command.

    Answer: A

    答案解析:

    实验一把:

    sys@TEST1107> startup force                                                                      

    ORACLE instance started.


    Total System Global Area 1269366784 bytes

    Fixed Size                  2227984 bytes

    Variable Size             872415472 bytes

    Database Buffers          385875968 bytes

    Redo Buffers                8847360 bytes

    Database mounted.

    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file

    ORA-01110: data file 6: '/u01/app/oracle/oradata/test1107/test01.dbf'


    第一个rman窗口

    RMAN> list failure;


    using target database control file instead of recovery catalog

    List of Database Failures

    =========================


    Failure ID Priority Status    Time Detected Summary

    ---------- -------- --------- ------------- -------

    662        HIGH     OPEN      07-NOV-13     One or more non-system datafiles are missing


    RMAN> advise failure;


    List of Database Failures

    =========================


    Failure ID Priority Status    Time Detected Summary

    ---------- -------- --------- ------------- -------

    662        HIGH     OPEN      07-NOV-13     One or more non-system datafiles are missing


    analyzing automatic repair options; this may take some time

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID=3 device type=DISK

    allocated channel: ORA_DISK_2

    channel ORA_DISK_2: SID=33 device type=DISK

    allocated channel: ORA_DISK_3

    channel ORA_DISK_3: SID=65 device type=DISK

    analyzing automatic repair options complete


    Mandatory Manual Actions

    ========================

    no manual actions available


    Optional Manual Actions

    =======================

    1. If file /u01/app/oracle/oradata/test1107/test01.dbf was unintentionally renamed or moved, restore it


    Automated Repair Options

    ========================

    Option Repair Description

    ------ ------------------

    1      Restore and recover datafile 6  

      Strategy: The repair includes complete media recovery with no data loss

      Repair script: /u01/app/oracle/diag/rdbms/test1107/test1107/hm/reco_1906746863.hm


    RMAN>  repair failure; 


    Strategy: The repair includes complete media recovery with no data loss

    Repair script: /u01/app/oracle/diag/rdbms/test1107/test1107/hm/reco_1906746863.hm


    contents of repair script:

       # restore and recover datafile

       restore datafile 6;

       recover datafile 6;

       sql 'alter database datafile 6 online';


    Do you really want to execute the above repair (enter YES or NO)? y ---同时执行第二个rman窗口

    executing repair script


    Starting restore at 07-NOV-13

    using channel ORA_DISK_1

    using channel ORA_DISK_2

    using channel ORA_DISK_3


    channel ORA_DISK_1: starting datafile backup set restore

    channel ORA_DISK_1: specifying datafile(s) to restore from backup set

    channel ORA_DISK_1: restoring datafile 00006 to /u01/app/oracle/oradata/test1107/test01.dbf

    channel ORA_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/TEST1107/backupset/2013_11_07/o1_mf_nnndf_TAG20131107T210734_97rkv8s7_.bkp

    channel ORA_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/TEST1107/backupset/2013_11_07/o1_mf_nnndf_TAG20131107T210734_97rkv8s7_.bkp tag=TAG20131107T210734

    channel ORA_DISK_1: restored backup piece 1

    channel ORA_DISK_1: restore complete, elapsed time: 00:00:07

    Finished restore at 07-NOV-13


    Starting recover at 07-NOV-13

    using channel ORA_DISK_1

    using channel ORA_DISK_2

    using channel ORA_DISK_3


    starting media recovery

    media recovery complete, elapsed time: 00:00:02


    Finished recover at 07-NOV-13


    sql statement: alter database datafile 6 online

    repair failure complete


    Do you want to open the database (enter YES or NO)? y

    database opened



    同时在第一个rman的Do you really want to execute the above repair (enter YES or NO)? y后在第二个窗口进行repair failure

    RMAN> repair failure;


    Strategy: The repair includes complete media recovery with no data loss

    Repair script: /u01/app/oracle/diag/rdbms/test1107/test1107/hm/reco_1864566805.hm


    contents of repair script:

       # restore and recover datafile

       restore datafile 6;

       recover datafile 6;

       sql 'alter database datafile 6 online';


    Do you really want to execute the above repair (enter YES or NO)? y

    executing repair script


    Starting restore at 07-NOV-13

    using channel ORA_DISK_1

    using channel ORA_DISK_2

    using channel ORA_DISK_3


    skipping datafile 6; already restored to file /u01/app/oracle/oradata/test1107/test01.dbf

    restore not done; all files read only, offline, or already restored

    Finished restore at 07-NOV-13


    Starting recover at 07-NOV-13

    using channel ORA_DISK_1

    using channel ORA_DISK_2

    using channel ORA_DISK_3


    starting media recovery

    media recovery failed

    RMAN-00571: ===========================================================

    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

    RMAN-00571: ===========================================================

    RMAN-03002: failure of repair command at 11/07/2013 21:29:42

    RMAN-03015: error occurred in stored script Repair Script

    ORA-00283: recovery session canceled due to errors

    RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed

     datafile 6

    ORA-00283: recovery session canceled due to errors

    ORA-01124: cannot recover data file 6 - file is in use or recovery

    ORA-01110: data file 6: '/u01/app/oracle/oradata/test1107/test01.dbf'



  • 相关阅读:
    RabbitMQ的应用场景以及基本原理介绍
    spring 读取配置文件,将值注入到静态字段
    单元测试不依赖于容器,任何依赖容器的测试在单元测试中都行不通(切记,切记)
    在 KVM 上安装 Win7 虚拟机
    识别 Linux上的设备(磁盘)类型
    云与备份之(1):VMware虚机备份和恢复
    理解 OpenStack + Ceph (9): Ceph 的size/min_size/choose/chooseleaf/scrubbing/repair 等概念
    OpenStack 企业私有云的若干需求(10):OpenStack 的前景和钱景
    OpenStack 企业私有云的若干需求(9): 云管理平台 CMP
    理解 OpenStack + Ceph (8): 基本的 Ceph 性能测试工具和方法
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13316481.html
Copyright © 2011-2022 走看看