Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Which transaction isolation level can prevent lost updates?
Daniel Morgan <dmorgan_at_exesolutions.com> wrote in news:3DE2943C.B7201C05
@exesolutions.com:
>> Arno Huetter wrote:
>
> > In Oracle the chances of this problem happening is so remote that I > can't think of anyone that does anything to code around it.
It's not that remote at all. I worked on a large system that had the issue until we solved it with SELECT FOR UPDATE.
Being that the above is an example, the question is, can Arno re-write the query and embed the logic in the where clause of the update:
trans 1: tran 2:
update i=i+1
update i=i+1
now the work is atomic.
-- Pablo Sanchez, High-Performance Database Engineering http://www.hpdbe.comReceived on Mon Nov 25 2002 - 16:24:01 CST
![]() |
![]() |