BSE1123/CS253 - Database/Databases: Chapter 2 - Database Architecture & Conceptual Data Models
BSE1123/CS253 - Database/Databases: Chapter 2 - Database Architecture & Conceptual Data Models
BSE1123/CS253 - Database/Databases: Chapter 2 - Database Architecture & Conceptual Data Models
DATABASE/DATABASES
Chapter 2 -
Database Architecture &
Conceptual Data Models
1
Chapter 2 - Objectives
2
Objectives of Three-Level
Architecture
• All users should be able to access same data.
3
Objectives of Three-Level
Architecture
• DBA should be able to change database storage
structures without affecting the users’ views.
4
ANSI-SPARC Three-Level
Architecture
5
Three-Level ANSI-SPARC
Architecture
1. External Level
– This is the highest level of data abstraction.
– It describes only part of the entire database that a
end user concern.
– It is also known as a view level.
– End users need to access only part of the database
rather than entire database.
– Different user need different views of database.
And so, there can be many view level abstractions
of the same database.
6
Three-Level ANSI-SPARC
Architecture
2. Conceptual Level
– This is the next higher level than internal level of data
abstraction.
– It describes What data are stored in the database and
What relationships exist among those data.
– It is also known as Logical level.
– It hides low level complexities of physical storage.
– Database administrator and designers work at this level
to determine What data to keep in database.
– Application developers also work on this level
7
Three-Level ANSI-SPARC
Architecture
3. Internal Level
– This is the lowest level of data abstraction.
– It describes how the data are stored on storage devices.
– It is also known as physical level.
– It provides internal view of physical storage of data.
– It deals with complex low level data structures, file
structures and access methods in detail.
– It also deals with Data Compression and Encryption
techniques, if used.
9
Data Independence
10
Data Independence
11
Data Independence
12
Data Independence and the ANSI-
SPARC Three-Level Architecture
13
Database Languages
14
Database Languages
• Procedural DML
– allows user to tell system exactly how to manipulate data.
• Non-Procedural DML
– allows user to state what data is needed rather than how it is to be
retrieved.
• Fourth Generation Languages (4GLs)
- Encompasses
• Presentation languages; query language and report generator
• Speciality language; spreadsheets
• Application generator that define, insert, update, retrieve data from
the database to build application
• Very high-level language; used to generate application code
15
Data Model
• Define how the logical structure of a database is
modelled.
• Fundamental entities to introduce abstraction in a
DBMS.
• Define how data is connected to each other and
how they are processed and stored inside the
system.
• Data Model comprises:
– a structural part;
– a manipulative part;
– possibly a set of integrity rules.
16
Data Model
• Purpose
– To represent data in an understandable way.
17
Data Models
19
Network Data Model
20
Hierarchical Data Model
21
Conceptual Modelling
22
System Catalog
23
Components of a DBMS
24
Components of Database Manager
(DM)
25
LET’S RECAP!
26
Fill in the blanks with suitable answer
27
Fill in the blanks with suitable answer
30