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

Home -> Community -> Usenet -> c.d.o.server -> Re: TX deadlock - ora060

Re: TX deadlock - ora060

From: Ricky Sanchez <rsanchez_at_more.net>
Date: Tue, 04 Sep 2001 00:35:26 GMT
Message-ID: <3B9421F4.7DA254D9@more.net>


If you mean to ask if it is possible to trap a deadlock and avoid transaction failure, yes it is. Create an exception handler in your applications code for the error 60 and make a design decision about how you want the application to behave. Do you wait for the competing session to complete or do you fail gracefully?

You can also use the "Select blah blah for update NOWAIT" syntax, which will result in a select error if the row lock cannot be obtained immediately, avoiding the deadlock situation altogether.

"Michael Schäfer" wrote:
>
> Hi there,
> is there a possibility to ask Oracle processes if a deadlock has occured
> before is goes to trace-file?
> Thanks,
> Michael
Received on Mon Sep 03 2001 - 19:35:26 CDT

Original text of this message

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