Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • oracle 11g RAC on vmware Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • Jai Shree Ram Oracle
  • Index Range Scan Oracle
  • move_arch_files.ksh Linux/Unix
  • CTAS with LONG Column for 9i and higher Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • FRA Information. Oracle
  • Jai Shree Ram Oracle
  • myfile Oracle
  • Another Tuning Article for subheap of shared pool Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • V$ROLLSTAT status is Full Oracle
  • oracle Dba site 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

  • Remove duplicate rows from table Oracle
  • oracle fast start failover best practice Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • sess_server.sql Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • load SPM baseline from cursor cache Oracle
  • sess_server.sql Oracle
  • EXTPROC Oracle
  • move_arch_files.ksh Linux/Unix
  • Changing default shell Linux/Unix
  • checking connectivity between two servers Linux/Unix
  • normal maintenance for exp-imp and renaming table Oracle
  • Privilege to describe the table. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme