暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

How do I identify and remove a job from the job queue ?

2011-01-01
648

The Oracle (tm) Users' Co-Operative FAQ

How do I identify and remove a job from the job queue.


Author's name: Dan Harvey

Author's Email:

Date written: 5th March 2003

Oracle version(s): 7.3.4

How do I identify and remove a job from the job queue.


From SQL+, execute the following statement to identify all jobs and what they do in your DMBS_JOBS job queue:

	SELECT
		job,
		what,
		last_date,
		last_sec,
		next_date,
		next_sec
	FROM 
		ALL_JOBS;

Then select the one(s) you wish to remove (permanently) and execute the following anonymous block (substituting the job number for job):

	begin
		dbms_job.remove(job);
	end;

Note that any currently running jobs (check date/times returned from your select) will not be removed until it finishes.


Further reading: N/A



最后修改时间:2020-04-16 15:12:48
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论