Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Locking Question (nowait, UPDATE etc)
<ctcgag_at_hotmail.com> wrote in message
news:20030328145448.490$ZP_at_newsreader.com...
> "Johannes Eggers" <jeggers_at_tetrix.com> wrote:
> >
> > Why do want them locked so they can't be modified while you process them > in your client?
Correct.
> > Presumably, the updates happening in your table are occuring because > real-world facts (which the table models) have changed, and you need to > reflect that. If your client wants to ignore any changes occuring > after a certain point, that's fine. It is what Oracle's read consistency > does. But if your client wants to forbid anyone else from acknowledging > that the real world has changed, it sounds like your client is an ignorant > bully.
Not really. It's acceptable, from a business process, to not permit updates while the other process is running.
> > > Then do the select for update no wait on this, first.
> >
> > I did: > > create procedure llll (x in number) > cursor main is select * from blah where col2=x for update; > begin > open main; > end; > > then did an exec llll(30) > In a separate session, I said "update blah set col1='hi' where col2=30"and
I watched our DB guy do the same thing, and we didn't get your result (although we expected to). Received on Mon Mar 31 2003 - 08:51:51 CST