Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • Find_planinfo.sql Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • Generating XML from SQLPLUS Oracle
  • chk_space_SID.ksh Linux/Unix
  • How to start CRS manually Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Export Oracle data and Compress at same time Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • How to change hostname in Linux Linux/Unix
  • Oracle 11g Environment Setup Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • move_arch_files.ksh Linux/Unix
  • v$backup.status information Oracle
  • Building Our Own Namespaces with “Create Context” 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

  • USER_TABLES.Freelists Oracle
  • get_vmstat_linux Oracle
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • PLSQL Table Syntax 2 Oracle
  • OEM-troubleshooting on 20-MAY-08 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 (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • ORACLE_SID in sqlplus Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • Histogram information Oracle
  • Read CSV File using Python Python/PySpark
  • Goldengate Tutorial Oracle
  • Some OS level threshold for performance. Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Transfer SQL Profiles from One database to other database. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme