TRANSACTION MANAGEMENT part2
Why Concurrency Control is needed? Problems that can occur for certain transaction schedules without appropriate concurrency control mechanisms: The Lost Update Problem This occurs when two transactions that access the same database items have their operations interleaved in a way that makes the value of some database item incorrect. The Temporary Update (or Dirty Read) Problem This occurs when one transaction updates a database item and then the transaction fails for some reason. The updated item is accessed by another transaction before it is changed back to its original value. The Incorrect Summary Problem If one transaction is calculating an aggregate summary function on a number of records while other transactions are updating some of these records, the aggregate function may calculate some values before they are updated and others after they are updated. a) The Lost Update Problem The update performed by T1 gets lost; possible solution: T1 locks/unlocks database object...