Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Guide to Linux System Command Mastery Linux/Unix
  • oracle fast start failover best practice Oracle
  • Session_info.ksh Linux/Unix
  • send attachment from unix-shell script Linux/Unix
  • prepfiles.sh for step by step generating pending statistics files Oracle
  • Good Site for Oracle Internals Oracle
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • Rman Notes -1 Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • USER_TABLES.Freelists Oracle
  • Exadata Basics Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress

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

  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • cur_sql.sql Oracle
  • Restoring a user’s original password 1051962.101 Oracle
  • Alter procedure auditing Oracle
  • Finding Oracle Patches with opatch Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Optimizer_Index init.ora parameter explaination. Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • fuser to check who is using diretory Linux/Unix
  • How to find where datafile is created dbf_info.sql Oracle
  • Find_planinfo.sql Oracle
  • Oracle Connections expire_time and firewall Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme