ITPub博客

首页 > 数据库 > Oracle > ORA-03113: end-of-file on communication channel

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

原创 Oracle 作者:wenjunheyixiao 时间:2016-04-04 10:28:27 0 删除 编辑

1          

问题:

SQL> startup

ORACLE instance started.

 

Total System Global Area  830930944 bytes

Fixed Size                    2257800 bytes

Variable Size                  536874104 bytes

Database Buffers          285212672 bytes

Redo Buffers                    6586368 bytes

Database mounted.

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

Process ID: 116507

Session ID: 125 Serial number: 5

之前由于数据库查询个简单的语句很慢,然后重启机器导致文件状态可能不一致,因为正常关闭数据库会同步校验各文件,使得重新启动的时候文件时间点一致。 所以导致数据库无法正常启动,机器重启后启动数据库如下:

 

 

 

2

解决方法:
 

SQL> conn / as sysdba

Connected to an idle instance.

SQL> startup mount

ORACLE instance started.

 

Total System Global Area  830930944 bytes

Fixed Size                    2257800 bytes

Variable Size                  536874104 bytes

Database Buffers          285212672 bytes

Redo Buffers                    6586368 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               7   52428800           512                1 YES

INACTIVE                998780 03-APR-16       998783 03-APR-16

 

 4            1               0   52428800           512                1 YES

UNUSED                             0                            0

 

 3            1               9   52428800           512                1 NO

CURRENT                 999444 03-APR-16   2.8147E+14

 

 

    GROUP#    THREAD#  SEQUENCE#      BYTES  BLOCKSIZE          MEMBERS ARC

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

STATUS                 FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME

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

 2            1               8   52428800           512                1 NO

INACTIVE                998783 03-APR-16       999444 03-APR-16

SQL> recover database until time '2016-4-3';

Media recovery complete.

SQL> alter database open resetlogs;

 

Database altered.

 

 

3

验证:

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup

ORACLE instance started.

 

Total System Global Area  830930944 bytes

Fixed Size                    2257800 bytes

Variable Size                  536874104 bytes

Database Buffers          285212672 bytes

Redo Buffers                    6586368 bytes

Database mounted.

Database opened.

 

4

检查:

SQL> select FILE#,CHECKPOINT_CHANGE#, NAME from v$datafile;

 

     FILE# CHECKPOINT_CHANGE#

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

NAME

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

 1              1001391

/u01/app/oracle/oradata/prod1/system01.dbf

 

 2              1001391

/u01/app/oracle/oradata/prod1/sysaux01.dbf

 

 3              1001391

/u01/app/oracle/oradata/prod1/undotbs01.dbf

 

 

     FILE# CHECKPOINT_CHANGE#

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

NAME

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

 4              1001391

/u01/app/oracle/oradata/prod1/users01.dbf

 

 5              1001391

/u01/app/oracle/oradata/prod1/example01.dbf

 

 

SQL> select FILE#,CHECKPOINT_CHANGE#, NAME from v$datafile_header;

 

     FILE# CHECKPOINT_CHANGE#

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

NAME

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

 1              1001391

/u01/app/oracle/oradata/prod1/system01.dbf

 

 2              1001391

/u01/app/oracle/oradata/prod1/sysaux01.dbf

 

 3              1001391

/u01/app/oracle/oradata/prod1/undotbs01.dbf

 

 

     FILE# CHECKPOINT_CHANGE#

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

NAME

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

 4              1001391

/u01/app/oracle/oradata/prod1/users01.dbf

 

 5              1001391

/u01/app/oracle/oradata/prod1/example01.dbf

 

由此可以看出,现在的数据文件的头部和控制文件的SCN号是一致的;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30606702/viewspace-2074890/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2015-12-02

  • 博文量
    117
  • 访问量
    202596