How to Extract Good Plan Hash Value for SQL Statement from AWR Warehouse and Load to SPM Baseline
Last updated on APRIL 14, 2018
Applies to:Oracle Database - Enterprise Edition - Version 188.8.131.52 and later
Information in this document applies to any platform.
Users can store the old out of retention historical data to AWR warehouse so that it can be used whenever required.
However, it is a limitation with SQLT which does not look for plans from AWR warehouse when good plans are available in AWR warehouse.
AWR warehouse apparently setup in separate database which has the repository data for all source databases it is registered.
When SQLT is executed from one of the sources , it cannot look from AWR warehouse which is outside of source environment.
DB links have to be created to connect to AWR warehouse DB to extract the plan details for SQLs that are older than the local AWR info.
This document provides the manual scripts to extract the good plans for the SQL statements which can be loaded to SPM baselines of source database.
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