欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

统计信息搜集禁用/启用

程序员文章站 2022-07-10 13:39:04
禁用 1* select LAST_DATE,NEXT_DATE from dba_jobs where job=45SQL> begin 2 dbms_job.broken(45,true); 3 end; 4 / PL/SQL procedure successfully completed. ......

禁用
1* select last_date,next_date from dba_jobs where job=45
sql> begin
2 dbms_job.broken(45,true);
3 end;
4 /

pl/sql procedure successfully completed.

sql> commit;

commit complete.

sql> select last_date,next_date from dba_jobs where job=45;

last_date next_date
------------------- -------------------
2017-01-15 03:00:01 4000-01-01 00:00:00

启用
begin
dbms_job.broken(45,false);
end;
/
commit;