强制关机导致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> |
数据库至此恢复完毕。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)