Monday, January 20, 2014
Auto Task Status
EXEC DBMS_AUTO_TASK_ADMIN.disable;
and if you query, you might see something like this.
col client_name for a50
col status for a10
select client_name,status FROM dba_autotask_client ;
CLIENT_NAME STATUS
-------------------------------------------------- ----------
auto optimizer stats collection ENABLED
auto space advisor ENABLED
sql tuning advisor ENABLED
the above may not give you the clear picture.
You the below query to get the autotask_status of these jobs
col window_name for a20
col window_next_time for a25
select window_name, to_char(cast(window_next_time as date),'DD/MM/YYYY HH24:MI:SS') window_next_time,
window_active, autotask_status, optimizer_stats, segment_advisor, sql_tune_advisor,
health_monitor from DBA_AUTOTASK_WINDOW_CLIENTS ;
You can also individually disable them.
begin
dbms_auto_task_admin.disable( client_name => 'sql tuning advisor',
operation => NULL,
window_name => NULL);
end;
/
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment