F4109 - Database System
F4109 - Database System
F4109 - Database System
UNIT 1
DATABASE SYSTEM
INTRODUCTION TO DATABASE
PART 1
File-Based Systems
• Duplication of data
– Same data is held by different programs.
– Wasted space and potentially different values and/or
different formats for the same item.
• Arose because:
– Definition of data was embedded in application
programs, rather than being stored separately and
independently.
– No control over access and manipulation of data beyond
that imposed by application programs.
• Result:
– the database and Database Management System (DBMS).
• A view mechanism.
– Provides users with only the data they want or need to
use.
ADVANT ●
●
Conceptual simplicity
Database security and integrity
Data independence
AGES Efficiency
●
DISADVA ●
●
Complex implementation
Difficult to manage and lack of standards
Lacks structural independence
●
Applications programming and use complexity
NTAGES ●
Implementation limitations (no M:N relationship)
Conceptu
ADVANTAGES
DISADVANTAGES
Syste
al
simplicity m
Handles compl
more
relations
exity
hip types Lack of
Data struct
access
flexibility
ural
Promotes indepe
database ndenc
integrity
Data e
independ
ence
Conform
ance to
standard
s
ADVANTAGES DISADVANTAGES
• Complexity
• Size
• Cost of DBMS
• Additional hardware costs
• Cost of conversion
• Performance
• Higher impact of a failure
PART 2
Objectives of Three-Level
Architecture
All users should
1 2 A user’s
3 view is
be able to access immune to changes
same data. made in other views
Refers to Refers to
PHYSICAL
LOGICAL
immunity immunity
of external of
schemas conceptual
to changes schema to
in changes in
conceptual the
schema internal
Conceptua schema.
l schema Internal
changes schema
(e.g. changes
(e.g. using
addition/r
different
emoval of
file
entities)
organizatio
Should not
ns, storage
require structures/
changes to devices).
external Should not
schema or require
rewrites of change to
application conceptual
programs or external
schemas.
prepared by: [email protected]
Data Independence and the ANSI-SPARC
Three-Level Architecture
NONPRO-
DDL DML PRO-DML 4 GL
DML
●
Description ●
Query
language
Languages
●
Define or ●
Provides ●
allows user ●
allows user ●
Forms
modify the basic data to tell to state
Generators
schema not manipulatio system what data is ●
Report
manipulate n operations exactly how needed
Generators
data on data held to rather than ●
Graphics
●
associated in the manipulate how it is to
Generators
integrity and database data be retrieved ●
Application
security
Generators
constraints prepared by: [email protected]