Oracle Database 26ai will be available on generic Linux platforms in January and soon on AIX and Windows
Purpose
Provides limited control of manageability features to be used even when diagnostic and tuning pack licenses are not available.
What this verbiage actually means, given the package is undocumented, is far from clear.
Note: This functionality also exists in DBMS_WORKLOAD_REPOSITORY's
MODIFY_SNAPSHOT_SETTINGS proc and the DBMS_WORKLOAD_REPOISTORY a more logical place for a DBA to make any changes to AWR settings.
dbms_management_packs.modify_awr_settings(
retention IN NUMBER DEFAULT NULL, -- in minutes (1 day-100 yrs)
interval IN NUMBER DEFAULT NULL); -- in minutes (10 min-100 yrs)
set linesize 121
col retention format a20
col snap_interval format a20
SELECT retention, snap_interval, topnsql
FROM wrm$_wr_control;
DBMS_MANAGEMENT_PACKS.REPORT('DIAGNOSTIC')
-----------------------------------------------------------
List of objects to be deleted by DBMS_MANAGEMENT_PACK.PURGE
Requested license level is diagnostic
-----------------------------------------------------------
Automatic SQL Tuning Task executions
total of 19 task executoins to be deleted
Automatic SQL Tuning Task status
automatic sql tuning task will be disabled in all maintenance windows
DBMS_MANAGEMENT_PACKS.REPORT('DIAGNOSTIC_TUNING')
-----------------------------------------------------------
List of objects to be deleted by DBMS_MANAGEMENT_PACK.PURGE
Requested license level is diagnostic
-----------------------------------------------------------