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: Changing isolation level?

Re: Changing isolation level?

From: <ctcgag_at_hotmail.com>
Date: 04 Dec 2003 16:04:51 GMT
Message-ID: <20031204110451.703$oM@newsreader.com>


NoJunkMailshah_at_xnet.com wrote:
> While stranded on information super highway D Alpern wrote:
> :)SELECT... FOR UPDATE {WAIT | NOWAIT} springs to mind...
> :)
>
> No, you cannot select for update when you just want to read the data, it
> will lock out everyone else.

But locking everyone else out is exactly what you want to happen.

situation 1) T1 deletes row A, a microsecond later T2 selects row A.

situation 2) T2 selects row A, a microsecond later T1 deletes row A.

Are you saying that in situation 1 you want T2 to block, but in situation 2 you don't want T1 to block? Assuming T1 and T2 are independent transactions, this is logically incoherent. If integrity requires that one situation needs to block, then so does the other situation. No?

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Received on Thu Dec 04 2003 - 10:04:51 CST

Original text of this message

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