Chapter 2: DBMS Architecture and Data Abstraction
DBMS Architecture and Data Abstraction
Three-Level Architecture of DBMS:
1. External Level (View Level):
- Closest to the users.
- Describes only part of the entire database that a particular user group is interested in.
- Users have different views customized to their needs.
2. Conceptual Level (Logical Level):
- Describes what data is stored in the database and the relationships among the data.
- Hides the physical storage details.
- Focuses on logical structure like tables, relationships, constraints, etc.
3. Internal Level (Physical Level):
- Closest to the storage system.
- Describes how the data is actually stored in the database (e.g., indexes, pointers, data blocks).
Mapping Between Levels:
- External/Conceptual Mapping: Maps user views to the logical schema.
- Conceptual/Internal Mapping: Maps logical schema to the physical storage.
Data Independence:
- Logical Data Independence: Ability to change the logical schema without altering external
schemas.
- Physical Data Independence: Ability to change the internal schema without altering the conceptual
schema.
Importance of 3-Level Architecture:
- Separates user applications and physical database.
- Enhances database security and abstraction.
- Provides flexibility to modify storage structure or user views independently.
Summary:
- DBMS follows a three-level architecture: External, Conceptual, and Internal.
- Data abstraction helps in separating the logical and physical aspects of the data.
- Data independence is a key advantage of this architecture.