Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle Job not been executed for no reason

Im programing a job in oracle in order to execute a store procedure, but when the time comes it just does not happend any thing for no reason.

Is there some kind of log where I can see if an error happend or something?

Im using the dbms_job package to create the job

Tnks.

like image 502
Giancarlo Solarino Avatar asked Jan 21 '23 05:01

Giancarlo Solarino


1 Answers

Since you're using DBMS_JOB

  • Are you committing after making the call to DBMS_JOB.SUBMIT? Your job can't run until you've committed.
  • Have you set JOB_QUEUE_PROCESSES to a non-zero value? Are there any other DBMS_JOB jobs running in your system?
  • Can you post the results of running the following query:
SELECT last_date, 
       last_sec, 
       next_date, 
       next_sec, 
       this_date, 
       this_sec, 
       broken, 
       failures, 
       total_time
  FROM dba_jobs
 WHERE job = <<your job number>>
like image 91
Justin Cave Avatar answered Feb 08 '23 17:02

Justin Cave