Zybook 4-3 Flashcards
(20 cards)
A ___________ statement erases saved data for zero, one, or many savepoints.
ROLLBACK TO
A __________ statement temporarily saves data read and written by a transaction.
SAVEPOINT
A ___________ statement erases saved data for exactly one savepoint.
RELEASE SAVEPOINT
A _________ statement reverses all changes made by a transaction.
ROLLBACK
Application programs run on a client machine. The database runs on a separate server machine. The network between client and server fails, and the database does not respond to any application requests.
Storage media failure
The database detects two deadlocked transactions. To break the deadlock, the database rolls back one of the transactions.
Transaction failure
Due to a security breach, computer memory is corrupted. After the security breach is resolved, the database administrator restarts the database.
System failure
After all updates have been reversed in a rollback, a(n) __________ record is written in the log.
transaction
When a transaction deletes a table row, a(n) __________ record is written in the log.
update
A(n) __________ record indicates all data is saved from main memory to storage media.
checkpoint
A(n) __________ record always appears in the log at the beginning of a transaction.
transaction
A(n) __________ record is written in the log whenever an update is reversed during a rollback.
compensation
A list of active transactions appears in a(n) __________ record.
checkpoint
During the redo phase, what log records remove a transaction from the active transaction list?
Both commit and rollback records
During the redo phase, what log records generate a database write?
Both update and compensation (undo) records
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
During the undo phase, the recovery system writes compensation records for:
Transactions that do not commit or roll back following the most recent checkpoint
Database availability is:
The percentage of time that a database is responsive to application programs.
With a cold backup, recovery from storage media failure reads the log:
From the latest checkpoint
With a hot backup, as a transaction executes against the primary database:
Log records are sent to the secondary database.