ORA-4031 Against Shared Pool With Huge Memory Allocations To KGLH0 (Doc ID 1621829.1)

Last updated on AUGUST 07, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 to 11.2.0.3 [Release 11.2]
Oracle Database - Enterprise Edition - Version 11.2.0.4 to 11.2.0.4 [Release 11.2]
Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.2 [Release 11.2]
Information in this document applies to any platform.

Symptoms

Getting ORA-4031 errors against shared pool when in one subpool the KGLH0 heap is reaching GBs of memory. For example:

"KGLH0                    " 163253612640


<Patch 13456573>, <Patch 17804522>, <Patch 17606989> and <Patch 14770516> containing fixes for bugs:

<Bug 13456573> - Many child cursors / ORA-4031 with large allocation in KGLH0 using extended cursor sharing
<Bug 13054713> - High version_count / ORA-942 on statements where DDLs happen over the objects.
<Bug 14176247> - Many child cursors using Adaptive Cursor Sharing with binds (due to BIND_EQUIV_FAILURE)
<Bug 14770516> - SGA memory leak in KGLH0 under shared pool

were installed with no results.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms