Chap 1 Fundamentals of Dbms
Chap 1 Fundamentals of Dbms
FUNDAMENTALS OF DATABASE
MANAGEMENT SYSTEM
DFC 2083 – DATABASE SYSTEM
DATABASE
Planning
Analysis
Logical Design
Physical Design
Implementation
Maintenance
DATABASE DEVELOPMENT
PROCESS
Planning
Planning Purpose–preliminary understanding
Deliverable–request for study
Analysis
Logical Design
Physical Design
Logical Design
Physical Design
Logical Design
Logical Design
Physical Design
Physical Design
Physical Design
Logical Design
Physical Design
Database activity–
database implementation, Implementation
Implementation
including coded programs,
documentation, Maintenance
installation and conversion
DATABASE DEVELOPMENT
PROCESS
Logical Design
Physical Design
Database activity–
database maintenance, Implementation
performance analysis
and tuning, error Maintenance
Maintenance
corrections
SHARING CONCEPT DATA IN
DATABASE
PROPERTIES OF DATABASES
Completeness Ensures that users can access the data they want.
Efficiency Ensures that users do not have unduly long response times
when accessing data.
Security problems
Database systems offer solutions to all the above problems
VARIOUS COMMON DBMS
Library
Hospital
University
Tourism
Organization
Problems: Traditional approach
Data Security
Data Redundancy
Data Isolation
Program/ Data Dependence
Concurrent Access Anomalies
Data Security
Centralize
A single central database
accessed by multiple users.
Distributed
Hierarchical
Network
Relational
Entity relationship
Object oriented
Evolution of Major Data
Models
The Hierarchical Model—
Evolution
North American Rockwell was the prime contractor for the Apollo
project which culminated in the moon landing.
This project required the management of millions of parts – a
complex computer file system was used.
An audit of the tapes revealed that 60% of the data was redundant
This led Rockwell to develop an alternate strategy to manage their
data
The Hierarchical Model—
Evolution
Created to
Represent complex data relationships more effectively
Improve database performance
Impose a database standard
Schema
Conceptual organization of entire database as viewed by the database
administrator
Subschema
Defines database portion “seen” by the application programs that actually
produce the desired information from data contained within the database
Data Management Language (DML)
Define data characteristics and data structure in order to manipulate the
data
Data Management
Language Components
Advantages
Conceptual simplicity
Handles more relationship types
Data access flexibility – no need for a preorder traversal
Promotes database integrity – must first define the owner and then the
member record
Data independence
Conformance to standards
The Network Data Model
(continued)
Disadvantages
System complexity
Lack of structural independence
The Relational Model
Table (relations)
Matrix consisting of a series of row/column
intersections
Related to each other by sharing a common entity
characteristic
Relational schema
Visual representation of relational database’s
entities, attributes within those entities, and
relationships between those entities
Linking Relational Tables
Relational Table
Advantages
Structural independence – changes in the relational data structure do not
affect the DBMS’s data access in any way
Improved conceptual simplicity by concentrating on the logical view
Easier database design, implementation, management, and use
Ad hoc query capability - SQL
Powerful database management system
The Relational Model
(continued)
Disadvantages
Substantial hardware and system software overhead
Can facilitate poor design and implementation
May promote “islands of information” problems
The Entity Relationship Model
Advantages
Exceptional conceptual simplicity
Visual representation
Effective communication tool
Integrated with the relational data model
The Entity Relationship Model
Disadvantages
Limited constraint representation
Limited relationship representation
No data manipulation language
Loss of information content
THREE-SCHEMA ARCHITECTURE
Objective :
separate each user’s view of the database from
the way it is physically represented.
THREE-SCHEMA ARCHITECTURE
END USER
USER 1
... USER 2
EXTERNAL
EXTERNAL VIEW 1 EXTERNAL VIEW 2
LEVEL
External/conceptual mapping
CONCEPTUAL CONCEPTUAL
LEVEL SCHEMA
Conceptual/internal mapping
STORED DATABASE
THREE-SCHEMA ARCHITECTURE
Internal Schema
Physical representation of the database on the
computer.
Describes the physical storage structure of the
database.
How the data is stored in the database.
THREE-SCHEMA ARCHITECTURE
Conceptual Schema
Describes the structure of the whole database for a
community of users.
It hides the details of physical storage structures and
concentrates on describing entities, data types,
relationships, user operations, and constraints.
THREE-SCHEMA ARCHITECTURE
External Schema
The user’s view of database.
It includes a number of external schemas or user
views.
Each external schema describes the part of the
database that a particular user is interested in and
hides the rest of the database from user.
CLIENT-SERVER ARCHITECTURE
Desktop databases:
Desktop databases are oriented toward single-
user applications and reside on standard
personal computers .
Desktop databases offer an inexpensive ,
simple solution to many less complex data
storage and manipulation requirements.
Example: Microsoft Access, FoxPro, FileMaker
Pro, Paradox and Lotus Approach.
CATEGORIES OF DBMS
Server Databases
Server databases contain mechanisms to ensure the
reliability and consistency of data and are geared toward
multi-user applications.
These databases are designed to run on high-
performance servers.
Example: Microsoft SQL Server, Oracle and IBM DB2.
BENEFIT OF DESKTOP DATABASES