set linesize 200
col window_name for a20
col window_next_time for a40
SELECT window_name, window_next_time, window_active, autotask_status, optimizer_stats, segment_advisor, sql_tune_advisor
FROM dba_autotask_window_clients;
(実行結果例)
WINDOW_NAME WINDOW_NEXT_TIME WINDO AUTOTASK OPTIMIZE SEGMENT_ SQL_TUNE
MONDAY_WINDOW 09-JAN-12 10.00.00.000000 PM JAPAN FALSE ENABLED ENABLED ENABLED ENABLED
TUESDAY_WINDOW 10-JAN-12 10.00.00.000000 PM JAPAN FALSE ENABLED ENABLED ENABLED ENABLED
WEDNESDAY_WINDOW 11-JAN-12 10.00.00.000000 PM JAPAN FALSE ENABLED ENABLED ENABLED ENABLED
THURSDAY_WINDOW 05-JAN-12 10.00.00.000000 PM JAPAN FALSE ENABLED ENABLED ENABLED ENABLED
FRIDAY_WINDOW 06-JAN-12 10.00.00.000000 PM JAPAN FALSE ENABLED ENABLED ENABLED ENABLED
SATURDAY_WINDOW 07-JAN-12 06.00.00.000000 AM JAPAN FALSE ENABLED ENABLED ENABLED ENABLED
SUNDAY_WINDOW 08-JAN-12 06.00.00.000000 AM JAPAN FALSE ENABLED ENABLED ENABLED ENABLED
exec dbms_auto_task_admin.disable;
exec dbms_auto_task_admin.enable;
BEGIN
dbms_auto_task_admin.disable(client_name => 'auto optimizer stats collection',operation => NULL,window_name => NULL);
dbms_auto_task_admin.disable(client_name => 'auto space advisor' ,operation => NULL,window_name => NULL);
dbms_auto_task_admin.disable(client_name => 'sql tuning advisor' ,operation => NULL,window_name => NULL);
END;
/
BEGIN
dbms_auto_task_admin.enable(client_name => 'auto optimizer stats collection', operation => NULL, window_name => NULL);
dbms_auto_task_admin.enable(client_name => 'auto space advisor' , operation => NULL, window_name => NULL);
dbms_auto_task_admin.enable(client_name => 'sql tuning advisor' , operation => NULL, window_name => NULL);
END;
/
SQL> !uname -a
SunOS solaris101 5.10 Generic_142910-17 i86pc i386 i86pc
SQL> !cat /etc/release
Oracle Solaris 10 9/10 s10x_u9wos_14a X86
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 11 August 2010
SQL> !isainfo -v
64-bit amd64 applications
ssse3 mon sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
ssse3 mon sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Solaris: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production