Escolar Documentos
Profissional Documentos
Cultura Documentos
and Architecture
Part I
August 5, 2019
Database System Architecture
Architecture:
framework on which subsequent
concepts can build
Useful for describing general DB concepts and
the structure of specific DB systems
Architecture
proposed by the ANSI/SPARC
Study Group on Data Base Management
Systems
The framework presented here is not only the
single possibility
2
The Levels of Abstraction
Three level ANSI/SPARC architecture
External Level
(Individual User View)
concerned with the way the data is
seen by individual users
Conceptual Level
(Community User View)
a level of indirection between the other two
Internal level
(Storage View)
concerned with the way the data is
stored inside the system
3
What is in each Level?
Implementation level: defined in machine-
Internal Level oriented constructs such as bits and bytes
Data storage details, access path
Conceptual Level (Structure of the entire database)
Entities, data types, relationships, user operations,
constraints
Model levels: defined in user-oriented
External Level constructs such as records and fields
Part of the database interested to a particular user group
Remember:
many distinct “external views”, but
precisely one “conceptual view”, consisting of an abstract
representation of the DB in entirety, and
precisely one “internal view”, representing the DB as stored
internally 4
External (C) An Example
Struct employee corresponding
{ data items can External (COBOL)
char empno (6); have different
names at different
01 EMPC.
int salary;
} points 02 EMPNO PIC X(6)
- possible with the 02 DEPTNO PIC X(4)
Conceptual mapping
EMPLOYEE
EMPLOYEE_NUMBER CHARACTER (6)
DEPARTMENT_NUMBER CHARACTER (4)
SALARY INTEGER (5)
Internal control information
e.g., codes, flags, or pointers
STORED_EMPLOYEE BYTES=20
PREFIX BYTES=6, OFFSET=0
EMP# BYTES=6, OFFSET=6,INDEX=EMPX
DEPt# BYTES=4, OFFSET=12
PAY BYTES=4, ALIGN=FULLWORD, OFFSET=16
5
Detailed System Architecture
6
The External Level (Individual User Level)