My Oracle Support Banner

Adaptive Execution Plan, Invoked from PL/SQL, Slower after Upgrade to 12.2 (Doc ID 2604818.1)

Last updated on FEBRUARY 21, 2024

Applies to:

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


A query, invoked from a PL/SQL stored procedure, produces an adaptive execution plan which takes far more elapsed time than it had prior to database upgrade.

You notice the presence of the STATISTICS COLLECTOR operation within the execution plan, which lets you know that this is an adaptive plan.  You also notice that a NESTED LOOPS operation is present.

The NESTED LOOPS operation does not appear if you set OPTIMIZER_FEATURES_ENABLE, at the session level, back to the release level, prior to upgrade.

You also notice that you cannot reproduce this slowness from SQL*Plus.  Only when you invoke the query from the stored procedure does it take far more elapsed time.


 You recently upgraded Oracle Database from a prior release.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.