我设法从 DBMS_SCHEDULER 运行作业。但是从昨天开始运行,我无法阻止它。该工作的代码是:
begin
sys.dbms_scheduler.create_job(job_name => 'FTREC.EXE_1',
job_type => 'EXECUTABLE',
job_action => 'C:\Users\WWLSERVER\Desktop\test.bat',
start_date => to_date(null),
repeat_interval => '',
end_date => to_date(null),
job_class => 'MY_JOB_CLASS',
enabled => false,
auto_drop => false,
comments => '');
end;
我试图停止工作/放弃它,但没有运气。
当我运行时:
begin
dbms_scheduler.stop_job('FTREC.EXE_1',true);
end;
我没有错误,但是
SELECT * FROM USER_SCHEDULER_RUNNING_JOBS;
返回 EXE_1,如果我尝试放弃这份工作
begin
dbms_scheduler.drop_job('FTREC.EXE_1',true);
end;
我收到此错误:
ORA-27478: job "FTREC.EXE_1" is running
ORA-06512: at "SYS.DBMS_ISCHED", line 213
ORA-06512: at "SYS.DBMS_SCHEDULER", line 657
ORA-06512: at line 2
我已经重新启动了服务器,但我没有运气。有什么想法可以停止/放弃这项工作吗?