zoukankan      html  css  js  c++  java
  • 强制关机导致ORA-03113

    数据库启动报错:无法打开数据库。

    [oracle@localhost ORCL]$ sqlplus / as sysdba

    SQL*Plus: Release 11.2.0.4.0 Production on Thu Jun 2 16:00:59 2016

    Copyright (c) 1982, 2013, Oracle.  All rights reserved.

    Connected to an idle instance.

    SQL> startup

    ORACLE instance started.

    Total System Global Area  705662976 bytes

    Fixed Size     2256592 bytes

    Variable Size   373293360 bytes

    Database Buffers   322961408 bytes

    Redo Buffers     7151616 bytes

    Database mounted.

    alter database open

    *

    ERROR at line 1:

    ORA-03113: end-of-file on communication channel

    Process ID: 5113

    Session ID: 580 Serial number: 47

    警告日志信息如下:通过警告信息我们知道当前我们的闪回恢复区满了,删除闪回恢复区数据库重新启动数据库报告同样的错误。

    Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4187.trc:

    ORA-19815: WARNING: db_recovery_file_dest_size of 10737418240 bytes is 100.00% used, and has 0 remaining bytes available.

    ************************************************************************

    You have following choices to free up space from recovery area:

    1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,

       then consider changing RMAN ARCHIVELOG DELETION POLICY.

    2. Back up files to tertiary device such as tape using RMAN

       BACKUP RECOVERY AREA command.

    3. Add disk space and increase db_recovery_file_dest_size parameter to

       reflect the new space.

    4. Delete unnecessary files using RMAN DELETE command. If an operating

       system command was used to delete files, then use RMAN CROSSCHECK and

       DELETE EXPIRED commands.

    ************************************************************************

    ARCH: Error 19809 Creating archive log file to '/u01/app/oracle/fast_recovery_area/ORCL/archivelog/2016_06_02/o1_mf_1_231_%u_.arc'

    Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4187.trc:

    ORA-16038: log 3 sequence# 231 cannot be archived

    ORA-19809: limit exceeded for recovery files

    ORA-00312: online log 3 thread 1: '/data/oradata/orcl/orcl/redo03.log'

    USER (ospid: 4187): terminating the instance due to error 16038

    System state dump requested by (instance=1, osid=4187), summary=[abnormal instance termination].

    System State dumped to trace file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_diag_4157_20160602154925.trc

    Dumping diagnostic data in directory=[cdmp_20160602154925], requested by (instance=1, osid=4187), summary=[abnormal instance termination].

    Instance terminated by USER, pid = 4187

    再往下看,我们看到这个错误ORA-00312: online log 3 thread 1: '/data/oradata/orcl/orcl/redo03.log'

    USER (ospid: 4187): terminating the instance due to error 16038

    这个错误导致instance被关闭。可能是因为强制断电,导致redo03.log文件损坏,我们通过sqlplus进行recover后以resetlogs方式打开数据库试试:

    [oracle@localhost ORCL]$ sqlplus / as sysdba

    SQL*Plus: Release 11.2.0.4.0 Production on Thu Jun 2 16:03:54 2016

    Copyright (c) 1982, 2013, Oracle.  All rights reserved.

    Connected to an idle instance.

    SQL> startup mount

    ORACLE instance started.

    Total System Global Area  705662976 bytes

    Fixed Size     2256592 bytes

    Variable Size   373293360 bytes

    Database Buffers   322961408 bytes

    Redo Buffers     7151616 bytes

    Database mounted.

    SQL> recover database until cancel;

    Media recovery complete.

    SQL>

    SQL> alter database open resetlogs;

    Database altered.

    SQL> select instance_name,status from v$instance;

    INSTANCE_NAME STATUS

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

    Orcl OPEN

    SQL>

    数据库至此恢复完毕。

  • 相关阅读:
    【Uvalive4960】 Sensor network (苗条树,进化版)
    【UVA 1151】 Buy or Build (有某些特别的东东的最小生成树)
    【UVA 1395】 Slim Span (苗条树)
    【UVA 10600】 ACM Contest and Blackout(最小生成树和次小生成树)
    【UVA 10369】 Arctic Network (最小生成树)
    【UVA 10816】 Travel in Desert (最小瓶颈树+最短路)
    【UVA 11183】 Teen Girl Squad (定根MDST)
    【UVA 11865】 Stream My Contest (二分+MDST最小树形图)
    【UVA 11354】 Bond (最小瓶颈生成树、树上倍增)
    【LA 5713 】 Qin Shi Huang's National Road System (MST)
  • 原文地址:https://www.cnblogs.com/wcwen1990/p/6656751.html
Copyright © 2011-2022 走看看