job scheduling - Oracle Scheduler stop job gives an exception when the job is not running -


When I'm not working, I'm getting an exception when trying to stop a scheduled job in Oracle .

This is probably normal but in my case I need to stop and disable the job before running some DDL operations.

If I check the status of the job first then there is no guarantee that it starts immediately after the investigation I do not know it is clear.

Any ideas about how to proceed?

Thanks

- stop and disable jobs about the job Unblock exceptions, do not exist, or are unknown because it is possible - the job is still over. This means that there will be no exception here, even if the job name is wrong V_not_running declares an exception; V_does_not_exist exceptions; V_unknown_job exception; Progress exception_init (v_not_running, -27366); Program exception exception_it (v_does_not_exist, -27476); Pragma exception_init (v_unknown_job, -27475); Start getting started dbms_scheduler.stop_job ('TEST_JOB'); Exception when v_not_running or v_does_not_exist or v_unknown_job then zero; End; Start dbms_scheduler.disable ('TEST_JOB'); Exception when v_not_running or v_does_not_exist or v_unknown_job then zero; End; End; /

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -