DBMS Expt 4
DBMS Expt 4
DBMS Expt 4
Syllabus
Introduction to database Systems, advantages of database system over traditional
file system, Basic concepts & Definitions, Database users, Database Language,
Database System Architecture, Schemas, Sub Schemas, & Instances, database
constraints, 3-level database architecture, Data Abstraction, Data Independence,
Mappings, Structure, Components & functions of DBMS, Data models.
DBMS Module 4 1
ACID Properties:
2. Properties of Transactions:
3. Concurrency Control:
Challenges:
Types of Locks:
Exclusive Lock: Permits only the transaction holding the lock to write to the
resource, and others are blocked.
DBMS Module 4 2
Drawbacks:
Timestamp Ordering:
Thomas Write Rule: A write operation is not allowed if the timestamp of the
writing transaction is smaller than the timestamp of the last transaction that
read the data.
Validation Phase:
Read Transactions:
Can read any version of the data item based on their timestamp.
DBMS Module 4 3
Write Transactions:
Definition: Reapplies changes from the log to the database during recovery.
Purpose: Ensures committed changes, not yet written to the database, are
reinstated after a crash.
Undo Operation:
DBMS Module 4 4
System Crash (Hard Failure): Entire system crashes.
Storage Failures:
5. Recovery Techniques:
Shadow Paging:
Process: Changes are made in a shadow copy, becoming the main copy
after commit.
Process: Log records are written before changes are made, crucial for
recovery.
Checkpointing:
Immediate Update:
DBMS Module 4 5
Process: Changes are immediately reflected. Simpler but less resilient to
crashes.
Deferred Update:
Scans the log from the checkpoint to find the last committed transaction.
Redo Phase:
Undo Phase:
Validation Phase: Checks for conflicts after transaction execution. Rolls back and
re-executes if conflicts exist.
DBMS Module 4 6
Fundamental Concepts of Advanced Databases:
1. Distributed Databases:
Key Concepts:
Data Distribution
Replication
2. NoSQL Databases:
Key Concepts:
3. Big Data:
Definition: Handling and analyzing large and complex datasets that exceed
the capabilities of traditional databases.
Key Concepts:
Data Warehousing
4. Data Warehousing:
Key Concepts:
Data Marts
DBMS Module 4 7
OLAP (Online Analytical Processing)
5. Data Mining:
Key Concepts:
Clustering
Classification
6. Blockchain Databases:
Key Concepts:
Smart Contracts
Immutability
7. In-Memory Databases:
Definition: Data stored in the system's main memory (RAM) for faster
access and retrieval.
Key Concepts:
Reduced Latency
Increased Throughput
Real-Time Analytics
8. Temporal Databases:
Key Concepts:
Temporal Queries
Temporal Constraints
DBMS Module 4 8
9. Spatial Databases:
Definition: Databases that manage spatial data and support spatial queries.
Key Concepts:
Spatial Indexing
Spatial Operations
Key Concepts:
Encryption Algorithms
Access Control
Key Concepts:
Query Rewriting
Cost-Based Optimization
Key Concepts:
Predictive Modeling
Anomaly Detection
Recommendation Systems
DBMS Module 4 9
1. Detailed Storage Architecture:
A. Storage Hierarchy:
Controller: Manages data transfer between the disk and the computer.
C. File Systems:
Key Concepts:
D. Virtual Memory:
RAID 0 (Striping):
Description: Data is divided into blocks and written across multiple disks.
DBMS Module 4 10
RAID 1 (Mirroring):
Description: Data and parity information are striped across multiple disks.
Description: Similar to RAID 5, but with dual parity for enhanced fault
tolerance.
Drawbacks: Requires more storage capacity and has higher write overhead.
B. RAID Controllers:
Functions:
Disk Striping
Parity Calculation
C. Hot Spare:
Definition: An extra disk kept in the RAID array that automatically replaces a
failed disk.
DBMS Module 4 11
D. RAID Considerations:
Capacity Utilization: RAID 5 and RAID 6 use parity for efficient capacity
utilization.
Wear Leveling: Distributes write and erase cycles evenly across SSD cells.
DBMS Module 4 12