ORA-04031: unable to allocate XYZ bytes of shared memory ("shared pool", "unknown object", "sgaheap(2,0)", "kzsc:kzsctob_co") When SELECTing From Table With OLS Policy (Doc ID 2173851.1)

Last updated on AUGUST 18, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

SELECTing from a table protected by an Oracle Label Security (OLS) policy fails with:

ORA-04031: unable to allocate 4194328 bytes of shared memory ("shared pool", "unknown object", "sgaheap(2,0)", "kzsc:kzsctob_co")

Querying V$SGASTAT over time will show that "kzsc:kzscstob_co" is growing:

 

Changes

 Upgraded to 12.1.0.2.

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