Solved

PL/SQL Developer job failure

Posted on 2014-11-04
4
526 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 143

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 35

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

Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

636 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