标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-00742 ORA-01110 ORA-01555 ORA-01578 ORA-08103 ORA-600 2131 ORA-600 2662 ORA-600 2663 ORA-600 3020 ORA-600 4000 ORA-600 4137 ORA-600 4193 ORA-600 4194 ORA-600 16703 ORA-600 kcbzib_kcrsds_1 ORA-600 KCLCHKBLK_4 ORA-15042 ORA-15196 ORACLE 12C oracle dul ORACLE PATCH Oracle Recovery Tools oracle加密恢复 oracle勒索 oracle勒索恢复 oracle异常恢复 Oracle 恢复 ORACLE恢复 ORACLE数据库恢复 oracle 比特币 OSD-04016 YOUR FILES ARE ENCRYPTED 勒索恢复 比特币加密文章分类
- Others (2)
- 中间件 (2)
- WebLogic (2)
- 操作系统 (102)
- 数据库 (1,701)
- DB2 (22)
- MySQL (74)
- Oracle (1,562)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (159)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (15)
- ORACLE 21C (3)
- Oracle 23ai (8)
- Oracle ASM (68)
- Oracle Bug (8)
- Oracle RAC (53)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (571)
- Oracle安装升级 (94)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (81)
- PostgreSQL (18)
- PostgreSQL恢复 (6)
- SQL Server (27)
- SQL Server恢复 (8)
- TimesTen (7)
- 达梦数据库 (2)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (37)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (20)
-
最近发表
- ORA-742 写丢失常见bug记录
- Oracle 19c 202501补丁(RUs+OJVM)
- 避免 19c 数据库性能问题需要考虑的事项 (Doc ID 3050476.1)
- Bug 21915719 Database hang or may fail to OPEN in 12c IBM AIX or HPUX Itanium – ORA-742, DEADLOCK or ORA-600 [kcrfrgv_nextlwn_scn] ORA-600 [krr_process_read_error_2]
- ORA-600 ktuPopDictI_1恢复
- impdp导入数据丢失sys授权问题分析
- impdp 创建index提示ORA-00942: table or view does not exist
- 数据泵导出 (expdp) 和导入 (impdp)工具性能降低分析参考
- 19c非归档数据库断电导致ORA-00742故障恢复
- Oracle 19c – 手动升级到 Non-CDB Oracle Database 19c 的完整核对清单
- sqlite数据库简单操作
- Oracle 暂定和恢复功能
- .pzpq扩展名勒索恢复
- Oracle read only用户—23ai新特性:只读用户
- 迁移awr快照数据到自定义表空间
- .hmallox加密mariadb/mysql数据库恢复
- 2025年首个故障恢复—ORA-600 kcbzib_kcrsds_1
- 第一例Oracle 21c恢复咨询
- ORA-15411: Failure groups in disk group DATA have different number of disks.
- 断电引起的ORA-08102: 未找到索引关键字, 对象号 39故障处理
标签归档:ORA-600 2662
正常open库报ORA-600 2662,ORA-600 4097错误
又一起数据库正常open之后继续报ORA-600 2662
Sat Dec 29 04:30:40 2018 QMNC started with pid=36, OS id=12985 LOGSTDBY: Validating controlfile with logical metadata LOGSTDBY: Validation complete Completed: alter database open Sat Dec 29 04:30:42 2018 Starting background process CJQ0 Sat Dec 29 04:30:42 2018 CJQ0 started with pid=41, OS id=12999 Sat Dec 29 04:30:43 2018 Errors in file /home/app/diag/rdbms/orcl/orcl/trace/orcl_m000_12989.trc (incident=365101): ORA-00600: internal error code, arguments: [2662], [0], [193646286], [0], [193662077], [50331650], [], [], [], [], [], [] Sat Dec 29 04:30:43 2018 Errors in file /home/app/diag/rdbms/orcl/orcl/trace/orcl_m002_12993.trc (incident=365117): ORA-00600: internal error code, arguments: [2662], [0], [193646286], [0], [193662077], [50331650], [], [], [], [], [], [] Incident details in: /home/app/diag/rdbms/orcl/orcl/incident/incdir_365101/orcl_m000_12989_i365101.trc Incident details in: /home/app/diag/rdbms/orcl/orcl/incident/incdir_365117/orcl_m002_12993_i365117.trc Use ADRCI or Support Workbench to package the incident. See Note 411.1 at My Oracle Support for error and packaging details. Errors in file /home/app/diag/rdbms/orcl/orcl/trace/orcl_m000_12989.trc (incident=365102): ORA-00600: internal error code, arguments: [2662], [0], [193646286], [0], [193662077], [50331650], [], [], [], [], [], [] Incident details in: /home/app/diag/rdbms/orcl/orcl/incident/incdir_365102/orcl_m000_12989_i365102.trc Use ADRCI or Support Workbench to package the incident. See Note 411.1 at My Oracle Support for error and packaging details. Errors in file /home/app/diag/rdbms/orcl/orcl/trace/orcl_m002_12993.trc (incident=365118): ORA-00600: internal error code, arguments: [2662], [0], [193646286], [0], [193662077], [50331650], [], [], [], [], [], [] Incident details in: /home/app/diag/rdbms/orcl/orcl/incident/incdir_365118/orcl_m002_12993_i365118.trc
在open状态处理掉ORA-00600 2662错误之后,又出现了ORA-600 4097 以及ORA-00353 ORA-00312错误,这个也是一种不常见的现象,一般都是数据库open之前出现类似错误,但是这里在open之后出现(以前类似处理参考:ORA-600 4097故障处理和ORA-00322 ORA-00312 ,ORA-00354 ORA-00353 ORA-00312异常处理)
Sat Dec 29 05:55:22 2018 Errors in file /home/app/diag/rdbms/orcl/orcl/trace/orcl_j000_19136.trc (incident=432567): ORA-00600: internal error code, arguments: [4097], [3], [15], [76480], [], [], [], [], [], [], [], [] Incident details in: /home/app/diag/rdbms/orcl/orcl/incident/incdir_432567/orcl_j000_19136_i432567.trc Use ADRCI or Support Workbench to package the incident. See Note 411.1 at My Oracle Support for error and packaging details. Errors in file /home/app/diag/rdbms/orcl/orcl/trace/orcl_j000_19136.trc (incident=432568): ORA-00353: log corruption near block 15682 change 193647101 time 12/29/2018 04:40:31 ORA-00312: online log 3 thread 1: '/home/app/oradata/orcl/redo03.log' ORA-00312: online log 3 thread 1: '/home/app/oradata/orcl/redo03.log' ORA-00600: internal error code, arguments: [4097], [3], [15], [76480], [], [], [], [], [], [], [], [] Incident details in: /home/app/diag/rdbms/orcl/orcl/incident/incdir_432568/orcl_j000_19136_i432568.trc Errors in file /home/app/diag/rdbms/orcl/orcl/incident/incdir_432567/orcl_j000_19136_i432567.trc: ORA-00399: corrupt change description in redo log ORA-00353: log corruption near block 15682 change 193647101 time 12/29/2018 04:40:31 ORA-00312: online log 3 thread 1: '/home/app/oradata/orcl/redo03.log' ORA-00312: online log 3 thread 1: '/home/app/oradata/orcl/redo03.log' ORA-00600: internal error code, arguments: [4097], [3], [15], [76480], [], [], [], [], [], [], [], [] Errors in file /home/app/diag/rdbms/orcl/orcl/trace/orcl_j000_19136.trc (incident=432569): ORA-00353: log corruption near block 15682 change 193647101 time 12/29/2018 04:40:31 ORA-00334: archived log: '/home/app/oradata/orcl/redo03.log' ORA-00312: online log 3 thread 1: '/home/app/oradata/orcl/redo03.log' ORA-00600: internal error code, arguments: [4097], [3], [15], [76480], [], [], [], [], [], [], [], [] Incident details in: /home/app/diag/rdbms/orcl/orcl/incident/incdir_432569/orcl_j000_19136_i432569.trc
处理完成上面报错之后,继续出现比较少见的ORA-600 ktecgsc:kcbz_objdchk错误,具体参考:ORA-00600 [ktecgsc:kcbz_objdchk] on 11.2 (Doc ID 1562473.1)
Sat Dec 29 06:00:17 2018 DBMS_STATS: GATHER_STATS_JOB encountered errors. Check the trace file. Errors in file /home/app/diag/rdbms/orcl/orcl/trace/orcl_j001_19436.trc: ORA-20011: Approximate NDV failed: ORA-08103: object no longer exists Sat Dec 29 06:00:21 2018 Errors in file /home/app/diag/rdbms/orcl/orcl/trace/orcl_j002_19479.trc (incident=432631): ORA-00600: internal error code, arguments: [ktecgsc:kcbz_objdchk], [0], [0], [1], [], [], [], [], [], [], [], [] Incident details in: /home/app/diag/rdbms/orcl/orcl/incident/incdir_432631/orcl_j002_19479_i432631.trc Use ADRCI or Support Workbench to package the incident. See Note 411.1 at My Oracle Support for error and packaging details.
oracle 8.1.6因断电无法启动恢复
接到一个oralce 8.1.6的数据库恢复请求,由于断电之后,系统无法正常恢复,通过尝试recover datafile报错如下
SQL> select * from v$version; BANNER ---------------------------------------------------------------- Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production PL/SQL Release 8.1.6.0.0 - Production CORE 8.1.6.0.0 Production TNS for 32-bit Windows: Version 8.1.6.0.0 - Production NLSRTL Version 3.4.1.0.0 - Production
Tue Oct 16 14:17:01 2018 Media Recovery Datafile: 1 Media Recovery Start Media Recovery Log Recovery of Online Redo Log: Thread 1 Group 1 Seq 146597 Reading mem 0 Mem# 0 errs 0: D:\ORACLE\ORADATA\ORCL\REDO01.LOG Tue Oct 16 14:17:02 2018 Errors in file D:\Oracle\admin\orcl\udump\ORA03040.TRC: ORA-00600: internal error code, arguments: [kcoapl_blkchk], [1], [30547], [6101], [], [], [], [] Tue Oct 16 14:17:03 2018 Errors in file D:\Oracle\admin\orcl\udump\ORA03040.TRC: ORA-01578: ORACLE data block corrupted (file # 1, block # 30547) ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF' ORA-00607: Internal error occurred while making a change to a data block ORA-00600: internal error code, arguments: [kcoapl_blkchk], [1], [30547], [6101], [], [], [], [] Tue Oct 16 14:17:03 2018 Errors in file D:\Oracle\admin\orcl\udump\ORA03040.TRC: ORA-00314: log 2 of thread 1, expected sequence# 146598 doesn't match 146415 ORA-00312: online log 2 thread 1: 'D:\ORACLE\ORADATA\ORCL\REDO02.LOG'
这里可以获取到两个信息:1)system文件可能有坏块,导致数据库recover的时候报ORA-600 kcoapl_blkchk错误,2)数据库的redo可能异常了,由于8i数据库默认redo 10m,在业务繁忙时候切换较为频繁,而文件系统的cache导致redo信息比较老,而数据文件需要redo比较新,从而无法正常恢复成功。比较明显对于当前这样的情况只能是屏蔽数据一致性,强制拉库
ARC0: media recovery disabled Tue Oct 16 14:17:39 2018 SMON: enabling cache recovery Tue Oct 16 14:17:39 2018 Errors in file D:\Oracle\admin\orcl\udump\ORA02256.TRC: ORA-00600: internal error code, arguments: [2662], [1], [1712082681], [1], [1712107587], [8388610], [], [] Tue Oct 16 14:17:41 2018 Errors in file D:\Oracle\admin\orcl\udump\ORA02256.TRC: ORA-00600: internal error code, arguments: [2662], [1], [1712082682], [1], [1712107587], [8388610], [], [] ORA-00600: internal error code, arguments: [2662], [1], [1712082681], [1], [1712107587], [8388610], [], [] Tue Oct 16 14:17:43 2018 Errors in file D:\Oracle\admin\orcl\udump\ORA02256.TRC: ORA-00600: internal error code, arguments: [2662], [1], [1712082682], [1], [1712107587], [8388610], [], [] ORA-00600: internal error code, arguments: [2662], [1], [1712082681], [1], [1712107587], [8388610], [], [] Tue Oct 16 14:17:45 2018 Errors in file D:\Oracle\admin\orcl\udump\ORA02256.TRC: ORA-00603: ORACLE server session terminated by fatal error ORA-00600: internal error code, arguments: [2662], [1], [1712082682], [1], [1712107587], [8388610], [], [] ORA-00600: internal error code, arguments: [2662], [1], [1712082681], [1], [1712107587], [8388610], [], []
ORA-600 2662这个错误比较常见,直接推数据库scn,启动库
Tue Oct 16 16:09:11 2018 Errors in file D:\Oracle\admin\orcl\bdump\orclSMON.TRC: ORA-00600: internal error code, arguments: [4193], [29469], [29477], [], [], [], [], [] Recovery of Online Redo Log: Thread 1 Group 3 Seq 1 Reading mem 0 Mem# 0 errs 0: D:\ORACLE\ORADATA\ORCL\REDO03.LOG Tue Oct 16 16:09:12 2018 Errors in file D:\Oracle\admin\orcl\bdump\orclSMON.TRC: ORA-01595: error freeing extent (3) of rollback segment (2)) ORA-00600: internal error code, arguments: [4193], [29469], [29477], [], [], [], [], [] Tue Oct 16 16:09:13 2018 Completed: ALTER DATABASE OPEN Tue Oct 16 16:12:06 2018 CREATE ROLLBACK SEGMENT nrbs1 TABLESPACE rbs Tue Oct 16 16:12:06 2018 Errors in file D:\Oracle\admin\orcl\udump\ORA02252.TRC: ORA-00600: internal error code, arguments: [4194], [79], [38], [], [], [], [], []
错误比较明显ORA-600 4194,而且已经告知是由于rollback segment 2异常,通过屏蔽回滚段,open数据库,删除老回滚段,创建新回滚段(8i无undo自动管理)
SQL> startup ORACLE instance started. Total System Global Area 1549432076 bytes Fixed Size 70924 bytes Variable Size 500707328 bytes Database Buffers 1048576000 bytes Redo Buffers 77824 bytes Database mounted. Database opened. SQL> drop rollback segment "RBS1"; Rollback segment dropped. SQL> drop rollback segment "RBS2"; Rollback segment dropped. SQL> drop rollback segment "RBS3"; Rollback segment dropped. SQL> drop rollback segment "RBS4"; Rollback segment dropped. SQL> drop rollback segment "RBS5"; Rollback segment dropped. SQL> drop rollback segment "RBS6"; Rollback segment dropped. SQL> CREATE ROLLBACK SEGMENT nrbs1 TABLESPACE rbs; Rollback segment created. SQL> CREATE ROLLBACK SEGMENT nrbs2 TABLESPACE rbs; Rollback segment created. SQL> CREATE ROLLBACK SEGMENT nrbs3 TABLESPACE rbs; Rollback segment created. SQL> CREATE ROLLBACK SEGMENT nrbs4 TABLESPACE rbs; Rollback segment created. SQL> CREATE ROLLBACK SEGMENT nrbs5 TABLESPACE rbs; Rollback segment created. SQL> CREATE ROLLBACK SEGMENT nrbs6 TABLESPACE rbs; Rollback segment created. SQL> CREATE ROLLBACK SEGMENT nrbs7 TABLESPACE rbs; Rollback segment created.
客户安排导出导入,至此该库恢复完成
记录正常open库报ORA-600 2662
数据库版本10.2.0.3 32位
SQL> select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod PL/SQL Release 10.2.0.3.0 - Production CORE 10.2.0.3.0 Production TNS for 32-bit Windows: Version 10.2.0.3.0 - Production NLSRTL Version 10.2.0.3.0 - Production
数据库启动alert日志报大量ORA-600和ORA-07445错误
Tue Jul 31 09:56:45 2018 Started redo application at Thread 1: logseq 7593, block 46691 Tue Jul 31 09:56:45 2018 Recovery of Online Redo Log: Thread 1 Group 2 Seq 7593 Reading mem 0 Mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG Tue Jul 31 09:56:45 2018 RECOVERY OF THREAD 1 STUCK AT BLOCK 779 OF FILE 2 Tue Jul 31 09:56:45 2018 RECOVERY OF THREAD 1 STUCK AT BLOCK 4430 OF FILE 2 Tue Jul 31 09:56:45 2018 Hex dump of (file 3, block 23704) in trace file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_p002_248.trc Corrupt block relative dba: 0x00c05c98 (file 3, block 23704) Fractured block found during crash/instance recovery Data in bad block: type: 6 format: 2 rdba: 0x00c05c98 last change scn: 0x0000.05c3cad2 seq: 0x16 flg: 0x06 spare1: 0x0 spare2: 0x0 spare3: 0x0 consistency value in tail: 0xe4be0601 check value in block header: 0x5c03 computed block checksum: 0x2e7b Tue Jul 31 09:56:45 2018 Completed redo application Tue Jul 31 09:56:46 2018 Reread of rdba: 0x00c05c98 (file 3, block 23704) found same corrupted data RECOVERY OF THREAD 1 STUCK AT BLOCK 40841 OF FILE 8 Tue Jul 31 09:56:46 2018 RECOVERY OF THREAD 1 STUCK AT BLOCK 297 OF FILE 2 Tue Jul 31 09:56:46 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_p002_248.trc: ORA-00600: internal error code, arguments: [kssadpm1], [], [], [], [], [], [], [] Tue Jul 31 09:56:46 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_p001_2320.trc: ORA-00600: internal error code, arguments: [545], [0xCA15AE84], [3], [16], [], [], [], [] ORA-00600: internal error code, arguments: [545], [0xCA15AE84], [3], [16], [], [], [], [] ORA-00600: internal error code, arguments: [545], [0xCA15AE84], [3], [16], [], [], [], [] ORA-00600: internal error code, arguments: [545], [0xCA15AE84], [3], [8], [], [], [], [] Tue Jul 31 09:56:46 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_p004_2116.trc: ORA-00600: internal error code, arguments: [kssdmc: null so], [], [], [], [], [], [], [] ORA-00600: internal error code, arguments: [kssdmc: null so], [], [], [], [], [], [], [] ORA-00600: internal error code, arguments: [kssdmc: null so], [], [], [], [], [], [], [] ORA-00600: internal error code, arguments: [kssdmc: null so], [], [], [], [], [], [], [] ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C3429C1] [ADDR:0xCA800000] [UNABLE_TO_READ] [] Tue Jul 31 09:56:46 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_p000_220.trc: ORA-00600: internal error code, arguments: [ksfdchkfobrerr1], [0xBB9852DC], [0xA7EC530C], [], [], [], [], [] Tue Jul 31 09:56:46 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_p003_252.trc: ORA-00600: internal error code, arguments: [kssrc_test_cleanup:popall], [0xCA000304], [], [], [], [], [], [] Tue Jul 31 09:56:46 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_p001_228.trc: ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_kghalf+895] [PC:0x603BEBF3] [ADDR:0xFFFFFFF8] [UNABLE_TO_READ] [] Tue Jul 31 09:56:46 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_lgwr_1848.trc: ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_ksarcv+243] [PC:0x5B2223] [ADDR:0x206C000C] [UNABLE_TO_READ] [] Tue Jul 31 09:56:47 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_p000_220.trc: ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_kslwlmod+166] [PC:0x46946A] [ADDR:0x54F8] [UNABLE_TO_WRITE] [] ORA-00081: address range [0x75C80047, 0x75C8004B) is not readable ORA-00600: internal error code, arguments: [ksfdchkfobrerr1], [0xBB9852DC], [0xA7EC530C], [], [], [], [], [] Tue Jul 31 09:56:47 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_ckpt_1852.trc: ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_kcbs_dump_adv_state+471] [PC:0x59B403] [ADDR:0xCC60CBAD] [UNABLE_TO_READ] [] ORA-00600: internal error code, arguments: [kssrc_test_cleanup:popall], [0xCA000304], [], [], [], [], [], [] Tue Jul 31 09:56:47 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_pmon_1828.trc: ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_kews_idle_wait+378] [PC:0x60BE2E] [ADDR:0x1820D468] [UNABLE_TO_WRITE] [] Tue Jul 31 09:56:47 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_p004_236.trc: ORA-00081: address range [0x75C80041, 0x75C80045) is not readable ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C3429C1] [ADDR:0xCA800000] [UNABLE_TO_READ] []
检查主要坏块
主要影响数据库恢复的坏块,system不言而喻,block 2也比较敏感
E:\>dbv file=E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\TTTS.DAT DBVERIFY: Release 10.2.0.3.0 - Production on 星期三 8月 1 00:24:52 2018 Copyright (c) 1982, 2005, Oracle. All rights reserved. DBVERIFY - 开始验证: FILE = E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\TTTS.DAT 页 2 流入 - 很可能是介质损坏 Corrupt block relative dba: 0x02000002 (file 8, block 2) Fractured block found during dbv: Data in bad block: type: 29 format: 2 rdba: 0x02000002 last change scn: 0x0000.05c45a54 seq: 0x2 flg: 0x04 spare1: 0x0 spare2: 0x0 spare3: 0x0 consistency value in tail: 0x9e601d02 check value in block header: 0xea86 computed block checksum: 0xc434 DBVERIFY - 验证完成 检查的页总数: 121600 处理的页总数 (数据): 58606 失败的页总数 (数据): 0 处理的页总数 (索引): 45192 失败的页总数 (索引): 0 处理的页总数 (其它): 4453 处理的总页数 (段) : 0 失败的总页数 (段) : 0 空的页总数: 13348 标记为损坏的总页数: 1 流入的页总数: 1 最高块 SCN : 96716847 (0.96716847) E:\>dbv FILE = E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF DBVERIFY: Release 10.2.0.3.0 - Production on 星期三 8月 1 00:28:28 2018 Copyright (c) 1982, 2005, Oracle. All rights reserved. DBVERIFY - 开始验证: FILE = E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF 页 68377 流入 - 很可能是介质损坏 Corrupt block relative dba: 0x00410b19 (file 1, block 68377) Fractured block found during dbv: Data in bad block: type: 6 format: 2 rdba: 0x00410b19 last change scn: 0x0000.05c45bdf seq: 0x1 flg: 0x06 spare1: 0x0 spare2: 0x0 spare3: 0x0 consistency value in tail: 0x4f3b0601 check value in block header: 0x465b computed block checksum: 0x11c7 DBV-00200: 块 dba 4262777 已标记为损坏 DBVERIFY - 验证完成 检查的页总数: 74240 处理的页总数 (数据): 46209 失败的页总数 (数据): 0 处理的页总数 (索引): 9729 失败的页总数 (索引): 0 处理的页总数 (其它): 1923 处理的总页数 (段) : 0 失败的总页数 (段) : 0 空的页总数: 16378 标记为损坏的总页数: 2 流入的页总数: 1 最高块 SCN : 96757289 (0.96757289)
尝试recover数据库,open数据库
E:\>sqlplus / as sysdba SQL*Plus: Release 10.2.0.3.0 - Production on 星期二 7月 31 15:40:05 2018 Copyright (c) 1982, 2006, Oracle. All Rights Reserved. 连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options SQL> recover database; 完成介质恢复。 SQL> alter database open; 数据库已更改。
数据库报ORA-600 2662错误
该数据库没有增加隐含隐含参数(屏蔽一致性,屏蔽事务),数据库直接启动之后报ORA-600 2662
Tue Jul 31 15:40:15 2018 SMON: enabling cache recovery Tue Jul 31 15:40:16 2018 Successfully onlined Undo Tablespace 1. Tue Jul 31 15:40:16 2018 SMON: enabling tx recovery Tue Jul 31 15:40:16 2018 Database Characterset is ZHS16GBK replication_dependency_tracking turned off (no async multimaster replication found) Starting background process QMNC QMNC started with pid=32, OS id=1152 Tue Jul 31 15:40:17 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_smon_1288.trc: ORA-00600: internal error code, arguments: [2662], [0], [96736891], [0], [96752794], [4264138], [], [] Tue Jul 31 15:40:18 2018 Non-fatal internal error happenned while SMON was doing logging scn->time mapping. SMON encountered 1 out of maximum 100 non-fatal internal errors. Tue Jul 31 15:40:18 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_smon_1288.trc: ORA-00600: internal error code, arguments: [2662], [0], [96736892], [0], [96752794], [4264138], [], [] Non-fatal internal error happenned while SMON was doing extent coalescing. SMON encountered 3 out of maximum 100 non-fatal internal errors. Tue Jul 31 15:40:19 2018 db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a user-specified limit on the amount of space that will be used by this database for recovery-related files, and does not reflect the amount of space available in the underlying filesystem or ASM diskgroup. Hex dump of (file 8, block 2) in trace file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_mmon_1740.trc Corrupt block relative dba: 0x02000002 (file 8, block 2) Fractured block found during buffer read Data in bad block: type: 29 format: 2 rdba: 0x02000002 last change scn: 0x0000.05c45a54 seq: 0x2 flg: 0x04 spare1: 0x0 spare2: 0x0 spare3: 0x0 consistency value in tail: 0x9e601d02 check value in block header: 0xea86 computed block checksum: 0xc434 Reread of rdba: 0x02000002 (file 8, block 2) found same corrupted data Tue Jul 31 15:40:20 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_smon_1288.trc: ORA-00600: internal error code, arguments: [2662], [0], [96736902], [0], [96752794], [4264138], [], [] Tue Jul 31 15:40:20 2018 Completed: alter database open Tue Jul 31 15:40:20 2018 Non-fatal internal error happenned while SMON was doing extent coalescing. SMON encountered 4 out of maximum 100 non-fatal internal errors. Tue Jul 31 15:40:21 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_smon_1288.trc: ORA-00600: internal error code, arguments: [2662], [0], [96736922], [0], [96752794], [4264138], [], [] Non-fatal internal error happenned while SMON was doing extent coalescing. SMON encountered 5 out of maximum 100 non-fatal internal errors. Tue Jul 31 15:40:22 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_j000_1076.trc: ORA-00600: 内部错误代码, 参数: [2662], [0], [96736954], [0], [96754130], [12615382], [], [] Tue Jul 31 15:40:22 2018 DEBUG: Replaying xcb 0xbba2d2e4, pmd 0xab1920fc for failed op 8 Reconstructing Uhdr 0x800019 for xcb 0xbba2d2e4, pmd 0xab1920fc Doing block recovery for file 2 block 25 Block recovery from logseq 7594, block 63 to scn 96736910 Tue Jul 31 15:40:22 2018 Recovery of Online Redo Log: Thread 1 Group 3 Seq 7594 Reading mem 0 Mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG Block recovery completed at rba 7594.82.16, scn 0.96736911 DEBUG: Restoring block headers for xcb 0xbba2d2e4, pmd 0xab1920fc DEBUG: Finished replay for xcb 0xbba2d2e4, pmd 0xab1920fc for failed op 8 Tue Jul 31 15:40:22 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_j000_1076.trc: ORA-00603: ORACLE 服务器会话因致命错误而终止 ORA-00600: 内部错误代码, 参数: [2662], [0], [96736955], [0], [96754130], [12615382], [], [] ORA-00600: 内部错误代码, 参数: [2662], [0], [96736954], [0], [96754130], [12615382], [], [] Tue Jul 31 15:40:31 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_smon_1288.trc: ORA-00600: internal error code, arguments: [2662], [0], [96736963], [0], [96752794], [4264138], [], [] Tue Jul 31 15:40:31 2018 Non-fatal internal error happenned while SMON was doing extent coalescing. SMON encountered 6 out of maximum 100 non-fatal internal errors. Tue Jul 31 15:40:41 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_smon_1288.trc: ORA-00600: internal error code, arguments: [2662], [0], [96736967], [0], [96752794], [4264138], [], [] Tue Jul 31 15:41:03 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_pmon_1448.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:03 2018 PMON: terminating instance due to error 474 Tue Jul 31 15:41:03 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_j004_1344.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:03 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_j003_2104.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:03 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_j002_932.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:04 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_j001_1680.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:04 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_q000_2336.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:05 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_lgwr_552.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:05 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_dbw0_1420.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:05 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_dbw1_2556.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:05 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_psp0_1812.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:05 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_mman_1924.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:05 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_ckpt_2940.trc: ORA-00474: SMON process terminated with error Tue Jul 31 15:41:10 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\bdump\orcl_reco_660.trc: ORA-00474: SMON process terminated with error Instance terminated by PMON, pid = 1448 Tue Jul 31 15:41:57 2018
这是一个不常见的错误,没有使用隐含参数强制拉库,数据库正常open成功,但是由于system坏块,导致数据库启动之后报ORA-600 2662错误(再次证明2662不一定只有强制拉库发生,正常open的库也有可能,主要取决block scn和datafile scn,如果不是open过程必须要访问的block,那可能在open之后由于访问需要再报出来该错误).这个问题比较简单,因为open成功之后再crash,而且该坏块引起smon报错但是并没有ora-600 4xxx相关错误,因此根据经验,直接在数据库open之后,处理掉system异常报错对象和坏块对象即可.另外block 2 比较特殊,需要对其上面的对象进行处理
Tue Jul 31 15:55:54 2018 Hex dump of (file 8, block 2) in trace file e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_3664.trc Corrupt block relative dba: 0x02000002 (file 8, block 2) Completely zero block found during reading space header Reread of blocknum=2, file=E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\TTTS.DAT. found same corrupt data Reread of blocknum=2, file=E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\TTTS.DAT. found same corrupt data Reread of blocknum=2, file=E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\TTTS.DAT. found same corrupt data Reread of blocknum=2, file=E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\TTTS.DAT. found same corrupt data Reread of blocknum=2, file=E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\TTTS.DAT. found same corrupt data Tue Jul 31 15:55:54 2018 Errors in file e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_3664.trc: ORA-07445: 出现异常错误: 核心转储 [ACCESS_VIOLATION] [_krbodmpcx+243] [PC:0x2317857] [ADDR:0x8] [UNABLE_TO_READ] [] ORA-19880: 数据文件 E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\TTTS.DAT 的空间标头已损坏, 块 2 备份已中止
补充ora-600 2662 block记录
---------------------------------------- SO: BB97A97C, type: 24, owner: BB882B10, flag: INIT/-/-/0x00 (buffer) (CR) PR: BB8029D8 FLG: 0x100000 class bit: 00000000 kcbbfbp: [BH: B9FCF268, LINK: BB97A9A0] where: kdswh06: kdscgr, why: 0 BH (B9FCF268) file#: 1 rdba: 0x004110ca (1/69834) class: 1 ba: B9832000 set: 9 blksize: 8192 bsi: 0 set-flg: 2 pwbcnt: 0 dbwrid: 0 obj: 573 objn: 575 tsn: 0 afn: 1 hash: [bb9151ec,bb9151ec] lru: [b9fcf378,b9fcf200] ckptq: [NULL] fileq: [NULL] objq: [b9fcf3d0,aa776524] use: [bb97a9a0,bb97a9a0] wait: [NULL] st: XCURRENT md: SHR tch: 0 flags: LRBA: [0x0.0.0] HSCN: [0xffff.ffffffff] HSUB: [65535] Using State Objects ---------------------------------------- SO: BB97A97C, type: 24, owner: BB882B10, flag: INIT/-/-/0x00 (buffer) (CR) PR: BB8029D8 FLG: 0x100000 class bit: 00000000 kcbbfbp: [BH: B9FCF268, LINK: BB97A9A0] where: kdswh06: kdscgr, why: 0 buffer tsn: 0 rdba: 0x004110ca (1/69834) scn: 0x0000.05c4549a seq: 0x01 flg: 0x06 tail: 0x549a0601 frmt: 0x02 chkval: 0xc60a type: 0x06=trans data