简体   繁体   English

如何通过企业管理器Oracle删除计划作业

[英]How to delete schedule jobs through Enterprise Manager oracle

I am using oracle database 11g. 我正在使用oracle数据库11g。 I created 2 schedule jobs of backup through Enterprise Manager. 我通过企业管理器创建了2个备份计划作业。 Now when I delete jobs then I am getting following error 现在,当我删除作业时,出现以下错误

The specified job, job run or execution is still active. It must finish running, or be stopped before it can be deleted. Filter on status 'Active' to see active executions.

How to delete jobs? 如何删除工作?

To forcefully drop the Job even if it is running then Use the following code: 要强制删除作业(即使正在运行),请使用以下代码:

dbms_scheduler.drop_job (<job_name>, force => true);

To drop the job after it complete its current execution work, Use the following code: 要在完成当前执行工作后删除该作业,请使用以下代码:

dbms_scheduler.drop_job (<job_name>, defer => true);

Cheers!! 干杯!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM