dbms
dbms
dbms
o ACID stands for Atomicity, Consistency, Isolation, and Durability. These are the key
properties that ensure reliable database transactions:
3. Transaction Management:
Concurrency control.
Failure recovery.
4. Conflict Management:
o Resolves issues when multiple transactions access the same data concurrently.
Techniques include:
Locking mechanisms.
Timestamp ordering.
Deadlock resolution.
o Ensures that once a transaction is committed, its changes are permanently stored in
the database, even in the case of a system crash.
o Ensures that a database moves from one valid state to another, maintaining all
integrity constraints during and after a transaction.
9. In DBMS (Database Management System), the scheduler process manages the order and
execution of database transactions to ensure consistency, isolation, and serializability in
concurrent access. Here's a short overview of the scheduler process:
Purpose:
Functions:
o Concurrency Control: Prevents conflicts among transactions (e.g., dirty reads, lost
updates).
o Lock Management: Applies locks (e.g., shared, exclusive) to control access to data.
Techniques Used:
Advantages:
o Efficient Resource Utilization: CPU and I/O devices are used effectively.
o Improved Response Time: Reduces wait time for users by overlapping transactions.
Concurrency Problems:
o Dirty Read: One transaction reads uncommitted data from another transaction.
o Lost Update: Two transactions update the same data, and one update is overwritten.
o Unrepeatable Read: A transaction reads the same data twice but gets different
results due to another transaction's update.
o Lock-Based Protocols:
Concurrency ensures that the database system can handle multiple user requests efficiently while
maintaining data integrity and correctness.
11. Serializability in DBMS is a concept in concurrency control that ensures the correctness of
database transactions when they are executed concurrently. It guarantees that the final
result of executing transactions concurrently is the same as if they were executed one after
the other in some order (serially).
Why is Serializability Important?
When multiple transactions run simultaneously, they may interact with the same data,
leading to problems like dirty reads, lost updates, or inconsistent results.
Serializability ensures that concurrent transactions maintain the integrity and consistency of
the database.
Types of Serializability:
1. Conflict Serializability:
2. View Serializability: