SQL> alter database recover managed standby database using current logfile;
alter database recover managed standby database using current logfile
*
第 1 行出现错误:
ORA-01153: ???????????SQL> SELECT MESSAGE FROM V$DATAGUARD_STATUS;MESSAGE
------------------------------------------------------------------------------ARC0: Archival started
ARC1: Archival started
ARC1: Becoming the 'no FAL' ARCH
ARC2: Archival started
ARC3: Archival started
ARC0: Becoming the heartbeat ARCH
Attempt to start background Managed Standby Recovery process
MRP0: Background Managed Standby Recovery process started
Managed Standby Recovery not using Real Time Apply
Clearing online redo logfile 1 D:\ORACLE\ORADATA\ORCL\REDO01.LOG
Clearing online redo logfile 1 completeMESSAGE
------------------------------------------------------------------------------Clearing online redo logfile 2 D:\ORACLE\ORADATA\ORCL\REDO02.LOG
Clearing online redo logfile 2 complete
Clearing online redo logfile 3 D:\ORACLE\ORADATA\ORCL\REDO03.LOG
Clearing online redo logfile 3 complete
Media Recovery Waiting for thread 1 sequence 5
RFS[1]: Assigned to RFS process 4412
RFS[1]: Identified database type as 'physical standby': Client is ARCH pid 384
FAL[client]: Failed to request gap sequence
 GAP - SCN range: 0x0000.000f3ec9 - 0x0000.000f3ec9
 DBID 1262567096 branch 734786366
FAL[client]: All defined FAL servers have been attempted.已选择22行。SQL>
SQL>
SQL> SELECT RECOVERY_MODE FROM V$ARCHIVE_DEST_STATUS;RECOVERY_MODE
-----------------------
MANAGED
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLERECOVERY_MODE
-----------------------
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLERECOVERY_MODE
-----------------------
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE已选择32行。SQL> select process,status from v$managed_standby;PROCESS   STATUS
--------- ------------
ARCH      CONNECTED
ARCH      CONNECTED
ARCH      CONNECTED
ARCH      CLOSING
MRP0      WAIT_FOR_LOG
RFS       IDLE
RFS       IDLE已选择7行。SQL> recover managed standby database cancel;
完成介质恢复。
SQL> recover automatic standby database ;
ORA-00279: ?? 999113 (?  ??) ???? 1 ????
ORA-00289: ??: D:\ORACLE\RMANBK\1_5_734786366.DBF
ORA-00280: ?? 999113 (???? 1) ??? #5 ?
ORA-00278: ??????????? 'D:\ORACLE\RMANBK\1_5_734786366.DBF'
ORA-00308: cannot open archived log 'D:\ORACLE\RMANBK\1_5_734786366.DBF'
ORA-27041: unable to open file
OSD-04002: ????????????
O/S-Error: (OS 2) ??????????????????????
指定日志: {<RET>=suggested | filename | AUTO | CANCEL}ORA-00308: cannot open archived log 'D:\ORACLE\RMANBK\1_5_734786366.DBF'
ORA-27041: unable to open file
OSD-04002: ????????????
O/S-Error: (OS 2) ??????????????????????
ORA-10879: error signaled in parallel recovery slave
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF'
SQL> SELECT MESSAGE FROM V$DATAGUARD_STATUS;MESSAGE
------------------------------------------------------------------------------ARC0: Archival started
ARC1: Archival started
ARC1: Becoming the 'no FAL' ARCH
ARC2: Archival started
ARC3: Archival started
ARC0: Becoming the heartbeat ARCH
Attempt to start background Managed Standby Recovery process
MRP0: Background Managed Standby Recovery process started
Managed Standby Recovery not using Real Time Apply
Clearing online redo logfile 1 D:\ORACLE\ORADATA\ORCL\REDO01.LOG
Clearing online redo logfile 1 completeMESSAGE
------------------------------------------------------------------------------Clearing online redo logfile 2 D:\ORACLE\ORADATA\ORCL\REDO02.LOG
Clearing online redo logfile 2 complete
Clearing online redo logfile 3 D:\ORACLE\ORADATA\ORCL\REDO03.LOG
Clearing online redo logfile 3 complete
Media Recovery Waiting for thread 1 sequence 5
RFS[1]: Assigned to RFS process 4412
RFS[1]: Identified database type as 'physical standby': Client is ARCH pid 384
FAL[client]: Failed to request gap sequence
 GAP - SCN range: 0x0000.000f3ec9 - 0x0000.000f3ec9
 DBID 1262567096 branch 734786366
