Re: deadlock: a row being locked by a query twice?
Posted by:
Amit K
Date: April 10, 2016 11:35PM
> And the sproc uses that crazily inefficient query you first posted? You need to get that changed.
Will fix that
> About "exclusive locks", you need to put your writes in transaction blocks coded to retry in the face of deadlock and rollback gracefully on error.
It's already in transaction block :(
That SELECT FOR UPDATE is the first query after issuing BEGIN. Writes happen after rows are locked. Theoretically the deadlock should have never happened. But it did.
Subject
Views
Written By
Posted
2545
April 09, 2016 07:04AM
992
April 09, 2016 03:02PM
1015
April 09, 2016 09:53PM
956
April 10, 2016 10:58AM
1029
April 10, 2016 07:58PM
921
April 10, 2016 08:02PM
992
April 10, 2016 08:24PM
946
April 10, 2016 10:43PM
Re: deadlock: a row being locked by a query twice?
1055
April 10, 2016 11:35PM
862
April 12, 2016 07:20PM
871
April 15, 2016 11:33PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.