Solved

How do I check a job submitted thur the Oracle Databse Scheduler to see if it is executing?

Posted on 2007-11-21
9
2,140 Views
Last Modified: 2013-12-19
I have submitted a job thru the Oracle Database using the job scheduler in the database.
It is a job to gather stats.
How do I check to see if this job is actually executing?
I submitted the job using TOAD.
0
Comment
Question by:kzsk31
  • 3
  • 3
9 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 20330065
this page is a good cheat-sheet to see the most common information about dbms_job:
http://www.psoug.org/reference/dbms_job.html

1 important note:
* you have to, in toad, after submitting the job, perform a commit, like for a normal table insert.
  otherwise, if you killed toad or closed without committing, the job would be lost.
  and until committed, it will not start
0
 

Author Comment

by:kzsk31
ID: 20330138
Hello angellll,
Thank you for sharing this really helpful cheat-sheet for dbms_job.
I did commit the job.
And I still don't know how to check - if a job is running from within the database.

0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 20330211
there is a second think you need to know:
the parameter job_queue_processes needs to have a value > 0, otherwise not background job processes will run, and hence not jobs being executed.

once that is set up properly, it should run.

next step, read the data in the dba_jobs:
http://www.ss64.com/orad/DBA_JOBS.html

the column  LAST_DATE will indicate when the job was last started
THIS_DATE being not null means it is currently running, with that date being the start date.
FAILURES , being 0 is good. means no error since last successful execution (if any)

0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

Author Comment

by:kzsk31
ID: 20330298
HI Angelll,
job_queue_processes = 10, so that's good.

SQL> select job, log_user, last_date, last_sec, broken,failures
  2  from dba_jobs;

  JOB LOG_USER   LAST_DATE LAST_SEC                         B   FAILURES
----- ---------- --------- -------------------------------- - ----------
    4 SYS                                                   N

does the above mean that the job is running?  I did execute immediate?
How can I tell what processes/jobs are running on the db?
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 20330321
this looks like it did not yet run completely.
check out this_date and next_date columns
0
 
LVL 73

Assisted Solution

by:sdstuber
sdstuber earned 250 total points
ID: 20331620
select * from dba_jobs_running

will show you jobs that are running right now
0
 

Author Comment

by:kzsk31
ID: 20331941
Thanks a lot sdstuber
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle Pivot 2 43
sql query 5 68
Oracle - Create Procedure with Paramater 16 56
Oracle query output question 4 36
I showed you how to use console view (HERE (http://www.experts-exchange.com/articles/18379/Getting-Started-and-Using-the-Salesforce-com-Console.html)) -– but how do you set it up on the admin side of Salesforce? Note that you have to have Admin leve…
Note: You must have administrative privileges in order to create/edit Roles. Salesforce.com (http://www.salesforce.com/) (SFDC) is a cloud-based customer relationship management (CRM) system. It is a database most commonly used by sales and marke…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

911 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

21 Experts available now in Live!

Get 1:1 Help Now