zoukankan      html  css  js  c++  java
  • Oracle-在线日志不能归档引起实例故障

    问题现象

    Fri Jul 10 09:20:52 2020
    ARC3 started with pid=37, OS id=18813 
    ARC1: Archival started
    ARC2: Archival started
    ARC1: Becoming the 'no FAL' ARCH
    ARC1: Becoming the 'no SRL' ARCH
    ARC2: Becoming the heartbeat ARCH
    ARC3: Archival started
    ARC0: STARTING ARCH PROCESSES COMPLETE
    ARCH: All Archive destinations made inactive due to error 742
    ARCH: Closing local archive destination LOG_ARCHIVE_DEST_1: '+ARCH/orcl/archivelog/2020_07_10/thread_1_seq_108.314.1045387253' (error 742) (orcl1)
    Committing creation of archivelog '+ARCH/orcl/archivelog/2020_07_10/thread_1_seq_108.314.1045387253' (error 742)
    Errors in file /apps/oracle/database/diag/rdbms/orcl/orcl1/trace/orcl1_ora_18748.trc:
    ORA-16038: log 2 sequence# 108 cannot be archived
    ORA-00742: Log read detects lost write in thread %d sequence %d block %d
    ORA-00312: online log 2 thread 1: '+DATADG/orcl/onlinelog/group_2.262.947153355'
    USER (ospid: 18748): terminating the instance due to error 16038
    NOTE: dependency between database orcl and diskgroup resource ora.ARCH.dg is established
    System state dump requested by (instance=1, osid=18748), summary=[abnormal instance termination].
    System State dumped to trace file /apps/oracle/database/diag/rdbms/orcl/orcl1/trace/orcl1_diag_18688_20200710092052.trc
    Dumping diagnostic data in directory=[cdmp_20200710092052], requested by (instance=1, osid=18748), summary=[abnormal instance termination].
    Instance terminated by USER, pid = 18748
    

    从DB实例alert日志,发现在group 2日志文件'+DATADG/orcl/onlinelog/group_2.262.947153355'不能创建归档日志文件导致实例启动失败

    处理

    startup mount;
    alter system dump logfile '+DATADG/orcl/onlinelog/group_2.262.947153355' validate;
    
    set lines 168 pages 99
    col member for a80
    select group#,member,status,type from v$logfile;
    
    alter database clear unarchived logfile group 2;
    

    最后,需要重新做全备(因之前的序列号已经不连续,旧备份一不可用)

  • 相关阅读:
    MyBatis collection的两种形式——MyBatis学习笔记之九
    MyBatis 一对一(OneToOne)__SELECT
    Mybatis 一对一(OneToOne)关系映射__INSERT
    mybatis association表关联与rowbounds共同使用时的异常及其解决方案
    Mybatis Laz-Load功能实现代码赏析(原创)
    mybatis sql中的条件语句
    HDFS之四:HDFS原理解析(总体架构,读写操作流程)
    Mybatis多参数查询映射
    mysql索引之六:mysql高效索引之覆盖索引
    MYSQL BENCHMARK()函数
  • 原文地址:https://www.cnblogs.com/binliubiao/p/13277795.html
Copyright © 2011-2022 走看看