Database Architecture
Database Architecture
Lecture 2
Database Architectures
2
Content
Example:
Database – ID, Name, DOB, Address, Tel, Salary
Manager – Name, Age, Tel, Annual Salary
Staff member – Name, Address, DOB, Salary
4
3-Level database architecture
5
3-Level database architecture
6
Analogy – @ Dragon Restaurant
Raw Vegetables,
Fridge
World Class Chef Fruits, Meat, Fish…
8
Thought Exercise
Conceptual
Schema Polite Waiter
Conceptual level
Internal
Internal level Schema Busy Chef, cook
Database Fridge
3-Level database architecture
10
Analogy – @ Dragon Restaurant
Serving
Waiter/Chef Serving/Cooking
independence
Cooking
11
3-Level database architecture
Conceptual
Schema
Internal
Schema
12
Multi-User DBMS Architecture
• Teleprocessing
• File-Server
• Client-Server
13
Teleprocessing
14
File-Server
Workstation 3:
Workstation 2:
App Prgs.
App Prgs.
& DBMS
& DBMS
Workstation 1:
App Prgs.
& DBMS
Database
File-server 15
File-Server
• Disadvantages:
16
Client-Server
Client 3:
Client 2:
App Prgs.
App Prgs.
Client 1:
App Prgs.
Database
Server 17
(with DBMS)
Client-Server
• Advantages:
18
Data Model
19
Components of a Data Model
• Structural part
+
• Manipulative part = Data Model
+
• Set of integrity rules
20
Major types of Data Model
21
Hierarchical data model
Library
Collection
E.g. collection of books at the library
Database
Author
Xx
Author
Zz relationships
Book o1 Book o2 Book o3
22
Hierarchical data model
Advantages: Disadvantages:
23
Network data model
Advantages: Disadvantages:
25
Relational Model
» Next week
26
Recap