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

Thread: Automatic Procedure Execution

  1. #1
    Join Date
    Feb 2001
    Location
    UAE
    Posts
    304
    I want to execute a procedure everyday at 12 O'Clock automatically. This procedure has some parameters as well. Can somebody tell me step by step how can I go ahead about it? I have Oracle 8.1.6 installed on Sun Solaris.
    Agasimani
    OCP(10g/9i/8i/8)

  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    program it with dbms_job, something like

    in sql*plus

    variable jobno number
    exec dbms_job.submit(JOB => :jobno, -
    WHAT => 'YOUR_PROCEDURE;',-
    NEXT_DATE => trunc(SYSDATE+1,'DD')+1/12,-
    INTERVAL => 'trunc(SYSDATE+1, ''DD''+1/12');

    change next_date and interval for your own needs

    remember set init.ora parameter job_processes to a value bigger than 0 since these scheduled processes are run by job processes

  3. #3
    Join Date
    Aug 2000
    Posts
    462
    Could you schedule it as an OS (cron) job?
    Oracle DBA and Developer

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