DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: dbms_job.submit

  1. #1
    Join Date
    Sep 2002
    Posts
    411

    dbms_job.submit

    can you use dbms_job package to schedule to run a package???

    I think dbms_job only can submit a procedure, but what if I have a package????

    thanks

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092

  3. #3
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    you can run a procedure inside a package with dbms_job, if that's what you mean.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  4. #4
    Join Date
    Sep 2002
    Posts
    411
    slimdave,

    right, I have to procedure inside the package and I need to schedule to run the this package

  5. #5
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    declare
    job# number;
    begin
    dbms_job.submit
    (
    job#,
    'begin my_package.my_procedure;end;'
    );
    end;


    ... with whatever other dbms_job.submit parameters you need
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width