High Number Of Child Cursors With Literal Replacement Causing Library Cache Lock Contention

(Doc ID 2359242.1)

Last updated on FEBRUARY 09, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 to 12.2.0.1 [Release 12.1 to 12.2]
Information in this document applies to any platform.

Symptoms

 In 12.1.0.2 and 12.2.0.1 a high library cache lock contention on $BUILD$ object for a non-shared cursor is encountered. Following symptoms are noticed:

AND "TABLE_A"."COLUMN1"='literal0001') OR ("TABLE_A"."COLUMN2" IS NOT NULL AND 0=:SYS_B_07 AND "TABLE_A"."COLUMN1"='literal0002'))))

Changes

 Upgrade to 12.1.0.2 or 12.2.0.1 version and use of  CURSOR_SHARING=FORCE

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