FAL[client]: All defined FAL servers have been attempted.MESSAGE
------------------------------------------------------------------------------RFS[2]: Assigned to RFS process 4564
RFS[2]: Identified database type as 'physical standby': Client is ARCH pid 276
ARC3: Beginning to archive thread 1 sequence 45 (1311357-1316594)
ARC3: Completed archiving thread 1 sequence 45 (0-0)
MRP0: Background Media Recovery cancelled with status 16037
MRP0: Background Media Recovery process shutdown
Managed Standby Recovery Canceled
Managed Standby Recovery not using Real Time Apply已选择30行。SQL>请问这是什么原因引起的,谢谢。

解决方案 »

  1.   

    01153, 00000, "an incompatible media recovery is active"
    // *Cause: Attempted to start an incompatible media recovery or open resetlogs
    //         during media recovery or RMAN backup . Media recovery sessions
    //         are incompatible if they attempt to recover the same data file.
    //         Incomplete media recovery or open resetlogs is incompatible with
    //         any media recovery. Backup or restore by RMAN is incompatible
    //         with open resetlogs
    // *Action: Complete or cancel the other media recovery session or RMAN backup
      

  2.   

    不太懂,帮你google了下
    http://hi.baidu.com/dbaeyes/blog/item/740c3bfb3e0d5361034f568e.html
      

  3.   


    启动 restore 于 12-11月-10
    使用目标数据库控制文件替代恢复目录
    分配的通道: ORA_DISK_1
    通道 ORA_DISK_1: SID=143 设备类型=DISKRMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: restore 命令 (在 11/12/2010 14:58:05 上) 失败
    RMAN-06026: 有些目标没有找到 - 终止还原
    RMAN-06023: 没有找到数据文件4的副本来还原
    RMAN-06023: 没有找到数据文件3的副本来还原
    RMAN-06023: 没有找到数据文件2的副本来还原
    RMAN-06023: 没有找到数据文件1的副本来还原
      

  4.   

    SQL> SELECT MESSAGE FROM V$DATAGUARD_STATUS;MESSAGE
    --------------------------------------------------------------------------------ARC0: Archival started
    ARC1: Archival started
    ARC1: Becoming the 'no FAL' ARCH
    ARC2: Archival started
    ARC2: Becoming the heartbeat ARCH
    ARC3: Archival started
    RFS[1]: Assigned to RFS process 6596
    RFS[1]: Identified database type as 'physical standby': Client is ARCH pid 4752
    Attempt to start background Managed Standby Recovery process
    MRP0: Background Managed Standby Recovery process started
    Managed Standby Recovery not using Real Time ApplyMESSAGE
    --------------------------------------------------------------------------------Media Recovery Waiting for thread 1 sequence 5
    FAL[server, ARC0]: Error 16009 creating remote archivelog file 'dbpr'
    FAL[server, ARC0]: Error 16009 creating remote archivelog file 'dbpr'
    FAL[server, ARC0]: Error 16009 creating remote archivelog file 'dbpr'
    FAL[server, ARC0]: Error 16009 creating remote archivelog file 'dbpr'
    FAL[client]: Failed to request gap sequence
     GAP - SCN range: 0x0000.000f3ec9 - 0x0000.000f3ec9
     DBID 1262567096 branch 734786366
    FAL[client]: All defined FAL servers have been attempted.
    RFS[2]: Assigned to RFS process 7184
    RFS[2]: Identified database type as 'physical standby': Client is ARCH pid 4392MESSAGE
    --------------------------------------------------------------------------------ARC0: Beginning to archive thread 1 sequence 58 (1339183-1344090)
    ARC0: Completed archiving thread 1 sequence 58 (0-0)
    RFS[3]: Assigned to RFS process 6100
    RFS[3]: Identified database type as 'physical standby': Client is ARCH pid 6036已选择26行。
    这个又是什么情况?