More Review Flashcards
(22 cards)
The concurrent transactions T1 and T2 can take a _____ lock on the same row
Shared
A schedule is serializable when ____
The graph is acyclic
After a rollback, the database restart a transaction
Sometimes
When a transaction deletes a table row, an ______ record is written in the log
update
Deadlock can be spotted by looking for which of the following in a wait-for graph?
A cycle
Would T2 get a shared lock?
YES
Each of the following is a well known concurrency control problem EXCEPT
The redundant data problem
During the undo phase, the recovery system writes compensation records for
Transactions that do not commit or roll back following the most recent checkpoint
CHECKPOINT statement syntax is specified in the SQL standard
False
In recovery techniques, _____ requires that the effects of a commited transaction be permenant so they must survive the loss of main memory loss of disk storage and failures during data transfers to disk
durability
When a deadlock occurs, a cycle of dependent transactions always exist
True
Transactions A and B are both serializable, and A always starts before B, the results may vary
False
After all updates have been reversed in a rollback, an _____ record is written in the log
transaction or rollback
After a transaction commits, the transaction can be rolled back
Never
A SERIALIZABLE transaction can run concurrently with READ COMMITTED transaction
True
Phases in recovery using the ARIES method includes all of the following except
Synthesis
Select statements 4 transaction boundry
Start and end
Several transactions can hold concurrent exclusive locks on the same row
False
The privelage list of the SQL Grant statement may include all of the following except
REPLACE
How many transaction rollbacks are needed to break the deadlock
1
A database uses basic two phase locking. Transaction A takes a exclusive lock on X. Transaction B requests a shared lock on X. When is the shared lock granted
During the contract phase of A