View and process Oraclejob Conditions

Source: Internet
Author: User
Note: When the execution cycle of a job is three minutes, and you set the parameter job_queue_interval600 (10 minutes), and you only have one SNP process, your JOB

Note: When the execution cycle of a job is three minutes, and you set the parameter job_queue_interval = 600 (10 minutes), and you only have one SNP process, your JOB

Exec dbms_job.broken (23, false );
Commit;

Select t. *, t. rowid from dba_jobs t;

Select t. *, t. rowid from sys. user_jobs t;

Select job, last_date, next_date, broken, interval, failures
From user_jobs;

When a job returns an error, Oracle tries to execute it again. The first attempt is one minute later, the second attempt is two minutes later, and the third attempt is four minutes later, and so on. The cycle of each attempt is doubled until the next running time arrives, and the attempt is made again. When the attempt fails 16 times, oracle automatically marks the job as a broken and does not execute this task.

Note: When the execution cycle of a job is three minutes, and you set the parameter job_queue_interval = 600 (10 minutes), and you only have one SNP process, your JOB will be executed once every 10 minutes. If it fails 16 times, it will be marked as a broken. Because the execution cycle of your job is limited by the wake-up cycle of the SNP process. Therefore, the interval of each attempt will not multiply.

Select job, last_date, next_date, broken, interval, failures
From user_jobs;

What is the result?

Note: If the number of failed jobs in failures exceeds 15, the job is stopped.
If broken shows Y, the job is unavailable.

If the JOB fails to run 16 times, the JOB will automatically stop.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.