Zybook 4-3 Flashcards

(20 cards)

1
Q

A ___________ statement erases saved data for zero, one, or many savepoints.

A

ROLLBACK TO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A __________ statement temporarily saves data read and written by a transaction.

A

SAVEPOINT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A ___________ statement erases saved data for exactly one savepoint.

A

RELEASE SAVEPOINT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A _________ statement reverses all changes made by a transaction.

A

ROLLBACK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.

A

Storage media failure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The database detects two deadlocked transactions. To break the deadlock, the database rolls back one of the transactions.

A

Transaction failure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Due to a security breach, computer memory is corrupted. After the security breach is resolved, the database administrator restarts the database.

A

System failure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

After all updates have been reversed in a rollback, a(n) __________ record is written in the log.

A

transaction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When a transaction deletes a table row, a(n) __________ record is written in the log.

A

update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A(n) __________ record indicates all data is saved from main memory to storage media.

A

checkpoint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A(n) __________ record always appears in the log at the beginning of a transaction.

A

transaction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A(n) __________ record is written in the log whenever an update is reversed during a rollback.

A

compensation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A list of active transactions appears in a(n) __________ record.

A

checkpoint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

During the redo phase, what log records remove a transaction from the active transaction list?

A

Both commit and rollback records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

During the redo phase, what log records generate a database write?

A

Both update and compensation (undo) records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

During the undo phase, the recovery system reads the log in reverse and stops at:

A

The start record for the last transaction in the active transaction list

17
Q

During the undo phase, the recovery system writes compensation records for:

A

Transactions that do not commit or roll back following the most recent checkpoint

18
Q

Database availability is:

A

The percentage of time that a database is responsive to application programs.

19
Q

With a cold backup, recovery from storage media failure reads the log:

A

From the latest checkpoint

20
Q

With a hot backup, as a transaction executes against the primary database:

A

Log records are sent to the secondary database.