Problem

Exercise 17.11 Consider a database organized in terms of the following hierarchy of object...

Exercise 17.11 Consider a database organized in terms of the following hierarchy of objects: The database itself is an object (D), and it contains two files (F1 and F2), each of which contains 1000 pages (P1 . . .P1000 and P1001 . . .P2000, respectively). Each page contains 100 records, and records are identified as p : i, where p is the page identifier and i is the slot of the record on that page.

Multiple-granularity locking is used, with S, X, IS, IX and SIX locks, and database-level, file-level, page-level and record-level locking. For each of the following operations, indicate the sequence of lock requests that must be generated by a transaction that wants to carry out (just) these operations:

1. Read record P1200 : 5.

2. Read records P1200 : 98 through P1205 : 2.

3. Read all (records on all) pages in file F1.

4. Read pages P500 through P520.

5. Read pages P10 through P980.

6. Read all pages in F1 and (based on the values read) modify 10 pages.

7. Delete record P1200 : 98. (This is a blind write.)

8. Delete the first record from each page. (Again, these are blind writes.)

9. Delete all records.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 17