亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

DBMS_JOBS 連續失敗16次自動Broken

發布時間:2020-08-05 06:27:05 來源:ITPUB博客 閱讀:239 作者:guocun09 欄目:關系型數據庫

Broken Jobs and the Job Queue [ID 103349.1]

DBMS_JOBS 連續失敗16次自動Broken


***Checked for relevance on 11-Jul-2012***

 

NOTE:

=====

The discussed functionality is still available in Oracle 10g and Oracle 11g.

However, with Oracle 10gR1 the DBMS_SCHEDULER package was introduced with many new views.

It is advised to use the new Oracle scheduler instead of old style Oracle jobs.

=====

 

The job queue is used to schedule the execution of a stored procedure at a

specified timed interval.  This tool is the only way the database can be forced

to perform a action more than once.

 

 

If you are receiving multiple ORA-12012 errors you should check for any broken jobs. 

 

  Error:  ORA 12012

  Text:   error on auto execute of job <num>

  ------- ------------------------------------------------------------------------

  Cause:  Some kind of error was caught while doing an automatic execute of a job.

  Action: Look at the accompanying errors for details on why the execute failed.

 

 

This can be done by executing the following SQL statement:

 

  SELECT JOB

  FROM DBA_JOBS

  WHERE BROKEN = 'Y';

 

  -or-

 

  SELECT FAILURES, JOB

  FROM DBA_JOBS;

 

If this statement returns a job with the number of failures set to 16 the job

has been broken.

 

Also, note the following:

 

  a) A job does not have to have failures = 16 to be broken. (e.g. if you break

     the job manually, this does not set the # of failures to 16)

 

  b) A job can be broken and failures can be greater than 16.  (e.g. if the job

     automatically breaks after 16 failures and the job is manually run and fails

     again, the job will remain broken and failures will be incremented to 17).

 

 

Once a job is broken it no longer will be executed by the database.  If a job

returns an error while Oracle is attempting to execute it, Oracle tries to

execute it again. The first attempt is made after one minute, the second

attempt after two minutes, the third after four minutes, and so on, with the

interval doubling between each attempt. If the job fails 16 times, Oracle

automatically marks the job as broken and no longer tries to execute it.

However, between attempts, you have the opportunity to correct the problem

that is preventing the job from running. This will not disturb the retry

cycle, and Oracle will eventually attempt to run the job again.

 

There are two ways to unbreak a broken job:

 

  1. EXECUTE DBMS_JOB.RUN(JOB NUMBER);

 

     Example:

       EXECUTE DBMS_JOB.RUN(10);

 

     This statement will force job 10 to execute immediately.  If this is

     successful the job will complete and reset failures to 0.  This would

     then flag the job as being unbroken.

 

  2. EXECUTE DBMS_JOB.BROKEN

     (JOB    => <job_number>,

     BROKEN => <true|false>)

 

     Example:

       EXECUTE DBMS_JOB.BROKEN(

       JOB    => 10,

       BROKEN => FALSE);

 

     The execution of this statement would unbreak job 10.

 

If the execution of either one of these procedures returns an error saying that

the specified job can not be found have the client log in as the owner of the

job and then attempt the statement again.  The owner of the job is the same as

the person who submitted the job.

 

 

Finally, you should always check the alert.log for any accompanying error

messages along with looking in the background_dump_dest directory for any

generated SNP trace files.

 

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

宕昌县| 江永县| 古浪县| 专栏| 广灵县| 黑山县| 日土县| 安阳县| 扎赉特旗| 温泉县| 永州市| 太仓市| 天等县| 清徐县| 永安市| 鲁甸县| 盘锦市| 上蔡县| 砚山县| 收藏| 保德县| 阳西县| 高尔夫| 哈巴河县| 法库县| 浠水县| 绍兴市| 诏安县| 榆树市| 怀柔区| 永仁县| 新化县| 东乌珠穆沁旗| 锦州市| 五指山市| 鲁甸县| 东阳市| 余庆县| 辽源市| 梁山县| 遵义市|