Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Best practice to corrupt data
Mark D Powell wrote:
> nospam_at_gojko.com wrote:
>> A common practice for handling errors in PL/SQL procedures is to catch >> all errors in the top-most database layer and convert them into error >> codes and human readable messages for client applications. This >> technique is a relict from the past and, in fact, a very bad practice >> from today's perspective, since it can lead to data corruption. More on >> http://www.orafaq.com/node/993 . >> >> Gojko Adzic >> http://www.gojko.com
I agree with one caveat.
If you expect developers and DBAs/Apps DBAs to be able to diagnose and fix problems you need to separate exceptions into two different categories. Those caused by user error ... trying to stuff a string into a date field and those that are related to application behaviour.
If you expect it to be fixed it needs to be logged in a database table along with relevant demographics such as user, date, calling proc, code where error was generated, error message, etc.
-- Daniel Morgan University of Washington Puget Sound Oracle Users GroupReceived on Tue Sep 26 2006 - 17:53:00 CDT
![]() |
![]() |