The isolation portion of the ACID properties is needed when there are concurrent transactions.
Concurrent transactions are transactions that occur at the same time, such as shared multiple users accessing shared objects. This situation is illustrated at the top of
the figure as activities occurring over time. The safeguards used by a DBMS to prevent conflicts between concurrent transactions are a concept referred to as isolation.
As an example, if two people are updating the same catalog item, it's not acceptable for one person's changes to be "clobbered" when the second person saves a different set of changes. Both users should be able to work in isolation, working as though he or she is the only user.
Each set of changes must be isolated from those of the other users.
An important concept to understanding isolation through transactions is
serializability. Transactions are serializable when the effect on the database is the same whether the transactions are executed in serial order or in an interleaved fashion. As you can see at the top of
the figure, Transactions 1 through Transaction 3 are executing concurrently over time. The effect on the DBMS is that the transactions may execute in serial order based on consistency and isolation requirements. If you look at the bottom of
the figure, you can see several ways in which these transactions may execute. It is important to note that a serialized execution does not imply the first transactions will automatically be the ones that will terminate before other transactions in the serial order.
Degrees of isolation¹:
degree 0 - a transaction does not overwrite data updated by another user or process ("dirty data") of other transactions
degree 1 - degree 0 plus a transaction does not commit any writes until it completes all its writes (until the end of transaction)
degree 2 - degree 1 plus a transaction does not read dirty data from other transactions
degree 3 - degree 2 plus other transactions do not dirty data read by a transaction before the transaction commits
¹ These were originally described as degrees of consistency by Jim
Gray.
Common misconceptions about database security ZDNet - May 5, 2008 ?We have full auditing turned on, so we know everything that?s happening in the database?--First off, it?s unlikely that you have full DBMS auditing turned ...
Melbourne IT buys VeriSign's DBMS The Age, Australia - Apr 29, 2008 Melbourne IT said it also would establish "world class data centre facilities and digital brand support services during the year".
IBM Uncages Cheetah 2 Data Server eWeek, NY - Apr 28, 2008 By Brian Prince Less than a year after unleashing its ?Cheetah? data server, IBM is set to release a new version of the software with enhanced availability. ...
Transaction Processing: Concepts and Techniques (The Morgan Kaufmann Series in Data Management Systems) by Jim Gray, Andreas Reuter Average Customer Review: based on 9 reviews. Customer Review: For nearly a decade this book has been the definitive reference on transaction processing. Although the more recent, May 2001 book titled "Transactional Information Systems: Theory, Algorithms, and the Practice of Concurrency Control" by Gerhard Weikum and Gottfried Vossen will probably supplant this book as the standard reference, t...
Databases and Transaction Processing: An Application-Oriented Approach by Philip M. Lewis, Arthur Bernstein, Michael Kifer Average Customer Review: based on 4 reviews. Customer Review: Database and Transaction Processing by Philip M. Lewis, et al. is written as a multi-purpose textbook and practical reference guide for software engineers. One can use this book both as an undergraduate introductory course in database theory and design, as an advanced graduate-level course in databases, or as a graduate level course ...