1DECLARE
2 l_job_exists NUMBER;
3BEGIN
4 SELECT count(*) INTO l_job_exists
5 FROM all_scheduler_jobs WHERE job_name = 'job_name' AND OWNER = 'owner';
6 IF l_job_exists = 1 THEN
7 dbms_scheduler.drop_job(job_name => 'job_name');
8 END IF;
9END;
10/
11BEGIN DBMS_SCHEDULER.CREATE_JOB(job_name => '"owner"."job_name"', ...); END;