DATABASE BACKUP AND RECOVERY(2) Flashcards

1
Q

____________ is a group of statements that are performed as an atomic group. It means either all the statements run successfully, or none of the do.

A

TRANSACTION

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

A transaction in progress that terminates abnormally.

A

ABORTED TRANSACTION

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

Human Error, Input of invalid data, hardware failure and deadlock

A

ABORTED TRANSACTION

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

Recovery Technique: Rollback

A

ABORTED TRANSACTION
INCORRECT DATA

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

If the error is discovered soon enough, backward recovery may be used.

A

INCORRECT DATA

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

If only a few errors have occurred, a series of compensating transaction may be introduced through human intervention to correct the errors.

A

INCORRECT DATA

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

If the first two measures are not feasible, it may be necessary to restart from the most recent checkpoint before the error occurred, and subsequent transactions processed without error.

A

INCORRECT DATA

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

DATABAE FAILURES

A

ABORTED TRANSACTION
INCORRECT DATA

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

To check for autocommit status in InnoDB, we will use the following query:

A

SELECT @@autocommit;

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

To demonstrate how to lock tables, first we will be setting autocommit = 0.

A

SET @@autocommit = 0;

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

To test Rollback:

A

ROLLBACK;

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

To manually start a transaction, we will be using Begin, or start transaction:

A

START TRANSACTION;

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

After a Transaction, if the transaction will be not having further changes, use commit.

A

COMMIT;

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