【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>
--关闭统计信息
col client_name for a60
select client_name,status from DBA_AUTOTASK_CLIENT;
CLIENT_NAME STATUS
------------------------------------------------------------ ----------------
auto optimizer stats collection ENABLED
auto space advisor ENABLED
sql tuning advisor ENABLED
begin
DBMS_AUTO_TASK_ADMIN.DISABLE(client_name => 'auto optimizer stats collection',
operation => NULL,
window_name => NULL);
end;
/
PL/SQL procedure successfully completed.
--启用统计信息收集
select client_name,status from DBA_AUTOTASK_CLIENT;
CLIENT_NAME STATUS
------------------------------------------------------------ ----------------
auto optimizer stats collection DISABLED
auto space advisor ENABLED
sql tuning advisor ENABLED
SQL>
begin
DBMS_AUTO_TASK_ADMIN.ENABLE(client_name => 'auto optimizer stats collection',
operation => NULL,
window_name => NULL);
end;
/
PL/SQL procedure successfully completed.
select client_name,status from DBA_AUTOTASK_CLIENT;
CLIENT_NAME STATUS
------------------------------------------------------------ ----------------
auto optimizer stats collection ENABLED
auto space advisor ENABLED
sql tuning advisor ENABLED
SQL>
重庆思庄oracle 12c OCP认证培训周末班将于2020年2月15日开课,更多详情请访问思庄网站咨询课程老师!
来源:oschina
链接:https://my.oschina.net/u/3635497/blog/3153124