Sie sind auf Seite 1von 23

FUNDAMENTAL

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.

 It is designed, built and populated to address a


specific situation in real world.

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.

 Reliability: keep the stored data intact. 6


DATABASE SYSTEM VERSUS FILE SYSTEM
 Data redundancy and inconsistency
 Difficulty in accessing data

 Data isolation

 Integrity problems

 Atomicity problems

 Concurrent access anomalies

 Security problems

7
DATABASE SYSTEM ARCHITECTURE
 Centralized Database System Architecture
 run on a single computer system

 Client/Server Architecture for a Database System


 Two machines acting as:
 Server
 Client

 Two-Tier Client/Server Architecture


 Three-Tier Client/Server Architecture
 Presentation
 Business

 Data

8
TOW-TIER CLIENT/SERVER ARCHITECTURE

Client Client Client Client Client


Process

File Mail DBMS Server


Server Server Server Process

Fig 1. Structure of 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

Fig 2. Logical three-tier client/server architecture for a web application


10
COMPONENTS AND FUNCTIONALITIES OF A DATABASE SYSTEM

 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

Application Application Query Tools Administration


Interfaces Programs Tools

Compiler and DML Queries DDL Queries


Linker
Application
Program Object DML Compiler and DDL Interpreter
Code Organizer
Query Evaluation
Engine Query Processor

Authorization and Transaction


Buffer Manager File Manager Integrity Manager Manager

Storage Manager

Data Dictionary Disk Storage


Indices
Data Statistical Data

Fig 3. Database System Structure 12


TYPES OF DATA MODELS
 Implementation (or representational)
data models
 Hierarchical Model
 Hierarchy of parent and child data segments
 parent-child relationship is one – to – many

 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.

 Identify user views.


 User View
 Build a data dictionary.
 Identify data volumes and usage patterns.

 Identify operational (functional)


requirements.

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 Requirement Data Requirement

Functional Conceptual
Analysis Design

High-level Conceptual Schema


DBMS Transaction (High-level
Independent Specification Data Model)

Implementation
(Logical) Design

Application Program
DBMS Implementation
Design
Dependent (Logical) Schema

Application Program Physical


Structure Design

Internal Schema
Implementation (Low-level
Data Model) 21
Application Program

Fig 4. Database System Design Steps


- END -

Das könnte Ihnen auch gefallen