Ch2 - Three Level Architecture
Ch2 - Three Level Architecture
Management System
1
Early Two Level Architecture
2
1. Schema
2. Subschema
3
Three Level Architecture
There are following three levels or layers of DBMS architecture:
External Level
Conceptual Level
Internal Level
4
5
External Level or View level
6
Conceptual Level or Logical level
•It is the community view of the database.
•This level describes what data is stored in the database and the
relationships among the data.
•It represents:
All entities, their attributes, and their relationships;
The constraints on the data;
Security and integrity information.
7
Internal Level or Storage level
8
The internal level is concerned with such things as:
Storage space allocation for data and indexes;
Record descriptions for storage (with stored sizes for data items);
Record placement;
Data compression and data encryption techniques.
9
Schema
•The overall description of the database is called the Database
Schema.
•A schema is defined as an outline or a plan that describes
describes the records records and relationships relationships
existing at the particular level.
• The schema is sometimes called the intension of the database,
while an instance is called an extension (or state) of the
database.
10
11
Mapping between Views
External/Conceptual Mapping:
12
Conceptual/Internal Mapping:
13
Data Independence-Achievement of Layered Architecture of DBMS
There are two kinds of data independence:
Logical data independence
Physical data independence
14
Physical data independence
Physical data independence indicates that the physical storage
structures or devices could be changed without affecting
conceptual schema.
15
The Procedure for Database Access
16
Metadata or Data Dictionary
17