土日のオプティマイザ統計収集を無効化
月の自動SQLチューニングを無効化
select CLIENT_NAME from DBA_AUTOTASK_CLIENT;
BEGIN
dbms_auto_task_admin.disable(
client_name => 'auto optimizer stats collection',
operation => NULL,
window_name => 'SATURDAY_WINDOW');
END;
/
BEGIN
dbms_auto_task_admin.disable(
client_name => 'auto optimizer stats collection',
operation => NULL,
window_name => 'SUNDAY_WINDOW');
END;
/
BEGIN
dbms_auto_task_admin.disable(
client_name => 'sql tuning advisor',
operation => NULL,
window_name => 'MONDAY_WINDOW');
END;
/
select * from DBA_AUTOTASK_WINDOW_CLIENTS;
select * from DBA_SCHEDULER_WINDOWS;