Transaction Concurrency Control Flashcards

1
Q
  • any action that reads from or writes to a database.
  • sequence of database requests that accesses the database.
A

Transaction

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

a logical unit of work; that is, it must be entirely completed or aborted—no intermediate ending states are accepted

A

Transaction

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

Transaction support is provided by two SQL statements

A

COMMIT and ROLLBACK.

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

____ require that when a transaction sequence is initiated by a user or an
application program, the sequence must continue through all succeeding SQL statements

A

ANSI standards

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

This keeps track of all transactions that update the database

A

transaction log

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

A DBMS feature that coordinates the simultaneous execution of transactions in a
multiprocessing database system while preserving data integrity

A

Concurrency Control?

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

Three main problems of Concurrency Control

Problem occurs when two concurrent transactions, T1 and T2, are updating the same
data element and one of the updates is lost (overwritten by the other transaction).

A

Lost Updates

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

It occurs when two transactions, T1 and T2, are executed concurrently and the first transaction (T1) is rolled back after the second transaction (T2) has already accessed the uncommitted data—thus violating the isolation property of transactions.

A

Uncommitted Data

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

It occur when a transaction accesses data before and after one or more other transactions finish working with such data.

A

Inconsistent Retrieval

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

a special DBMS process that establishes the order in which the operations are
executed within concurrent transactions.

A

Scheduler

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

The scheduler ________ the execution of database operations to ensure
serializability and isolation of transactions

A

interleaves

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

scheduler’s main job

A

to create a serializable schedule of a transaction’s operations

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

guarantees exclusive use of a data item to a current transaction.

A

lock

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

The use of locks based on the assumption that conflict between transactions is likely usually referred to as

A

pessimistic locking

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

issued when a transaction requests permission to update a data item and no locks are held on that data item by any other transaction. An exclusive lock does not allow other transactions to access the database

A

exclusive lock

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

allows other read only transactions to access the database.

A

shared lock

17
Q

a condition in which only one transaction at a time can own an exclusive lock on the same object.

A

mutual exclusive rule

18
Q

assigns a global,
unique time stamp to each transaction.

A

time stamping

19
Q

ensures that no equal time stamp values can exist

A

Uniqueness

20
Q

ensures that time stamp values always increase.

A

monotonicity

21
Q

________ is based on the assumption that the majority of database operations do not conflict.

A

optimistic approach

22
Q

In this phase the transaction reads the database, executes the needed computations, and makes the updates to a private copy of the database values.

A

read phase

23
Q

During this phase, the transaction is validated to ensure that the changes made will not affect the integrity and consistency of the database.

A

validation phase

24
Q

During this phase, the changes are permanently applied to the database.

A

write phase

24
Q

The ____ defines transaction management based on transaction isolation levels.

A

ANSI SQL standard (1992)

25
Q

a transaction can read data that is not yet committed.

A

Dirty read

26
Q

a transaction reads a given row at time t1, and then it reads the same row at time t2, yielding different results. The original row may have been updated or deleted.

A

Nonrepeatable read

27
Q

a transaction executes a query at time t1, and then it runs the same query at time t2, yielding additional rows that satisfy the query.

A

Phantom read

28
Q

At this isolation level, the database does not place any locks on the data, which increases transaction
performance but at the cost of data consistency

A

Read Uncommitted

29
Q

forces transactions to read only committed data.

A

Read Committed

30
Q

isolation level ensures that queries return consistent results. This type of isolation level uses shared locks to ensure other transactions do not update a row after the original query reads.

A

The Repeatable Read

31
Q

restores a database from a given state (usually inconsistent) to a previously consistent state.

A

Database recovery

32
Q

all portions of the transaction must be treated as a single, logical unit of work in which all operations are applied and completed to produce a consistent database

A

atomic transaction property

33
Q

ensures that transaction logs are always written before any database data is actually updated.

A

write-ahead-log protocol

34
Q

(several copies of the transaction log) ensure that a physical disk failure will not impair the DBMS’s ability to recover data

A

Redundant transaction logs

35
Q

are temporary storage areas in primary memory used to speed up disk operations

A

Database buffers

36
Q

are operations in which the DBMS writes all of its updated buffers in memory (also known as dirty buffers) to disk.

A

Database checkpoints