DBMS MODULE 6

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/54

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

55 Terms

1
New cards

Transaction

A unit of program execution that accesses and possibly updates database items.

2
New cards

ACID Properties

Set of properties ensuring reliable processing of transactions.

3
New cards

Atomicity

Ensures all operations of a transaction are completed or none at all.

4
New cards

Consistency

Ensures a transaction takes the database from one valid state to another.

5
New cards

Isolation

Ensures concurrent execution results match serial execution.

6
New cards

Durability

Ensures committed changes persist despite failures.

7
New cards

Transaction States

States through which every transaction passes during execution.

8
New cards

Active State

Transaction is executing read/write operations.

9
New cards

Partially Committed

State after final statement executed but before commit.

10
New cards

Committed

State after successful completion and commit.

11
New cards

Failed

State when normal execution cannot proceed.

12
New cards

Aborted

State when transaction is rolled back and database restored.

13
New cards

Serial Schedule

Schedule in which transactions execute one after another with no interleaving.

14
New cards

Concurrent Schedule

Schedule where instructions of different transactions are interleaved.

15
New cards

Conflict Serializable

Schedule equivalent to some serial schedule using conflict rules.

16
New cards

View Serializable

Schedule equivalent to a serial schedule based on reads/writes/views.

17
New cards

Conflicting Operations

Two operations conflict if they belong to different transactions and access same data with at least one write.

18
New cards

Recoverability

A schedule is recoverable if committed transactions never depend on uncommitted transactions.

19
New cards

Cascading Abort

If one transaction aborts, all dependent transactions also need to abort.

20
New cards

Cascadeless Schedule

Schedule where a transaction reads only committed values.

21
New cards

Strict Schedule

Schedule where writes/reads occur only after previous writes commit.

22
New cards

Concurrency Control

Methods to ensure correct execution of concurrent transactions.

23
New cards

Lock-Based Protocol

Protocol using shared and exclusive locks for controlling access.

24
New cards

Shared Lock (S-lock)

Allows transaction to read a data item.

25
New cards

Exclusive Lock (X-lock)

Allows transaction to read and write a data item.

26
New cards

Two-Phase Locking Protocol

Protocol where all locking happens before unlocking.

27
New cards

Growing Phase

Transaction obtains locks but does not release any.

28
New cards

Shrinking Phase

Transaction releases locks but cannot acquire new ones.

29
New cards

Strict 2PL

All exclusive locks held until commit; prevents cascading aborts.

30
New cards

Timestamp-Based Protocol

Uses timestamps to order transaction execution.

31
New cards

Wait-Die Scheme

Older transaction waits; younger transaction aborts.

32
New cards

Wound-Wait Scheme

Older transaction preempts younger; younger aborts.

33
New cards

Deadlock

Condition where two or more transactions wait for each other.

34
New cards

Deadlock Prevention

Ensures system never enters a deadlock state.

35
New cards

Deadlock Detection

System allows deadlock and periodically checks for cycles.

36
New cards

Deadlock Recovery

Process of aborting transactions to break deadlock.

37
New cards

Failure Classification

Types of failures affecting transaction execution.

38
New cards

Transaction Failure

Failure due to logical or arithmetic errors.

39
New cards

System Crash

Failure due to hardware/software crash.

40
New cards

Disk Failure

Failure due to disk corruption or bad sectors.

41
New cards

Log-Based Recovery

Uses a log to redo or undo transactions after failure.

42
New cards

Undo Logging

Writes

43
New cards

Redo Logging

Writes

44
New cards

Undo/Redo Logging

Writes both old and new values to log.

45
New cards

Checkpoint

A recovery mechanism that reduces amount of log scanned during recovery.

46
New cards

Shadow Paging

A recovery method using two page tables: shadow and current.

47
New cards

Before-Image

Value of data item before modification.

48
New cards

After-Image

Value of data item after modification.

49
New cards

Write-Ahead Logging

Rule ensuring log records are written before database updates.

50
New cards

Dirty Read

Read of a value written by an uncommitted transaction.

51
New cards

Starvation

Transaction waits indefinitely due to repeated rollbacks or delays.

52
New cards

Lost Update Problem

Two transactions overwrite each other’s updates.

53
New cards

Temporary Update Problem

Uncommitted updates visible to other transactions.

54
New cards

Incorrect Summary Problem

Inconsistent aggregated results due to interleaving.

55
New cards

Explore top flashcards