Solved

PL/SQL Developer job failure

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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MULTIPLE DATE QUERY 15 90
run sql script from putty 4 61
Oracle collections 15 26
Row_number in SQL 6 33
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
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 shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
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.

792 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