How to Retrieve the Outline Data from a Stored Execution Plan (Doc ID 736529.1)

Last updated on SEPTEMBER 15, 2016

Applies to:

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

Goal

How  to retrieve the stored plan from a past execution that can be used as Outline Data f.

DBA_HIST_SQL_PLAN and V$SQL_PLAN store the Optimizer OutLine Data in a CLOB-column (OTHER_XML).
The below script extracts the information from the column OTHER_XML.

Solution

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