Database System Concepts
Database System Concepts
7th Edition
ISBN: 9781260084504
Author: Abraham Silberschatz, S. Sudarshan, Abraham, Henry Korth, Silberschatz Abraham, Silberschatz Professor
Publisher: McGraw-Hill Education
Expert Solution & Answer
Book Icon
Chapter 19, Problem 9PE

Explanation of Solution

a.

Problem occurred when rolling back first transaction:

  • Consider the given case where another transaction takes up the space generated by the deletion of a record by an uncommitted transaction.
  • In case, if the first transaction needs to be rolled back, then
    • The record deleted by the first transaction is restored.
    • When the usual physical manner undo is performed with the old record values;
      • The space that was reallocated to the new record by the second transaction would get overwritten by this undo...

Explanation of Solution

b.

Issues:

  • When page-level locking is used, this problem will not crop up because of the following reasons:
    • The free space gener...

Explanation of Solution

c.

Solving the problem:

In order to resolve the problem using tuple-locking the following methods are followed:

  • Defer the freeing up of space until a transaction commit.
  • Here, ensure that the space will be freed even when a system fails just after the commit.
  • For this, the log records are modified for including the information about the space being freed, which should have been performed after the commit.
  • In fact, all such operations can be performed as a transaction along generating their log records, followed by the post-commit log records...

Blurred answer
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education