Chapter Nine – Managing Multiuser Databases
9.17 What is deadlock? How can it be avoided? How can it be resolved once it occurs?
Deadlock occurs when User1 locks a resource needed by User2 and User2 locks a resource
9.18 Explain the difference between optimistic and pessimistic locking.
With optimistic locking, the assumption is made that no conflict will occur. Data are read, the
9.19 Explain the benefits of marking transaction boundaries, declaring lock characteristics,
and letting the DBMS place locks.
9.20 What is SQL Transaction Control Language (TCL)? Explain the use of SQL BEGIN
TRANSACTION, COMMIT TRANSACTION, and ROLLBACK TRANSACTION
statements. Why does MySQL also use the SQL START TRANSACTION statement?
SQL Transaction Control Language (TCL) is that set of SQL statements used to mark transaction
boundaries. Additionally, it can be used to declare the type of locking behavior to be used for the
transaction.
9.21 What is an implicit COMMIT? What is an explicit COMMIT? Which of these are used by
default with Microsoft Server 2017, Oracle Database, and MySQL 5.7?
9.22 Explain the meaning of the expression ACID transaction.
An ACID transaction is one that is atomic, consistent, isolated, and durable. An atomic
transaction is one in which either all of the database actions occur or none of them do. A durable