Specifying when a failed job is to retry running

Posted on 2008-11-12
Last Modified: 2013-12-19
Using Oracle's DBMS_SCHEDULER is there any way to specify when a failed job is to retry running again?  Our scheduled jobs are of the variety that if they fail, we would like to wait an hour before retrying running them again.  The Oracle online documentation on this seems to indicate that a scheduled job fail will be instantly retried to run again (up to max num retries).

                job_name            => strJobName
               ,job_type              => strJobType
               ,job_action          => strJobAction
               ,number_of_arguments => 1
               ,start_date          => dteStart
               ,end_date            => dteEnd
               ,repeat_interval     => 'FREQ=HOURLY;INTERVAL=1'
               ,enabled             => FALSE
               ,auto_drop           => FALSE
               ,comments            => strComments
              DBMS_SCHEDULER.set_attribute (
                name        => strJobName
               ,attribute   => 'max_failures'
               ,value       =>  numMaxRetryAttempts
Question by:crayola3
    LVL 23

    Expert Comment

    I have to concur that the restart cannot be deferred -- except in the following condition:

    If restartable is set to FALSE for the job:
    If the job is a run-once job and auto_drop is set to TRUE, the job run is done and the job is dropped.
    If the job is a run-once job and auto_drop is set to FALSE, the job is disabled and the job state is set to 'STOPPED'.
    If the job is a repeating job, the Scheduler schedules the next job run and the job state is set to 'SCHEDULED'.
    LVL 23

    Assisted Solution


    Accepted Solution

    Confirms what I had thought about how retry works for dbms_scheduler.
    LVL 28

    Expert Comment

    in simple terms, there is no answer as of now for your requirement with 10g dbms_scheduler. I mean dbms_scheduler does not have an option for your requirement as far as i am aware. I wish to some option/solution to your requirement in oracle 11g version.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
    I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
    This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
    This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now