如何移除oracle 定时任务

1,查看当前的任务情况

select job,log_user,priv_user,last_date,next_date,interval from user_jobs;
JOB LOG_USER PRIV_USER LAST_DATE NEXT_DATE
---------- ------------------------------ ------------------------------ --------- ---------
INTERVAL
---------------------------------------------------------------------------------------------------------------
3026 SYS SYS 12-MAY-09 12-MAY-09
trunc(SYSDATE+1/24,'HH')

可以看到具体任务为statspack,job号为3026

2,删除任务

SQL> execute dbms_job.remove('3026');

PL/SQL procedure successfully completed.

SQL> select job,log_user,priv_user,last_date,next_date,interval from user_jobs;

no rows selected

你可能感兴趣的:(oracle)