数据库启动报错ORA-03113
SQL> startup; ORACLE instance started.
Total System GlobalArea 5.1310E+10 bytes Fixed Size 2265224 bytes Variable Size 1.8119E+10 bytes DatabaseBuffers 3.3152E+10 bytes Redo Buffers 36069376 bytes Databasemounted.
ORA-03113: end-of-file oncommunication channel Process ID: 117892 Session ID: 568 Serial number: 3 |
分析alert日志发现ORA-600 kcbzpbuf_1报错
Serial Media Recovery started Recovery of Online Redo Log: Thread 1 Group 4 Seq 4744 Reading mem 0 Mem# 0: /home/oradata/redo04.log Recovery of Online Redo Log: Thread 1 Group 1 Seq 4745 Reading mem 0 Mem# 0: /home/oradata/redo01.log Wed Jan 11 14:44:35 2023 Hex dump of (file87, block 3143379) intrace file/u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_dbw0_116740.trc Corrupt block relative dba: 0x15eff6d3 (file87, block 3143379) Bad header found during preparing block forwrite Data inbad block: type: 0 format: 2 rdba: 0x00000000 last change scn: 0x0b7e.593518d5 seq: 0x1 flg: 0x04 spare1: 0x0 spare2: 0x0 spare3: 0x0 consistency value intail: 0x18d50001 check value inblock header: 0x342b computed block checksum: 0x0 Errors infile/u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_dbw0_116740.trc (incident=553128): ORA-00600: internal error code, arguments: [kcbzpbuf_1], [4], [1], [], [], [], [], [], [], [], [], [] Incident details in: /u01/app/oracle/diag/rdbms/orcl/orcl/incident/incdir_553128/orcl_dbw0_116740_i553128.trc Use ADRCI or Support Workbench to package the incident. See Note 411.1 at My Oracle Support forerror and packaging details. Errors infile/u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_dbw0_116740.trc: ORA-00600: internal error code, arguments: [kcbzpbuf_1], [4], [1], [], [], [], [], [], [], [], [], [] DBW0 (ospid: 116740): terminating the instance due to error 471 Wed Jan 11 14:44:36 2023 System state dump requested by (instance=1, osid=116740 (DBW0)), summary=[abnormal instance termination]. Instance terminated by DBW0, pid = 116740 |
错误比较明显,在应用日志的时候,redo和数据文件的block不匹配,从而出现Corrupt block relative dba: 0x15eff6d3 (file 87, block 3143379)问题,通过bbed对该block进行修复,数据库直接recover成功
RMAN> recover database;
Starting recover at2023-01-11 14:53:44 using channel ORA_DISK_1
starting media recovery media recovery complete, elapsed time: 00:00:01
Finished recover at2023-01-11 14:53:45 |
数据库open成功
SQL> alterdatabaseopen;
Databasealtered. |
数据库报ORACLE Instance orcl (pid = 14)类似错误
Thread 1 opened at log sequence 4745 Current log# 1 seq# 4745 mem# 0: /home/oradata/redo01.log Successful openof redo thread 1 MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set Wed Jan 11 14:54:10 2023 SMON: enabling cache recovery [108954] Successfully onlined Undo Tablespace 2. Undo initialization finished serial:0 start:2313624 end:2313634 diff:10 (0 seconds) Verifying fileheader compatibility for11g tablespace encryption.. Verifying 11g fileheader compatibility fortablespace encryption completed SMON: enabling tx recovery Database Characterset is ZHS16GBK Errors infile/u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_smon_110633.trc (incident=577160): ORA-01578: ORACLE data block corrupted (file# 87, block # 3143379) ORA-01110: data file87: '/home/oradata/xifenfei04.dbf' No Resource Manager plan active replication_dependency_tracking turned off (no async multimaster replication found) Starting background process QMNC Wed Jan 11 14:54:10 2023 QMNC started with pid=80, OS id=114315 Completed: alter database open Wed Jan 11 14:54:10 2023 db_recovery_file_dest_size of 4182 MB is 0.00% used. This is a user-specified limit on the amount of space that will be used by this database forrecovery-related files, and does not reflect the amount of space available inthe underlying filesystem or ASM diskgroup. ORACLE Instance orcl (pid = 14) - Error 1578 encountered whilerecovering transaction (10, 0) on object 156475. Errors infile/u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_smon_110633.trc: ORA-01578: ORACLE data block corrupted (file# 87, block # 3143379) ORA-01110: data file87: '/home/oradata/xifenfei04.dbf' |
对其异常对象进行分析,确认是回收站对象,清理回收站
数据库后续运行正常【alert日志没有其他报错】,该恢复完成,业务数据可以直接使用,数据0丢失