Transaction Managment Flashcards

1
Q

How layers has DBMS have

A

3

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

The inner most layer ( the kernel ) concerns itself with:

A

Hardware failure
Software failure
Consistency of the database

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

Transaction management is further subdivided into:

A

Transaction support
Concurrency control
Database recovery

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

Concurrency and recovery control required:

A

Are required to protect the database from inconsistencies and data loss

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

Concurrency allow DBMS’s what

A

Many DBMSs allow users to carry out operations on the database

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

Concurrency , If the operations are not controlled ,what?

A

database will become inconsistent

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

Recovery, mean
Eg.

Explain

A

Is the process of restoring the database to a correct state following a failure

Ex. A failure may be a result of:
A system crash
A software error

Whatever the reason, DBMS must be able to recover from the failure and restore the database to a consistent state

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

Consider an application program which processes the sale of stock

A

Contains a several database operations

Is a read write transaction data is being updated

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

What transaction

Transaction might be what

A

Is a logical unit of work on the database

Might be :
An entire computer application
A single command such as select , insert , update , delete

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

Transaction outcome

Successful:

A

Transaction completes successfully

Transaction is said to have committed

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

Transaction unsuccessful

A

Transaction does not complete successfully

Transaction is aborted

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

SQL COMMIT statement

A

Statement makes transaction updates permanent

Signifies a successful transaction

If it is decided that a committed transaction was a mistake :
Another transaction to reverse its effects must be performed
Revert to database backup files

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

SQL ROLLBACK statement

A

Statement undoes any transaction updates made since the start of the transaction

Signifies an unsuccessful transaction

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

Transaction properties

A

Atomicity
Consistency
Isolation
Durability

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

Reliability and consistency are compromised when:

A

Software and hardware failures occur

Must be maintained at all times

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

Explain Atomicity

A

All or nothing property
Either the entire transaction is performed or it is not performed at all

If one operation fails, all must be undone

17
Q

Explain consistency

A

All transactions must preserve the consistency and integrity of the database.

18
Q

Isolation mean

A

Transaction execute independently of one another

19
Q

Durability

A

When transaction completes , the updates made by the transaction must be durable

20
Q

Serialisability mean

Example

A

Ensures that concurrent execution of several transactions yields consistent results

Ex. T1 = T2 = T3 = result
T2 = T3 = T1 = result
T3 = T2 = T1 = result

21
Q

What are high level database modules of DBMS Architecture (4)

A

Transaction
Concurrency
Recovery
Control

22
Q

Transaction manager

A

It communicates with the scheduler, the module responsible for implementing a particular strategy for concurrency control

23
Q

Recovery manager

A

Ensure that the database is restored to the state it was in at the start of the transaction

24
Q

Buffer manager

A

Is responsible for the transfer of data between disk storage and main memory

25
Q

Concurrency control

A

Is a process of managing simultaneous operations on the database without having them interfere with each other

26
Q

What are the three potential problems caused by concurrency

A

Lost update
Uncommitted dependency
Inconsistent analysis

27
Q

Explain lost update problem

A

Successfully completed update operation by one transaction can be overridden by another transaction

28
Q

Lost update, how can we prevent this update from being lost?

A

The loss of T2s update could be avoided by preventing T1 from reading the account balance until after T2s update has been completed

29
Q

Uncommitted dependency problem

A

occurs when one transaction is allowed to see the results of another transaction before it has committed

30
Q

Inconsistent analysis problem

A

Occurs when a transaction reads several values but a second transaction updates some of them during the execution of the first transaction

Transactions that only read the database can also sometimes produce inconsistent

31
Q

Serialisability means

A

Is a means of identifying those transactions which are guaranteed to ensure consistency

32
Q

Schedule

A

A transaction consists of a sequence of reads and writes to the database

33
Q

Serial Schedule

A

Schedule where the operations of each transaction are executed consecutively without any operations from other transactions

34
Q

Nonserial schedule

A

A schedule where the operations from a set of concurrent transactions are interleaved

35
Q

Transaction log

A

transaction log is a sequential record of all changes made to the database while the actual data is contained in a separate file.

36
Q

Relational data model

A

Nb