Thread View: net.database
5 messages
5 total messages
Started by Bob Marti
Thu, 31 Oct 1985 21:25
Re: IBM DB2 lacks record locking
Author: Bob Marti
Date: Thu, 31 Oct 1985 21:25
Date: Thu, 31 Oct 1985 21:25
22 lines
1563 bytes
1563 bytes
> >From Datamation, October 15 issue, page 13:
>
> "... Notably absent so far from [DB2] has been an effective record-level
> locking feature that is critically important for performing simultaneous
> updates to a single database."
>
> And we thought that only Unix DBMS's had problems with record locking :-)
According to Chris Date's book "A Guide to DB2", DB2 does implicit record-
level locking inside transactions. It turns out, however, that depending
on some "lockable unit" system parameter, locking a record implies one of
the following:
- locking of the page where the record is physically stored
- locking of the tablespace (a set of tables defined by the DBA) to which
the record belongs
The parameter can be set to PAGE, TABLESPACE, or ANY. In the latter case,
DB2 decides for itself what it thinks is best for a given access plan.
If you want to know more about locking in DB2 see chapter 11 in Date's DB2
book.
--Bob Marti {decvax, ucbvax, seismo}!sun!rmarti
Re: IBM DB2 lacks record locking
Author: Peter S. Ford
Date: Tue, 05 Nov 1985 05:58
Date: Tue, 05 Nov 1985 05:58
23 lines
1838 bytes
1838 bytes
In many ways explicit record locking is not a desirable feature. Most serious (real?) database systems have several data structures which need concurrency control; the interrelation and application of the concurrency control is best handled implicitly by the database system. Deadlock and starvation are much more likely in systems where the programmer is left with full responsibilty for concurrency control. Other considerations support implicit concurrency control by the DBMS. The database system may determine it better for overall throughput to lock a whole data structure (a single table, or an index) rather than locking many smaller parts of the structure and clogging up access to a lock manager or table. And finally, I like to think that one function of a DBMS is to abstract away the problems of physical and temporal access to data. My bias in this direction is based on experience with the Britton Lee Database machine which does implicit locking rather than having explicit locking primitives. It is not surprising to me that IBM DB2 opted for an implicit locking scheme. Peter Ford University of Utah CS Department peter@utah-cs
Re: IBM DB2 lacks record locking
Author: Darryl Olson
Date: Wed, 06 Nov 1985 15:26
Date: Wed, 06 Nov 1985 15:26
11 lines
1167 bytes
1167 bytes
In article <1621@utah-gr.UUCP> peter@utah-gr.UUCP (Peter S. Ford) writes: >> ... It is not surprising to me that IBM DB2 opted for an implicit >> locking scheme. DB2 supports both an implicit and an explicit locking scheme. The explicit locking capabilities include the SQL statement LOCK TABLE, the isolation level option of the BIND command, and the tablespace "lockable unit" parameter. Darryl Olson uw-beaver!teltone!dataio!olson
Re: HELP: RTI Ingres on Unix Systems. Thank you
Author: 840033
Date: Mon, 11 Nov 1985 02:46
Date: Mon, 11 Nov 1985 02:46
22 lines
1726 bytes
1726 bytes
If you can help with this, please do; send me a phone number if you'd
prefer and I will call you.
I am interested in purchasing RTI's "commercial" Ingres; it seems to do what
we want.
HOWEVER, I have received feedback from current users, particularly those own-
ing VAX/VMS systems, that response time degrades inordinately when
multiple users are accessing Ingres concurrently - both the package
and the system slows down more so than with other DBMS's.
I would appreciate any experience in this area that you may have had with RTI's
Ingres on Unix-based systems. I would especially like to hear from those who
have comparisons to Oracle.
thank you, greg pavlov, fstrf, amherst, n.y., 716-837-4000
P.S.: we evaluated a number of systems in the past 6 months and simulated mul user environments to see how each system held up. We would do the same
with Ingres. BUT the port to our machine, an HP9000 series 500, is not
ready yet. So I was forced to evaluate it on a VAX750/VMS system.
Re: IBM DB2 lacks record locking
Author: Bill Crews
Date: Tue, 12 Nov 1985 17:39
Date: Tue, 12 Nov 1985 17:39
17 lines
1532 bytes
1532 bytes
> Deadlock and starvation are much more likely in systems where the programmer
> is left with full responsibilty for concurrency control.
>
> And finally, I like to think that one function
> of a DBMS is to abstract away the problems of physical and temporal
> access to data.
I agree with your point, and I think that as much implicit locking as possible
should be performed by the DBMS. However, it also seems to me that the INTENT
of the programmer is crucial in many cases. If one is simply accessing tuples
sequentially with no intent to update, the situation is quite different from
reading a tuple WITH INTENT to UPDATE (or delete) that tuple. In fact, this
seems to me like basic stuff seen in most DBMSs today, no?
--
- bc -
..!{seismo,topaz,gatech,nbires,ihnp4}!ut-sally!cyb-eng!bc (512) 835-2266
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads