Solved

PL/SQL Developer job failure

Posted on 2014-11-04
4
453 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
Comment Utility
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

762 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

9 Experts available now in Live!

Get 1:1 Help Now