View Oracle job information

Source: Internet
Author: User

This article mainly introduces the Code related to Oracle job information to show you how to view Oracle job information. If you are puzzled by the actual application of Oracle job information, you may wish to browse the following articles and hope that you can get what you want.

View Oracle job information

1. Related views

 
 
  1. dba_jobs  
  2. all_jobs  
  3. user_jobs  
  4. dba_jobs_running  

Including running Oracle Job Information

2. View related information

 
 
  1. SQL>SELECT JOB, NEXT_DATE, NEXT_SEC, FAILURES, BROKEN  
  2. SQL>FROM DBA_JOBS;  
  3. JOB NEXT_DATE NEXT_SEC FAILURES B  
  4. 9125 01-JUN-01 00:00:00 4 N  
  5. 14144 24-OCT-01 16:35:35 0 N  
  6. 9127 01-JUN-01 00:00:00 16 Y  
  7. 3 rows selected. 

Information about running jobs

 
 
  1. SELECT SID, r.JOB, LOG_USER, r.THIS_DATE, r.THIS_SEC  
  2. FROM DBA_JOBS_RUNNING r, DBA_JOBS j  
  3. WHERE r.JOB = j.JOB;  
  4. SID JOB LOG_USER THIS_DATE THIS_SEC  
  5. 12 14144 HR 24-OCT-94 17:21:24  
  6. 25 8536 QS 24-OCT-94 16:45:12  
  7. 2 rows selected. 

Job queue lock Information

 
 
  1. SELECT SID, TYPE, ID1, ID2  
  2. FROM V$LOCK  
  3. WHERE TYPE = ’JQ’;  
  4. SID TY ID1 ID2  
  5. 12 JQ 0 14144  
  6. 1 row selected. 

The above content is an introduction to how to view the relevant Oracle job information.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.