My Oracle Support Banner

How to Load SQL Plans into SQL Plan Management (SPM) from the Automatic Workload Repository (AWR) (Doc ID 789888.1)

Last updated on JUNE 12, 2019

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.2 to 12.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


The goal of the document is to provide steps for loading a sql plan into sql plan baseline from AWR.  Please remember that license is required to use Oracle Diagnostics Pack:


NOTE: Oracle Diagnostics Pack (and Oracle Tuning Pack) is available with Enterprise Edition ONLY.

For further details of pack licensing see:

Oracle® Database Licensing Information
12c Release 1 (12.1)
Part number E17614-08
Chapter 1 1 Oracle Database Editions
Feature Availability by Edition



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
 Example 1
 Example 2
 Example 3
 Verify how many sqls got loaded in the STS.
 Verify the sql statements and its sql_id in the STS
 Verify the execution Plan of a SQL_ID in the STS for an user sql
 Verify the Plan baseline to check how many plans before
 2. Load the Sql Plan Baseline from STS
 Verify the Plan baseline to check how many plans in plan baseline

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