Check the actual operating scheme of the failed Oracle JOB

Source: Internet
Author: User

Do you have a headache in checking the actual operations of expired Oracle jobs? If this is the case, the following articles will give you corresponding solutions. The following articles mainly introduce solutions for checking invalid Oracle jobs. The following describes the specific content.

 
 
  1. SELECT * FROM dba_jobs WHERE broken=
    'Y' OR failures>0 OR next_date < trunc(SYSDATE); 

Check failed mview refresh

 
 
  1. SELECT * FROM dba_mviews WHERE compile_state!=
    'VALID' ORDER BY last_refresh_date; 

View the system resources that the session is waiting for. SQL

 
 
  1. SELECT gv$session.inst_id,gv$session.sid,gv$session.serial#,  
  2. gv$session.username,gv$session.machine,gv$session.program,  
  3. gv$session_wait.event,gv$session_wait.p1text,gv$session_wait.p1,  
  4. gv$session_wait.p2text,gv$session_wait.p2,  
  5. gv$session_wait.p3text,gv$session_wait.p3,  
  6. gv$session_wait.seconds_in_wait,gv$session_wait.state  
  7. FROM gv$session,gv$session_wait  
  8. WHERE gv$session.inst_id = gv$session_wait.inst_id AND  
  9. gv$session.sid = gv$session.sid;  

Query the waiting object according to the waiting event. SQL

 
 
  1. select owner,segment_name,segment_type,tablespace_name  
  2. from dba_extents where file_id=152 
  3. and 239210 between block_id and block_id + blocks -1;  

The above content describes the actual code of the Oracle JOB that fails to be checked. We hope it will help you in this regard.

Related Article

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.