zoukankan      html  css  js  c++  java
  • ORA-03113: end-of-file on communication channel

    导致的原因,可能是异常断电导致文件状态不一致。


    SQL> startup
    ORACLE instance started.

    Total System Global Area 1653518336 bytes
    Fixed Size                  2213896 bytes
    Variable Size             956303352 bytes
    Database Buffers          687865856 bytes
    Redo Buffers                7135232 bytes
    Database mounted.
    ORA-03113: end-of-file on communication channel
    Process ID: 2874
    Session ID: 192 Serial number: 5

    解决办法

    SQL> conn / as sysdba    ###已超级管理员进入
    Connected to an idle instance.
    SQL> startup mount;       ###挂载数据库
    ORACLE instance started.

    Total System Global Area 1653518336 bytes
    Fixed Size                  2213896 bytes
    Variable Size             956303352 bytes
    Database Buffers          687865856 bytes
    Redo Buffers                7135232 bytes
    Database mounted.
    SQL> select * from v$log;  ###查看日志

        GROUP#    THREAD#  SEQUENCE#      BYTES  BLOCKSIZE    MEMBERS ARC
    ---------- ---------- ---------- ---------- ---------- ---------- ---
    STATUS           FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
    ---------------- ------------- --------- ------------ ---------
             1          1        124   52428800        512          1 NO
    INACTIVE               3674510 31-AUG-16      3691896 31-AUG-16

             3          1        126   52428800        512          1 NO
    CURRENT                3728411 01-SEP-16   2.8147E+14

             2          1        125   52428800        512          1 NO
    INACTIVE               3691896 31-AUG-16      3728411 01-SEP-16


    SQL> recover database until time '2016-09-01';  ###恢复介质到2016-09-1  在这前可以处理一下session时间格式便于精确定位日志时间 alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
    Media recovery complete.

    SQL> alter database open resetlogs;                 ###启动数据库到open状态 //参考http://blog.csdn.net/liqfyiyi/article/details/8046557

    Database altered.

  • 相关阅读:
    Debian 8(jessie)下设置系统启动直接进入命令行,无GUI
    Unity 查找物体对象
    Unity的生命周期函数
    Unity脚本实现添加子物体
    Unity工程中 .Meta 文件
    Unity 中简单的第三人称摄像机跟随
    github删除自己的库--Deleting a repository
    TypeScript函数
    Egret引擎学习笔记
    Egret引擎list内单个渲染对象代码编写
  • 原文地址:https://www.cnblogs.com/flyback/p/6208205.html
Copyright © 2011-2022 走看看