Review Questions Flashcards
(31 cards)
Is this schedule
w1(x) r1(x) w3(z) cl r2(x) r2() r4(E) c4 c2 r3(x) w3 (V) c3
strict?
(NOTE: Schedule in which a Transaction can neither read or write an item X until the last Transaction that wrote X has Committed.)
No
During the undo phase, the recovery system writes compensation records for:
Transactions that do not commit or roll back following the most recent checkpoint
A ______ statement temporarily saves data read and written by a transaction
SAVEPOINT
The transaction is always durable
False
AHow many SQL statements must be in one transaction?
At least one
Which of the following is NOT true of the two phase locking protocol
It eliminates the problem of deadlock
Would T2 get a shared lock
Yes
Select Transaction 5 Isolation level
READ UNCOMMITTED
Select the correct option for the following:
Transaction 1
SERIALIZABLE
The _____ Schedule has a different result than schedule
Conflicting
Which two phase locking technique has, in effect, just one phase?
Rigorous
SERIALIZABLE transaction can run concurrently with a READ COMMITTED transaction
TRUE
When a transaction deletes a table row, an ______ record is written in the log
update
Consider the following sequence of actions, listed in the order they are submitted to the DBMS: w1(x) r2(x) w2(v) w2(x) w3(z) r3(v) w3(v) wl(z) abortl
Does deadlock exists?
Yes
A transaction updates an account with a foreign key. The FK does not match any values of the corresponding PK and is not null
Consistent
Trans A writes data and rolls back before transaction B reads data
Strict
The privelage list of the SQL GRANT statement may include all of the following except
REPLACE
Transactions A and B are both serializable and A always starts before B, the results may vary
False
Several transactions can hold concurrent exclusive locks on the same row
False
In recovery techniques, ______ requires that the effects of a committed transaction be permenant so they must survive a loss of main memory, loss of disk storage etc
Durability
Grant _____ ON DEPTINFOR To assistant
SELECT
During the undo phase, the recovery system reads the log in reverse and stops at
The start record for the last transaction in the active transaction list
After a rollback the database restarts a transaction
Sometimes
Select Transaction 5 transaction boundry
Start and End