How to Extract Good Plan Hash Value for SQL Statement from AWR Warehouse and Load to SPM Baseline
(Doc ID 2382833.1)
Last updated on AUGUST 04, 2018
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 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.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!