Solved

DBMS_JOB.submit

Posted on 2013-01-16
3
550 Views
Last Modified: 2013-01-16
Is there a way to find out what are the dbmd_jobs running and at what times?
0
Comment
Question by:anumoses
  • 2
3 Comments
 
LVL 73

Accepted Solution

by:
sdstuber earned 250 total points
Comment Utility
select * from dba_jobs will list all jobs including their next scheduled time

If this_date or this_sec is not null   then they are running right now


you can also use dba_jobs_running view, but it's just the same thing with a filter on the "this" columns so it will only show info for jobs executing right now

actually, it filters on the existence of a lock in v$lock, but the effect is the same
0
 
LVL 6

Author Closing Comment

by:anumoses
Comment Utility
thanks. I was running this query and did not get any data.

SELECT r.sid, r.job, r.this_date,
       r.this_sec, SUBSTR(what,1,40) what
  FROM dba_jobs_running r,dba_jobs j
 WHERE r.job = j.job;
0
 
LVL 73

Expert Comment

by:sdstuber
Comment Utility
if you need to maintain a history of past job executions,  then use dbms_scheduler instead of dbms_job  (10g and above only)


or, if you stick with dbms_job  then you should modify your job scripts to include logging to some table
dbms_job itself won't tell you anymore than the last time it ran and the next time it should run
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
oracle query help 29 62
oracle query help 18 74
File generation using utl_file 4 28
Need a replacement data type in Oracle 6 25
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now