FDB2
FDB2
Chapter 2
Database system
architecture
Data models
2
Physical Level:
Describes How the data are stored., how is it
accessed
how data is modified, is data ordered (index, B-
tree, hashing),
Lowest level of abstraction.
Conceptual Level:
Next highest level of abstraction.
Describes what data are stored.
Describes the relationships among data.
Database administrator level.
levels of abstraction
4
View Level:
Highest level.
Describes part of the database for a
particular group of users.
Can be many different views of a database.
levels of abstraction
5
Categories of Data Model
models
Relational data model,
Network data model and
Hierarchical data model
8
Advantages of RDBMS
Flexible and well-established
used over many years. thus stable,
standardized products available.
Standard data access language through
SQL.
The fundamental structure, i.e., a table, is
easily understood and the design.
Relational model
10
Weakness of RDBMS
Performance problems associated with re-
assembling simple data structures into their
more complicated real-world representations.
Lack of support for complex base types, e.g.,
drawings
SQL is limited when accessing complex data.
Knowledge of the database structure is
required to create specific purpose queries.
11
b) Network model
Data are represented by collections of
records.
Relationships among data are
represented by links
Network model
12
c) Hierarchical model:
data is represented by a simple tree
structure.
A parent record can have many child
between records.
Hierarchical model:
14
Hierarchical model:
15
advantages of a hierarchical database :
Efficient representation of hierarchical structures,
reference exists
disadvantages of a hierarchical database :
Lack of flexibility (non-hierarchical relationships are
Lack of maintainability
object.
These bodies of code are called methods.
Objects that contain the same types of values and the same
The only way in which one object can access the data of another
Database Schema
The description of a database.
Includes descriptions of the database
structure, data types, and the constraints
on the database.
Schema Diagram
An illustrative display of (most aspects of)
a database schema.
data type and relationships are not
specified.
Schema Construct
Each object of the schema , e.g., STUDENT,
COURSE.
Example of a Database
20
Schema
Database state(instance)
21
Database State
Refers to the content of a database at a
moment in time.
Initial Database State
Refers to the database state when it is
initially loaded into the system.
Valid State
A state that satisfies the structure and
constraints of the database.
Database Schema
vs. Database State
24
Distinction
The database schema changes very
infrequently.
The database state changes every time
the database is updated.
Three –level
Architecture(ANSI/SPARC
Architecture
Proposed to support DBMS characteristics
of:
Program-data independence.
Support of multiple views of the data.
Its goal is to separate the user
applications and the physical database.
Three –level Architecture
26
Data independence:
the ability to modify the schema in one level without
affecting the schema in the higher level.
There are two levels of data independence
Logical data independence : is the ability to make
change in the conceptual schema without causing a
change in the user views or application program .
Physical data independence :is the ability to
make change in the internal schema without causing
a change in the conceptual schema or application
program .
Logical data independence is harder to achieve.
Database Languages
30
APPLICATION
DBA Staff Casual users PROGRAMS
Precompiled
execution
Run-time Database
execution execution
Processor
Concurrency Control/
Stored Data Manager Backup/Recovery
Subsystems
STORED DATABASE
DBMS Component
33
Modules
Disk access control
Stored Data Manager
OS
Compilers
DDL Compiler
Query Compiler
DML Compiler
Precompiler /Host language compiler
Handling DB access at runtime
Runtime database processor
Classification of DBMSs
34
Data models
Level of Abstraction
Database Architecture
Data Independence
Database Languages
Classification of DBMSs
37
Quiz !!