Solved

PL/SQL Developer job failure

Posted on 2014-11-04
4
471 Views
Last Modified: 2014-11-04
Hi,

Is there a way to get notification that a job has failures, by email for example? I am using an Oracle 10g database and PL/SQL Developer 7.1.4. I have job that runs daily to import data. Normally I would expect the Failures=0 when viewing the job. If a line of data in the import is in the wrong format, I would expect a failure and the failures to be incremented. I'm after a quick and easy way of identifying if the failure is > 0 without having to go into PL/SQL. Does this figure get stored somewhere in a table? Can it be queried? I'm not an Oracle DBA, so please be gentle.

Thank you
0
Comment
Question by:bootneck2222
4 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 40421059
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 40421068
Just my personal add-on: if you're still using DBMS_JOB you and/or your DBAs should consider moving to DBMS_SCHEDULER as it only has advantages over the "old job scheduling style" (like a job run history)...
Using the DBMS_SCHEDULER, there should be no problem in getting (email) alerts whenever a job fails to succeed. On the other hand, if you're using DBMS_JOBs, then you probably have to write your own monitor/heartbeat job/process which in turn watches over all the other jobs running on your system....
0
 
LVL 34

Expert Comment

by:johnsone
ID: 40421324
What happens in your procedure when a row of data fails to load?  Does it log that somewhere and continue on, or does the procedure terminate abnormally with an error?

If the procedure is logging errors and continues on then the failures for the job will be  0.  The procedure completed successfully, so it did not fail.

The failures reporting of a job is how many times (in a row) the job terminated with error.  It has nothing to do with what the procedure is doing.
0
 

Author Closing Comment

by:bootneck2222
ID: 40421391
Thank you.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
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 shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

816 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

12 Experts available now in Live!

Get 1:1 Help Now