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

Home -> Community -> Usenet -> c.d.o.tools -> Re: exceptions & performance

Re: exceptions & performance

From: Bob Fazio <rfazio_at_home.com.nospam>
Date: 2000/05/15
Message-ID: <0M_T4.192620$Tn4.1589486@news1.rdc2.pa.home.com>#1/1

Is it expensive? Maybe, but most likely it is a lot less expensive than any other way you might be able to code around it.

--
Robert Fazio, Oracle DBA
rfazio_at_home.com
remove nospam from reply address
http://24.8.218.197/
<kal121_at_my-deja.com> wrote in message news:8fpg4j$pjb$1_at_nnrp1.deja.com...

> Is there any reason *not to* use an exception handler as a means of
> execution control in Oracle?
>
> Basically, I have a very simple procedure that does a SELECT. If and
> when the data is not found, I simply catch the exeception
> DATA_NOT_FOUND, then terminate the procedure.
>
> I was told by a java developer that catching exceptions is always
> expensive. Is this also true in Oracle?
>
> I can always declare an explicit cursor to check for %FOUND - is this a
> better way to accomplish this than using an exception handler? I
> suppose I can test this against a large data set, but the one I have
> isn't big enough at the moment. Any experiences?
>
> Thanx
>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Mon May 15 2000 - 00:00:00 CDT

Original text of this message

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