How to Monitor When Oracle Management Packs Are Activated or Used
Oracle provides multiple internal views, advisor logs, and AWR/ADDM activity indicators that reveal accidental or unauthorized use of:
- Diagnostics Pack
- Tuning Pack
Below is a complete monitoring framework.
✅ 1. Check if Diagnostic/Tuning Features Were Used (Primary Indicator)
Oracle logs all usage in DBA_FEATURE_USAGE_STATISTICS.
Run:
What to look for:
- DETECTED_USAGES > 0 → feature was used
- LAST_USAGE_DATE not null → pack was accessed
- If you disabled packs but this still updates → OEM or some script is still invoking features
This is the most authoritative licensing indicator.
✅ 2. Monitor the Management Pack Parameter (Active Status)
Run:
SHOW PARAMETER control_management_pack_access;
Expected safe value:
NONE
If it changes to:
DIAGNOSTICDIAGNOSTIC+TUNING
➡️ Packs are active and billable.
For automated monitoring, query:
✅ 3. Check if AWR Snapshots Are Being Generated (Diagnostics Pack Usage)
If snapshots exist, AWR is active → Diagnostic Pack is considered used.
If you see new snapshots after disabling:
➡️ Something is still collecting AWR data.
✅ 4. Monitor ADDM Execution (Diagnostics Pack)
If any task appears → Diagnostics Pack used.
✅ 5. Monitor SQL Tuning Advisor Activity (Tuning Pack)
If tasks ran → Tuning Pack usage triggered.
Also check:
SELECT COUNT(*) FROM DBA_ADVISOR_LOG WHERE advisor_name='SQL TUNING ADVISOR';
✅ 6. Monitor SQL Access Advisor Activity (Tuning Pack)
Any appearance = Tuning Pack usage.
✅ 7. Detect Automatic SQL Monitoring (Diagnostics + Tuning Pack)
SQL Monitoring is part of Tuning Pack.
Check ASH/SQL Monitor usage:
If rows appear → Tuning Pack active.
✅ 8. OEM Activity Monitoring (Common Source of Accidental Usage)
OEM may trigger pack usage even if DBAs don't run anything manually.
Check OEM repository:
For AWR/ASH report generation:
For SQL Tuning Advisor tasks created by OEM:
If OEM is generating:
- AWR Reports
- ADDM Reports
- SQL Tuning tasks
➡️ Packs are being used even if parameter says NONE.
✅ 9. Enable Audit Monitoring for Parameter Changes
Track if someone re-enabled packs:
AUDIT ALTER SYSTEM;
Then check:
This is extremely valuable during SOX audits.
📈 10. Recommended Scheduled Monitoring Script
Run daily/weekly through OEM/cron.
Generate alerts if ANY usage is detected.
🎯 Summary – What You Must Monitor
| Check Area | What It Detects | Indicates Usage |
|---|---|---|
| DBA_FEATURE_USAGE_STATISTICS | Core features | Primary licensing indicator |
| DBA_HIST_SNAPSHOT | AWR snapshots | Diagnostics Pack |
| ADDM Tasks | Diagnostics Pack | Yes |
| SQL Tuning Advisor | Tuning Pack | Yes |
| SQL Access Advisor | Tuning Pack | Yes |
| SQL Monitoring | Tuning Pack | Yes |
| OEM Activity | Auto usage triggers | Very common |
| Audit of parameter change | Re-enabling packs | Compliance breach |