Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Oracle
I have a Stored procedure which needs to be run every minute, for that I have a job in Oracle 10g. I have created a job
 
BEGIN
  -- Job defined entirely by the CREATE JOB procedure.
  DBMS_SCHEDULER.create_job (
    job_name        => 'Update_Status',
    job_type        => 'PLSQL_BLOCK',
    job_action      => 'BEGIN ;updateStatus; END;',
    start_date      => SYSTIMESTAMP,
    repeat_interval => 'freq=minutely; bysecond=0;',
    end_date        => NULL,
    enabled         => TRUE,
  auto_drop          =>   FALSE,
    comments        => 'Job defined entirely by the CREATE JOB procedure.');
END;
This above job needs to run for every one minute. But the status is not being updated? I do not know whether the job is stared or not how to get the status of the job, How to make it run?
Posted 10-Jul-13 2:45am
sacraj1K
Edited 11-Jul-13 0:41am
v2
Comments
ryanb31 at 10-Jul-13 7:49am
   
I don't know Oracle but SQL has a scheduler feature built in. I would imagine Oracle does too.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 11 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100