标签云
asm 恢复 asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 kfed MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-01110 ORA-01555 ORA-01578 ORA-08103 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)
- 操作系统 (100)
- 数据库 (1,609)
- DB2 (22)
- MySQL (71)
- Oracle (1,473)
- Data Guard (50)
- EXADATA (7)
- GoldenGate (21)
- ORA-xxxxx (158)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (13)
- ORACLE 21C (3)
- Oracle 23ai (3)
- Oracle ASM (65)
- Oracle Bug (7)
- Oracle RAC (47)
- Oracle 安全 (6)
- Oracle 开发 (27)
- Oracle 监听 (27)
- Oracle备份恢复 (535)
- Oracle安装升级 (85)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (75)
- PostgreSQL (18)
- PostgreSQL恢复 (6)
- SQL Server (27)
- SQL Server恢复 (8)
- TimesTen (7)
- 达梦数据库 (2)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (36)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (19)
-
最近发表
- 11.2.0.4最新psu-202404
- ORA-600 2131故障处理
- 收集统计信息报ORA-00600 16515问题解决
- rm -rf误删Oracle数据库恢复
- 分布式存储故障导致数据库无法启动故障处理
- read_me_recover_tn勒索恢复
- WINDOWS 下用dg broker搭建ADG(单机to单机)
- 存储故障后oracle报—ORA-01122/ORA-01207故障处理
- Oracle 23ai rm redo*.log恢复
- Oracle 发布计划—包含Oracle 23ai版本
- Oracle 23ai 变化之—-默认数据文件变为bigfile
- PostgreSQL解析wal日志之—walminer
- Oracle 19c/21c最新patch信息-202404
- PostgreSQL恢复系列:pg_filedump批量处理
- PostgreSQL部分主要字典信息
- PostgreSQL恢复系列:pg_filedump恢复字典构造
- PostgreSQL 16 源码安装
- ORA-00742 ORA-00312 恢复
- 数据库open成功后报ORA-00353 ORA-00354错误引起的一系列问题(本质ntfs文件系统异常)
- ORA-600 ktsiseginfo1故障
分类目录归档:ORA-xxxxx
KGL-heap-size-exceeded报错
alert日志报错
2021-04-19T15:06:08.208159+08:00 Memory Notification: Library Cache Object loaded into SGA Heap size 512000K exceeds notification threshold (51200K) Details in trace file /mnt/app/diag/rdbms/xff/xff/trace/xff_ora_12300.trc 2021-04-19T15:06:08.208212+08:00 KGL object name :select DISTINCT(BEGIN_TIME) beginTime, MILE mile, END_TIME endTime, LAST_TIME lastTime, BEGIN_TIME beginTime2, END_TIME endTime2, TEMPERATURE1 temperature1, TEMPERATURE2 temperature2, TEMPERATURE3 temperature3, TEMPERATURE4 temperature4, LATITUDE latitude, LONGITUDE longitude from T_XIFENFEI where VEHICLE_ID = :1 and END_TIME is not null and BEGIN_TIME BETWEEN TO_DATE(:2 , 'yyyy-MM-dd hh24:mi:ss') and TO_DATE(:3 , 'yyyy-MM-dd hh24 Errors in file /mnt/app/diag/rdbms/xff/xff/trace/xff_ora_12300.trc (incident=162089): ORA-00600: internal error code, arguments: [KGL-heap-size-exceeded], [0x1C4782708], [0], [524288008], [], [], [], [], [], [], [], [] Incident details in: /mnt/app/diag/rdbms/xff/xff/incident/incdir_162089/xff_ora_12300_i162089.trc Use ADRCI or Support Workbench to package the incident.
数据库版本信息
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production Build label: RDBMS_12.2.0.1.0_LINUX.X64_170125 ORACLE_HOME: /mnt/app/product/12.2.0/dbhome_1 System name: Linux Node name: izbp1399kdj96ra6bjtwyxz Release: 3.10.0-693.2.2.el7.x86_64 Version: #1 SMP Tue Sep 12 22:26:13 UTC 2017 Machine: x86_64
Call Stack信息
----- Call Stack Trace ----- calling call entry argument values in hex location type point (? means dubious value) -------------------- -------- -------------------- ---------------------------- ksedst()+119 call kgdsdst() 7FFD6CB9A258 000000002 7FFD6CB7BCC0 ? 7FFD6CB7BDD8 ? 000000000 000000082 ? dbkedDefDump()+1200 call ksedst() 000000000 000000002 ? 7FFD6CB7BCC0 ? 7FFD6CB7BDD8 ? 000000000 ? 000000082 ? ksedmp()+259 call dbkedDefDump() 000000003 000000002 7FFD6CB7BCC0 ? 7FFD6CB7BDD8 ? 000000000 ? 000000082 ? dbgexPhaseII()+2130 call ksedmp() 0000003EB 000000002 ? 7FFD6CB7BCC0 ? 7FFD6CB7BDD8 ? 000000000 ? 000000082 ? dbgexExplicitEndInc call dbgexPhaseII() 7F4853DB46C0 7F4853DB77A0 ()+602 7FFD6CB9E388 7FFD6CB7BDD8 ? 000000000 ? 000000082 ? dbgeEndDDEInvocatio call dbgexExplicitEndInc 7F4853DB46C0 7F4853DB77A0 nImpl()+658 () 7FFD6CB9E388 ? 7FFD6CB7BDD8 ? 000000000 ? 000000082 ? kglLargeHeapWarning call dbgeEndDDEInvocatio 7F4853DB46C0 7F4853DB77A0 ()+1544 nImpl() 7F4853DF49A0 7FFD6CB7BDD8 ? 7F4853DF49A0 000000082 ? kglHeapAllocCbk()+2 call kglLargeHeapWarning 7F4853DF49A0 ? 1C4782708 ? 27 () 000000000 01F400060 ? 0B6DADD88 000000082 ? kghalp()+1086 call kglHeapAllocCbk() 7F4853DF49A0 ? 1C4782708 ? 2EE171B70 01F400060 ? 000000058 ? 000000082 ? kkocsRegBindEqvCtxC call kghalp() 7F4853DF49A0 ? 0B6DADD88 ? ommon()+145 2EE171B70 ? 000000001 ? 000000058 ? 0119E7860 ? kkocsAddBeElem()+81 call kkocsRegBindEqvCtxC 7F4853DF49A0 ? 7FFD6CB9F460 ? 1 ommon() 2EE171B70 ? 000000001 ? 000000002 ? 0119E7860 ? kkocsProcBSensPredC call kkocsAddBeElem() 7F484E2EF998 ? 7F484E2EFAC8 ? B()+431 0BBED4798 ? 209DFEA60 ? 000000002 ? 0119E7860 ? qksopVisitPreds()+5 call kkocsProcBSensPredC 7F484E2EF998 ? 7FFD6CB9F640 ? 39 B() 0BBED4798 ? 209DFEA60 ? 000000002 ? 0119E7860 ? kkocsBuildBESelCtx( call qksopVisitPreds() 7F484E2EF998 ? 7FFD6CB9F640 ? )+153 0BBED4798 ? 209DFEA60 ? 000000002 ? 0119E7860 ? kkocsBindSensCheck( call kkocsBuildBESelCtx( 7F484E2EF998 ? 7FFD6CB9F640 ? )+585 ) 0BBED4798 ? 209DFEA60 ? 000000002 ? 0119E7860 ? kkoipt()+901 call kkocsBindSensCheck( 7F484E2EFA20 ? 7FFD6CB9F640 ? ) 0BBED4798 ? 209DFEA60 ? 000000002 ? 0119E7860 ? kkoqbc()+4677 call kkoipt() 7F484E31F1E0 ? 7FFD6CB9F640 ? 0BBED4798 ? 209DFEA60 ? 000000002 ? 000000000 apakkoqb()+183 call kkoqbc() 7F484E31F1E0 ? 7F4853CC2958 ? 0BBED4798 ? 209DFEA60 ? 000000001 000000000 ? apaqbdDescendents() call apakkoqb() 7FFD6CBA1870 ? 000000EB5 ? +503 0BBED4C18 ? 209DFEA60 ? 000000001 ? 000000000 ? apaqbd()+136 call apaqbdDescendents() 7FFD6CBA1870 ? 7F4853CC2958 ? 0BBED4C18 ? 209DFEA60 ? 000000001 ? 000000000 ? apadrv()+1228 call apaqbd() 7FFD6CBA1870 ? 7F4853CC2958 ? 0BBED4C18 ? 209DFEA60 ? 000000001 ? 000000000 ? opitca()+2139 call apadrv() 0BBED4C18 ? 7F4853CC2958 ? 0BBED4C18 ? 209DFEA60 ? 000000001 ? 000000000 ? kksFullTypeCheck()+ call opitca() 7F484E2F2A08 0BBED4C18 86 7FFD6CBA42F0 209DFEA60 ? 000000001 ? 000000000 ? rpiswu2()+627 call kksFullTypeCheck() 7FFD6CBA2FF8 ? 0BBED4C18 ? 7FFD6CBA42F0 ? 209DFEA60 ? 000000001 ? 000000000 ? kksLoadChild()+8003 call rpiswu2() 7FFD6CBA2FF8 ? 0BBED4C18 ? 7FFD6CBA42F0 ? 209DFEA60 ? 7FFD6CBA24F8 ? 00000006A ? kxsGetRuntimeLock() call kksLoadChild() 7F4853DF49A0 0BBED4C18 ? +2029 7FFD6CBA42F0 ? 209DFEA60 ? 7FFD6CBA24F8 ? 00000006A ? kksfbc()+15091 call kxsGetRuntimeLock() 7F4853DF49A0 7F484E2F2A08 7FFD6CBA4270 209DFEA60 ? 7FFD6CBA24F8 ? 1C4782708 opiexe()+2932 call kksfbc() 7F484E2F2A08 7F484E2F2A08 ? 7FFD6CBA4270 ? 209DFEA60 ? 7FFD6CBA24F8 ? 1C4782708 ? kpoal8()+2679 call opiexe() 000000049 7F484E2F2A08 ? 7FFD6CBA58F0 209DFEA60 ? 7FFD6CBA24F8 ? 1C4782708 ? opiodr()+1229 call kpoal8() 00000005E 000000026 7FFD6CBA9300 209DFEA60 ? 7FFD6CBA24F8 ? 1C4782708 ? ttcpip()+1257 call opiodr() 00000005E 000000026 7FFD6CBA9300 000000000 7FFD6CBA24F8 ? 1C4782708 ? opitsk()+1940 call ttcpip() 7F4853E11750 ? 000000026 ? 7FFD6CBA9300 00000017D ? 7FFD6CBA8D50 7FFD6CBA955C opiino()+941 call opitsk() 000000000 000000000 7FFD6CBA9300 ? 00000017D ? 7FFD6CBA8D50 ? 7FFD6CBA955C ? opiodr()+1229 call opiino() 00000003C 000000004 7FFD6CBAAA18 00000017D ? 7FFD6CBA8D50 ? 7FFD6CBA955C ? opidrv()+1021 call opiodr() 00000003C 000000004 7FFD6CBAAA18 000000000 7FFD6CBA8D50 ? 7FFD6CBA955C ? sou2o()+145 call opidrv() 00000003C 000000004 7FFD6CBAAA18 000000000 ? 7FFD6CBA8D50 ? 7FFD6CBA955C ? opimai_real()+455 call sou2o() 7FFD6CBAA9F0 00000003C 000000004 7FFD6CBAAA18 7FFD6CBA8D50 ? 7FFD6CBA955C ? ssthrdmain()+417 call opimai_real() 000000000 7FFD6CBAAD00 000000004 ? 7FFD6CBAAA18 ? 7FFD6CBA8D50 ? 7FFD6CBA955C ? main()+262 call ssthrdmain() 000000000 000000002 7FFD6CBAAD00 000000001 000000000 7FFD6CBA955C ? __libc_start_main() call main() 000000000 7FFD6CBAAF38 +245 7FFD6CBAAD00 ? 000000001 ? 000000000 ? 7FFD6CBA955C ? _start()+41 call __libc_start_main() 000D04D40 000000002 7FFD6CBAAF38 7F484F241555 ? 000000000 ? 7FFD6CBA955C ? --------------------- Binary Stack Dump ---------------------
根据官方描述,该问题是由于Bug 20917487 – CORRUPT KKOCS STRUCTURES AFTER PARTIAL PURGE OF CURSOR HEAP引起
解决方案:
1. 升级数据库到19.1+版本
2. 应用 Patch 20917487
3. Disable adaptive cursor sharing
alter system set "_optimizer_adaptive_cursor_sharing" = false; alter system set "_optimizer_extended_cursor_sharing_rel" = "none";
4. 通过隐含参数设置一个足够大的值
alter system set "_kgl_large_heap_warning_threshold"=83886080 scope=spfile; --一个足够大的值 --or alter system set "_kgl_large_heap_warning_threshold"=0 scope=spfile; alter system set "_kgl_large_heap_assert_threshold"=0 scope=spfile; shutdown immediate startup
参考文档:
ORA-600 [KGL-heap-size-exceeded] Errors in the Alert Log (Doc ID 2628072.1)
Memory Notification: Library Cache Object loaded into SGA / ORA-600 [KGL-heap-size-exceeded] (Doc ID 330239.1)
ORA-21779错误处理
有客户win 10.2.0.4的rac,查看alert日志发现如下错误
Mon May 04 17:25:18 2020 Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl2_smon_2548.trc: ORA-21779: 持续时间不活动 ORA-06512: 在 line 1 Mon May 04 17:25:28 2020 Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl2_smon_2548.trc: ORA-21779: 持续时间不活动 ORA-06512: 在 line 1 Mon May 04 17:25:38 2020 Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl2_smon_2548.trc: ORA-21779: 持续时间不活动 ORA-06512: 在 line 1 Mon May 04 17:25:39 2020 Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl2_smon_2548.trc: ORA-21779: 持续时间不活动 ORA-06512: 在 line 1
查看对应trace
Dump file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl2_smon_2548.trc Sat Aug 31 15:02:39 2019 ORACLE V10.2.0.4.0 - 64bit Production vsnsta=0 vsnsql=14 vsnxtr=3 Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options Windows Server 2003 Version V5.2 Service Pack 2 CPU : 32 - type 8664, 2 Physical Cores Process Affinity : 0x0000000000000000 Memory (Avail/Total): Ph:17543M/32742M, Ph+PgF:19550M/33833M ………… *** 2020-05-04 18:40:35.687 SMON: following errors trapped and ignored: ORA-21779: 持续时间不活动 ORA-06512: 在 line 1 *** 2020-05-04 18:40:45.734 Drop transient type: SYSTPzpEA6olJSImGURLObkiE6w== *** 2020-05-04 18:40:45.734 SMON: following errors trapped and ignored: ORA-21779: 持续时间不活动 ORA-06512: 在 line 1 *** 2020-05-04 18:40:55.812 Drop transient type: SYSTPzpEA6olJSImGURLObkiE6w== *** 2020-05-04 18:40:55.812 SMON: following errors trapped and ignored: ORA-21779: 持续时间不活动 ORA-06512: 在 line 1 *** 2020-05-04 18:41:05.875 Drop transient type: SYSTPzpEA6olJSImGURLObkiE6w== *** 2020-05-04 18:41:05.875 SMON: following errors trapped and ignored: ORA-21779: 持续时间不活动 ORA-06512: 在 line 1
出现该问题是由于oracle的smon进程无法清理掉 transient types,从而出现该问题,根据官方的说法,这个错误是不会影响数据库正常使用,但是可以通过以下方法暂时规避这种错误:
1)通过设置alter system set events ’22834 trace name context forever, level 1′禁止smon清理transient types,从而来规避该错误,但是可能会引起transient types对象越来越多,当然你可以通过以下sql查询出来
select o.* from obj$ o, type$ t where o.oid$ = t.tvoid and bitand(t.properties,8388608) = 8388608 and (sysdate-o.ctime) > 0.0007;
然后删除掉相关记录DROP TYPE “SYSTPf/r2wN4keX7gQKjA3AFMSw==” FORCE;【这个删除不是必须的】
2) flush shared_pool也可以临时规避这个问题
3) 重启数据库,可以暂时规避
具体参考:
SMON: Following Errors Trapped And Ignored ORA-21779 (Doc ID 988663.1)
Receiving ORA-21780 Continuously in the Alert Log and SMON Trace Reports “Drop transient type”. (Doc ID 1081950.1)
Oracle数据库O/S-Error: (OS 1453)错误
客户数据库在运行过程中突然报错
Fri Apr 03 15:00:17 2020 Thread 1 cannot allocate new log, sequence 8201 Private strand flush not complete Current log# 1 seq# 8200 mem# 0: D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO01.LOG Thread 1 advanced to log sequence 8201 (LGWR switch) Current log# 2 seq# 8201 mem# 0: D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO02.LOG Fri Apr 03 20:25:06 2020 Errors in file d:\app\administrator\diag\rdbms\orcl\orcl\trace\orcl_ckpt_2292.trc: ORA-00202: control file: 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\CONTROL01.CTL' ORA-27070: async read/write failed OSD-04006: ReadFile() 失败, 无法读取文件 O/S-Error: (OS 1453) 配额不足,无法完成请求的服务。 Fri Apr 03 20:27:32 2020 Errors in file d:\app\administrator\diag\rdbms\orcl\orcl\trace\orcl_m000_3754676.trc: ORA-00202: control file: 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\CONTROL01.CTL' ORA-27070: async read/write failed OSD-04006: ReadFile() 失败, 无法读取文件 O/S-Error: (OS 1453) 配额不足,无法完成请求的服务。 Fri Apr 03 20:28:42 2020 Errors in file d:\app\administrator\diag\rdbms\orcl\orcl\trace\orcl_ckpt_2292.trc: ORA-00206: error in writing (block 3, # blocks 1) of control file ORA-00202: control file: 'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL' ORA-27072: File I/O error OSD-04008: WriteFile() 失败, 无法写入文件 O/S-Error: (OS 1453) 配额不足,无法完成请求的服务。 ORA-00206: error in writing (block 3, # blocks 1) of control file ORA-00202: control file: 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\CONTROL01.CTL' ORA-27072: File I/O error OSD-04008: WriteFile() 失败, 无法写入文件 O/S-Error: (OS 1453) 配额不足,无法完成请求的服务。 Errors in file d:\app\administrator\diag\rdbms\orcl\orcl\trace\orcl_ckpt_2292.trc: ORA-00221: error on write to control file ORA-00206: error in writing (block 3, # blocks 1) of control file ORA-00202: control file: 'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL' ORA-27072: File I/O error OSD-04008: WriteFile() 失败, 无法写入文件 O/S-Error: (OS 1453) 配额不足,无法完成请求的服务。 ORA-00206: error in writing (block 3, # blocks 1) of control file ORA-00202: control file: 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\CONTROL01.CTL' ORA-27072: File I/O error OSD-04008: WriteFile() 失败, 无法写入文件 O/S-Error: (OS 1453) 配额不足,无法完成请求的服务。 CKPT (ospid: 2292): terminating the instance due to error 221 Fri Apr 03 20:28:42 2020 opiodr aborting process unknown ospid (3753944) as a result of ORA-1092
这个错误提示io error,但是有O/S-Error: (OS 1453)的错误,根据经验判断很可能不是真的io错误,查询mos发现相关记录,发现在How To Resolve (OS 1453) Insufficient Quota To Complete The Requested Service Errors (Doc ID 758595.1)文章中有类似描述.
是由于oracle请求的过程中发现该应用可以使用的物理内存不足导致.该数据库恰好是32位的,最简单的做法就是换64位数据库,可以大大的避免这种错误发生
SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for 32-bit Windows: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production