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: Locking Question (nowait, UPDATE etc)

Re: Locking Question (nowait, UPDATE etc)

From: <ctcgag_at_hotmail.com>
Date: 04 Apr 2003 16:00:58 GMT
Message-ID: <20030404110058.584$z4@newsreader.com>


"Johannes Eggers" <jeggers_at_tetrix.com> wrote:
> <ctcgag_at_hotmail.com> wrote in message
> >
> > 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
> > it blocked until I typed commit in the first session.
>
> I watched our DB guy do the same thing, and we didn't get your result
> (although we expected to).

What version of Oracle? Are you sure blah actually had committed rows where col2=30? (I made that mistake the first time I tried it.)

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Received on Fri Apr 04 2003 - 10:00:58 CST

Original text of this message

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