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: Oracle concurrence control

Re: Oracle concurrence control

From: Yong <yong321NOyoSPAM_at_yahoo.com.invalid>
Date: Sun, 02 Jan 2000 23:11:33 -0800
Message-ID: <23857c7c.2b21fb30@usw-ex0101-004.remarq.com>


For some reason, I posted a followup to my own message but it didn't appear. What I want to supplement is that, you can "artificially" implement this concurrency control. You create a table called, say, mutex with the column roomnum, personchecking, and timechecked. When A checks and finds that the room is available through a select statement, the database server also inserts the room number into mutext(roomnum), 'A' into personchecking and that moment of time into timechecked. Let's say you set the expiration time for holding this room at 5 minutes. Assuming A doesn't book the room within 5 minutes, when B comes in within 5 minutes, he'll see roomnum is on hold; if after 5 minutes, it's available and he can hold it...
<p>
You got the idea.

Yong Huang<br>
Email:yong321_at_yahoo.com
Web: http://www.stormloader.com/yonghuang/

Received on Mon Jan 03 2000 - 01:11:33 CST

Original text of this message

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