Enabling and Disabling Maintenance Tasks for all Maintenance Windows
You can disable a particular automated maintenance task for all maintenance windows with a single operation. You do so by calling the DISABLE
procedure of the DBMS_AUTO_TASK_ADMIN
PL/SQL package without supplying the window_name
argument. For example, you can completely disable the Automatic SQL Tuning Advisor task as follows:
BEGIN dbms_auto_task_admin.disable( client_name => 'sql tuning advisor', operation => NULL, window_name => NULL); END; /
To enable this maintenance task again, use the ENABLE
procedure, as follows:
BEGIN dbms_auto_task_admin.enable( client_name => 'sql tuning advisor', operation => NULL, window_name => NULL); END; /
The task names to use for the client_name
argument are listed in the DBA_AUTOTASK_CLIENT
database dictionary view.
To enable or disable all automated maintenance tasks for all windows, call the ENABLE
or DISABLE
procedure with no arguments.
EXECUTE DBMS_AUTO_TASK_ADMIN.DISABLE;
'Oracle > admin' 카테고리의 다른 글
Mview log 관리 (0) | 2017.02.23 |
---|---|
RAC 클러스터 환경을 안정화하기 위한 주요 11가지 방안 (문서 ID 1575936.1) (0) | 2016.12.13 |
tablespace,datafile 생성 SQL (마이그레이션시 참고용) (0) | 2016.11.14 |
2pc_pending 처리 (0) | 2016.11.07 |
Oracle Streams 상태조회 (0) | 2016.11.02 |