Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Unix command for system configuration Linux/Unix
  • All About Trace Fils Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Linux CPU info. Linux/Unix
  • More info about /proc folder and its relation with processes. Linux/Unix
  • Drop tempfiles from database Oracle
  • move_arch_files.ksh Linux/Unix
  • Database link password in user_db_links Oracle
  • cold backup scripts to copy locally Linux/Unix
  • DBMS_SQL for alter session. Oracle
  • Find long Running Transaction Linux/Unix
  • oradebug ipcrm ipcs Oracle
  • USER_TABLES.Freelists Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • .profile Linux/Unix

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

  • PLSQL Table Syntax 2 Oracle
  • Finding locked objects Oracle
  • Find Plan Hash value fphv.sql Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • Wait time tuning research 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • UNderstand and eliminate Latch contention. Oracle
  • Another Tuning Article for subheap of shared pool Oracle
  • Jai Shree Ram Oracle
  • dbinv.sql Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • Directory wise folder wise space usage Linux/Unix
  • New OFA for 11g Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme