Lecture 2 Database Architecture and Life Cycle
Lecture 2 Database Architecture and Life Cycle
Lecture 2 Database Architecture and Life Cycle
and
Database Lifecycle
Lecture 2
Overview
• ANSI/SPARC architecture
• Database Design Lifecycle
• Project briefing
• Group presentations for next lecture
Database Architecture
Introduction
• In 1975 ANSI-SPARC proposed a framework
for DBs
– ANSI - American National Standards Institute
– SPARC - Standards Planning and Requirements
Committee
• This framework is a three-level architecture
with:
– Internal level: For systems designers
– Conceptual level: For database designers and
administrators
– External level: For database users
ANSI/SPARC architecture
Internal Schema/Level
RECORD EMP
LENGTH=44
HEADER: BYTE(5)
OFFSET=0
NAME: BYTE(25)
OFFSET=5
SALARY: FULLWORD
OFFSET=30
DEPT: BYTE(10)
OFFSET=34
Conceptual Level
• Deals with the organisation of the
data as a whole
– Abstractions are used to remove
unnecessary details of the internal level
– Used by DBAs and application
programmers
Conceptual Shema example
CREATE TABLE
Employee (
Name VARCHAR(25),
Salary REAL,
Dept_Name VARCHAR(10));
External Level
• Provides a view of the database tailored to a
user
– Parts of the data may be hidden
– Data is presented in a useful form
– Used by end users and application
programmers
External Schema
Payroll:
String Name
double Salary
Personnel:
char *Name
char *Department
Mappings
• Mappings translate information from one
level to the next
– External/Conceptual
– Conceptual/Internal
• These mappings provide data independence
Data Independence
• Physical data independence
– Changes to internal level shouldn’t
affect conceptual level
• Logical data independence
– Conceptual level changes shouldn’t
affect external levels
Data Independence
Applications insulated from
how data is structured and
stored.
Logical data independence: View 1 View 2 View 3