My Oracle Support Banner

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

Last updated on DECEMBER 04, 2019

Applies to:

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

Symptoms

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.

Changes

 You recently upgraded Oracle Database from a prior release.

Cause

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
Symptoms
Changes
Cause
Solution
References


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