Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Exception handling inpl/sql

Re: Exception handling inpl/sql

From: Pete Finnigan <pete_at_petefinnigan.com>
Date: Fri, 29 Aug 2003 15:20:57 +0100
Message-ID: <Ex092BBJF2T$Eweh@peterfinnigan.demon.co.uk>


Hi Steve

If i understand you right you are adding an exception block to each procedure and calling a local procedure to handle the exception. It is a bit hard to comment without knowing the complexity of the code in your procedures but if you want some sort of controlled exception handling you would need to review the existing code and add blocks with exception handlers wherever an "interesting" exception could occur. i.e if you have 10 SQL's or other bits of code that can cause an exception and one exception block and a standard procedure to handle how would you know which piece of SQL caused the exception?

Just a suggestion but maybe in tandem with your "global" exception handlers you could add some "trace" calls to write "flow" to a file. Use a simple package using utl_file and record procedure/function and line number - Tom Kyte has some code on his site to do this. Adding simple trace shouldn't upset your existing code.

hth

kind regards

Pete

-- 
Pete Finnigan
email:pete_at_petefinnigan.com
Web site: http://www.petefinnigan.com - Oracle security audit specialists
Book:Oracle security step-by-step Guide - see http://store.sans.org for details.
Received on Fri Aug 29 2003 - 09:20:57 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US