SELECT 'sys_priv', privilege FROM dba_sys_privs WHERE grantee = 'AVTUNE_PKG_ROLE'
UNION
SELECT 'obj_priv', table_name OBJECT FROM dba_tab_privs WHERE grantee = 'AVTUNE_PKG_ROLE'
ORDER BY 1,2;
Create an aggregation cache with the specified level
dbms_avtune.auto_cache_create(
av_name IN dbms_id,
level_group IN sys.dbms_avtune.level_list,
av_owner IN dbms_id := sys_context('userenv','current_schema'),
force_size IN BOOLEAN := FALSE);
dbms_avtune.auto_cache_enable(
av_name IN dbms_id,
refresh_intvl IN INT := NULL,
num_queries IN INT := NULL,
avg_query_time IN NUMBER := NULL,
total_cache_pct IN INT := NULL,
init_max_pct IN INT := NULL,
init_numhier IN INT := NULL,
init_fixed_lvls IN level_list := NULL,
run_mode IN VARCHAR2 := atu_implement,
av_owner IN dbms_id := sys_context('userenv','current_schema');
tuning_intvl IN INT := NULL,
purge_archive_intvl IN INTERVAL DAY TO SECOND := NULL,
single_cache_pct IN INT := NULL,
cache_mode IN VARCHAR2 := NULL,
archive_intvl IN INT := NULL,
num_tunes IN INT := NULL,
cache_create_callback IN callback := NULL,
create_cbk_args IN clob_sequenc := NULL,
cache_refresh_callback IN callback := NULL,
refresh_cbk_args IN clob_sequence := NULL,
init_star_caches IN BOOLEAN := TRUE);
dbms_avtune.auto_cache_initialize
av_name IN dbms_id,
av_owner IN dbms_id := sys_context('userenv','current_schema'),
init_max_pct IN INT := NULL,
init_numhier IN INT := NULL,
init_fixed_lvls IN level_list := NULL,
init_star_caches IN BOOLEAN := TRUE);
Modifies stored auto cache and tuning parameters set in the enable call
dbms_avtune.auto_cache_modify(
av_name IN VARCHAR2,
refresh_intvl IN NUMBER := NULL,
num_queries IN NUMBER := NULL,
avg_query_time IN NUMBER := NULL,
total_cache_pct IN NUMBER := NULL,
av_owner IN VARCHAR2 :=
sys_context('userenv','current_schema'),
tuning_intvl IN INT := NULL,
purge_archive_intvl IN INTERVAL DAY TO SECOND := NULL,
single_cache_pct IN INT := NULL,
cache_mode IN VARCHAR2 := NULL,
archive_intvl IN INT := NULL,
num_tunes IN INT := NULL,
cache_create_callback IN callback := NULL,
create_cbk_args IN clob_sequence := NULL,
cache_refresh_callback IN callback := NULL,
refresh_cbk_args IN clob_sequence := NULL);
dbms_avtune.auto_cache_remove(
av_name IN dbms_id,
level_group IN sys.dbms_avtune.level_list,
av_owner IN dbms_id := sys_context('userenv','current_schema');
dbms_avtune.auto_cache_star_enable(
dim_name IN dbms_id,
av_name IN dbms_id := NULL,
refresh_intvl IN INT := NULL,
run_mode IN VARCHAR2 := atu_implement,
dim_owner IN dbms_id := sys_context('userenv','current_schema'),
av_owner IN dbms_id := NULL);
dbms_avtune.auto_cache_star_modify(
dim_name IN dbms_id,
av_name IN dbms_id := NULL,
refresh_intvl IN INT := NULL,
dim_owner IN VARCHAR2,
av_owner IN VARCHAR2);
Updates the query log archive and looks for/create cache tuples
dbms_avtune.auto_cache_tune(
av_name IN dbms_id,
num_queries IN INT := NULL,
avg_query_time IN NUMBER := NULL,
run_mode IN VARCHAR2 := atu_implement,
av_owner IN dbms_id :=
sys_context('userenv','current_schema'),
num_tunes IN INT := NULL,
update_archive IN BOOLEAN := FALSE);