Oracle错误ORA-03113: end-of-file on communication channel处理办法
机器遭遇断电,之后oracle就不能启动了,报错ORA-03113: end-of-file on communication channel (通信通道的文件结尾)
注:如果
SQL> startupORACLE instance started.Total System
Global Area 1252663296 bytesFixed Size2227944 bytesVariable Size704643352 bytesDatabase
Buffers 536870912 bytesRedo Buffers 8921088 bytesDatabase
mounted.ORA-03113:
end-of-fileon
communication channelProcess ID: 8117Session ID: 191 Serial number: 3网上分析,可能由于昨晚数据库强制关闭,导致文件状态可能不一致,因为正常关闭数据库会同步校验各文件,使得重新启动的时候文件时间点一致。解决方案如下启动DBSQL> conn /
as sysdbaConnected
to an idle instance.SQL> startup mountORACLE instance started.直接reset不成功SQL> select*
from v$log; GROUP# THREAD#SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC---------- ---------- ---------- ---------- ---------- ---------- ---STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME---------------- ------------- --------- ------------ --------- 1 1 112 52428800 512 1NOINACTIVE 3826382 16-JUL-13 3857158 17-JUL-13 3 1 114 52428800 512 1NOCURRENT
3886899 17-JUL-13 2.8147E+14 2 1 113 52428800 512 1NOINACTIVE 3857158 17-JUL-13 3886899 17-JUL-13SQL> alterdatabase
open resetlogs;alter
database open resetlogs*ERROR atline 1:ORA-01139: RESETLOGSoption
onlyvalid after
an incomplete database
recoverySQL> recover
database until time'2013-07-05'Media recovery complete.SQL> alterdatabase
open resetlogs;Databasealtered.成功。注:如果
alterdatabase
open resetlogs;执行提示失败,那么 alter database opennoresetlogs;