Beruflich Dokumente
Kultur Dokumente
CONCEPTS OF
DATABASE SYSTEMS
Database Systems
INTRODUCTION TO DATABASE SYSTEMS
What Is a Database System?
can be viewed as a “repository for data” or “a
collection of data.”
Implicit properties:
It represents aspects of a real world.
It is collection of coherent (related) data.
1
… INTRODUCTION TO DATABASE SYSTEMS
DBMS?
DBMS is then a general-purpose software that
facilities the processes of
Defining
Constructing
Manipulating, and
Sharing database.
2
EVOLUTION OF A DATABASE SYSTEM
1st generation was file system, such as ISAM
and VSAM.
2nd generation was hierarchical database
systems, such as IMS and System 2000.
3rd generation was the network model
CODASYL (Conference on Data Systems
Languages) database systems.
4th generation relational database
technology.
Commercially available systems in late 70s and early
80s, such as Oracle, SQL/DB and DB2 and INGRES
Relational and past-generation database systems
are called conventional database systems.
3
… EVOLUTION OF A DATABASE SYSTEM
Shortcomings of the conventional database technology :
too simple for modeling complex nested entities, such as design and
engineering objects, and complex documents.
support only a limited set of atomic data types, such as integer, string,
etc.
The performance of conventional database systems, unacceptable for
various types of compute-intensive applications, such as simulation
programs in computer-aided design and programming language
environments.
Application programs are implemented in some algorithmic
programming language
..
5th generation database technology will be characterized by
a richer data model and a richer set of database facilities.
Both the extended relational and object-oriented approaches are
viable, and that most likely systems adopting either approach co-exist.
4
LANDMARKS IN DATABASE SYSTEM HISTORY
1950s and early 1960s:
Magnetic disc into the usage of data storage.
Late 1962s and 1970s:
Hard disks come into play in late 1960s.
A paper by Codd [1970] on relation model, querying and
relational database.
1980s:
commercially available systems in late 70s and early
80s, such as Oracle, SQL/DB and DB2
Late 1990s:
WWW and Multimedia
Object-Oriented Programming
5
DATABASE SYSTEM REQUIREMENTS
Consistency: ensure that the data itself is
consistently.
Concurrency: enable multiple users and
systems.
Performance: support reasonable response
times.
Standard Adherence: support standard
language
DDL
DML
Security: provide away to set access permissions.
Data isolation
Integrity problems
Atomicity problems
Security problems
7
DATABASE SYSTEM ARCHITECTURE
Centralized Database System Architecture
run on a single computer system
Data
8
TOW-TIER CLIENT/SERVER ARCHITECTURE
Middle Tier
Fat Client Application
Thin Client Application 9
THREE-TIER CLIENT/SERVER ARCHITECTURE
Client
User Tier
Web Server
Business
Tier
Data Server
Data Tier
Storage Manager
Authorization and integrity manager
Transaction manager
File manager
Buffer manger
Query Processor
DDL interpreter (compiler)
DML compiler
Query evaluation engine
11
COMPONENTS AND FUNCTIONALITIES OF A DATABASE SYSTEM
Storage Manager
Network Model
permitted the modeling of many-to-many
relationships in data
In 1971, the Conference on Data Systems Languages
(CODASYL) formally defined the network model
Relational Model
13
RELATIONAL MODEL
The history of the relational database began with
E.F. Codd's 1970 paper
Allows the definition of data structures, storage
and retrieval operations and integrity
constraints.
The data and relations between them are
organized in tables.
14
… RELATIONAL MODEL
Properties of Relational Tables:
Values Are Atomic
Each Row is Unique
Column Values Are of the Same Kind
The Sequence of Columns is Insignificant
The Sequence of Rows is Insignificant
Each Column Has a Unique Name
15
HIGH-LEVEL (CONCEPTUAL) MODEL
Entity–Relationship Model
Entity
Attribute
Relationship
Object-Oriented Model
advancement of the Object-Oriented
Programming (OOP)
object-oriented data model
object-relational data model
16
STEPS OF DATABASE DESIGN
Requirements analysis
Design
Implementation
17
REQUIREMENTS ANALYSIS ISSUES
What user views are required (present
and future)?
What data elements are required in these
user views?
What are the primary keys that uniquely
identify entities in the organization?
What are the relationships between data
elements?
What are the operational requirements
such as security, integrity, and response
time?
18
STEPS IN REQUIREMENTS ANALYSIS
Identify scope of the design effort.
Establish metadata collection standards.
19
DESIGN
Conceptual Design
Synthesis of information from requirements
analysis according to semantic rules.
Implementation (Logical) Design
Transforms the conceptual data model into an
internal model - schema that can be processed
by a particular DBMS.
Physical Design
High level design of
internal storage structures, record formats, access
methods, record blocking and so on .
20
DATABASE SYSTEM DESIGN STEPS Part of the Real
World
Problem
Requirement
Analysis
Functional Conceptual
Analysis Design
Implementation
(Logical) Design
Application Program
DBMS Implementation
Design
Dependent (Logical) Schema
Internal Schema
Implementation (Low-level
Data Model) 21
Application Program