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

时间:2021-07-21 07:39:27

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

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.