Solved

PL/SQL Developer job failure

Posted on 2014-11-04
4
461 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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.

867 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

22 Experts available now in Live!

Get 1:1 Help Now