Before you start: licenses
Several performance features need extra licenses on Enterprise Edition. Using them without the license is a compliance problem, even if the query works.
- Diagnostics Pack: AWR, ASH and every
dba_hist_view. - Tuning Pack: SQL Monitor reports, SQL Tuning Advisor and SQL Profiles.
SHOW PARAMETER control_management_pack_access
DIAGNOSTIC+TUNING: both packs are enabled.DIAGNOSTIC: AWR and ASH only.NONE: do not use the features above. Use Statspack and thev$views instead.
The parameter shows what is enabled, not what was bought. If you are not sure the site is licensed, ask before you use these features.