Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DBMS_JOB - running job only once

JackKDec 7 2010 — edited Dec 9 2010
Hi,
I'm runinng the job with the function:
function do_import_job(
  p_file         varchar2
) return number is
  JobNo number;
begin
  DBMS_JOB.SUBMIT (
    job          => JobNo,
    what         => 'BEGIN rog_pck_import_2.import_file('''||p_file||'''); END;',
    next_date => sysdate,
    interval  => 'null'
  );
  commit;
  return JobNo;
end do_import_job;
The job is running good. But when it goes to the end it's still "active" and is running again within a moment. How to prevent this? I wants the job to run only once and then disapear.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2011
Added on Dec 7 2010
13 comments
4,096 views