Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> ORA-00060: deadlock detected while waiting for resource
I am getting "ORA-00060: deadlock detected while waiting for resource"
oracle error message when some on my users are savings their data.
Sounds like some kind of contention problem.
I have a number of tables that are being updated on this update script using coldfusion something like:
<cftransaction>
update tableA set x='?', y='?' where mykey='123'
delete from tableB where mykey='123'
insert into tableB (mykey, m, n) values ('123','??','??')
insert into tableB (mykey, m, n) values ('123','??','??')
delete from tableC where mykey='123'
insert into tableC (mykey, j, k) values ('123','??','??')
insert into tableC (mykey, j, k) values ('123','??','??')
.
.
.
</cftransaction>
I think you get the message. Instead of checking to see what was added/changed/deleted, etc. I delete the rows and insert. If there are any errors then the would transaction gets rolled back.
I looked at the lock graph and part of it looked like:
---------Blocker(s)-------- ---------Waiter(s)--------- Resource Name process session holds waits process session holds waits TM-0000b5e8-00000000 16 7 SX 27 52 SX SSX TX-0001000d-00054659 27 52 X 16 7 X
I have no idea what Session 52: no row is.
Any help is appreciated.
Mike Received on Tue Jun 07 2005 - 11:09:50 CDT