Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • Histogram Overview Oracle
  • process id based files and processes Linux/Unix
  • Oracle Internal Good Websites 1 Oracle
  • compile_inv.sql Oracle
  • Read CSV file using PySpark Python/PySpark
  • backspace in SQL Plus not working then..? Linux/Unix
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • DBMS_JOB all example Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • fuser to check who is using diretory Linux/Unix
  • ORA-3136 Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle

Does DBMS_JOB recompute the NEXT_DATE interval after or before

Posted on 24-Jan-2010 By Admin No Comments on Does DBMS_JOB recompute the NEXT_DATE interval after or before

goal: Does DBMS_JOB recompute the NEXT_DATE interval after or before

executing the procedure or job?

fact: PL/SQL

fix:

The NEXT_DATE is computed AFTER the job gets executed successfully.

The INTERVAL date function is evaluated immediately before a job is executed.

If the job completes successfully, the date calculated from INTERVAL becomes the

new NEXT_DATE. If the INTERVAL date function evaluates to NULL and the job

completes successfully, the job is deleted from the queue.

If a job should be executed periodically at a set interval, use a date

expression similar to ‘SYSDATE + 7’ in the INTERVAL parameter. For example, if

the

execution interval is set to ‘SYSDATE + 7’ on Monday, but for some reason (such

as a network failure) the job is not executed until Thursday, ‘SYSDATE + 7’

evaluates to every Thursday, not Monday.

If the job should automatically execute at a specific time, regardless of the

last execution (for example, every Monday), the INTERVAL and NEXT_DATE

parameters should specify a date expression similar to ‘NEXT_DAY(TRUNC(SYSDATE),

”MONDAY”)’.

Oracle, SQL scripts

Post navigation

Previous Post: Committing distributed transaction using commit force
Next Post: useful dg links

Related Posts

  • Drop tempfiles from database Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • RAC 11g with vmware Oracle
  • Implementing Listener Security Oracle
  • Rman Notes -1 Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • standard Monitoring – 1 Oracle
  • Difference between SYNC and AFFIRM Oracle
  • All About oracle password and security from metalink Oracle
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • OEM-Commnds Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Proc Compilation Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme