Database Design and Management
Database Design and Management
MANAGEMENT
CHAPTER 1
THE DATABASE AND ITS ENVIRONMENT
INTRODUCTION :
File: A collection of records or documents
dealing with one organization, person,
area or subject. (Rowley)
Manual (paper) files
Computer files
Application File
Delivery Toys
List Addresses
Coal
Estimation Naughty
Just what
asked for Nice Toys
Problems in a File-based System
Consistency of Data
Integration of Data
Sharing of Data
Data Independence
DBMS
===============
Design tools
Table Creation
Form Creation
Query Creation
Report Creation Application
Procedural
Database language
Programs
compiler (4GL)
=============
Run time
Database contains:
Form processor
User’s Data Query processor
User
Metadata Report Writer Interface
Indexes Language Run time Applications
Application Metadata
TYPES OF DATABASE SYSTEMS
PC Databases
Centralized Database
Client/Server Databases
Distributed Databases
DATABASE ENVIRONMENT
Repository
DBMS Database
PC DATABASES
E.G.
Access
FoxPro
Dbase
Etc.
CENTRALIZED DATABASES
Cental
Computer
CLIENT SERVER DATABASES
Client
Client
Network
Database
Server
Client
DISTRIBUTED DATABASES
Location B
Location C
computer
computer
Homogeneous
computer Databases
Location A
DISTRIBUTED DATABASES
Heterogeneous Client
Or Federated Remote
Databases Comp.
Database
Server
Local Network
Comm
Server
Remote
Client Comp.
RANGE OF DATABASE APPLICATIONS
PC databases
Usually for individual
WorkGroup databases
Small group use where everyone has access to the
database over a LAN
Departmental databases
Larger than a workgroup – but similar
Enterprises databases
For the entire organization over an intranet (or
sometimes the internet)
USERS IN A DATABASE ENVIRONMENT
Database Users
PERSONNEL IN A DATABASE ENVIRONMENT
DA
Data Adminstrator - person responsible for the Data
Administration function in an organization
Sometimes may be the CIO -- Chief Information Officer
DBA
Database Administrator - person responsible for the Database
Administration Function
TERMS AND CONCEPTS
Data Administration
Responsibility for the overall management of
data resources within an organization
Database Administration
Responsibility for physical database design and
technical issues in database management
Data Steward
Responsibility for some subset of the
organization’s data, and all of the interactions
(applications, user access, etc.) for that data
TERMS AND CONCEPTS
Models
(1) Levels or views of the Database
Conceptual, logical, physical
Books
(id, title)
Authors
Publisher Subjects
(first, last)
DATA MODELS(2): HISTORY
Network Model (1970’s)
Provides for single entries of data and navigational
“links” through chains of data.
Authors
Subjects Books
Publishers
DATA MODELS(2): HISTORY
Relational Model (1980’s)
Provides a conceptually simple model for data as
relations (typically considered “tables”) with all data
visible. pubid pubname Authorid Author name
1 Smith
1 Harper
Book ID Title pubid Author id 2 Wynar
1 Introductio 2 1 2 Addison 3 Jones
2 The history 4 2 3 Oxford 4 Duncan
5 Applegate
3 New stuff ab 3 3 4 Que
4 Another title 2 4
5 And yet more 1 5
Book ID Subid Subid Subject
1 2 1 cataloging
2 1
3 3 2 history
4 2 3 stuff
4 3
DATA MODELS(2): HISTORY
Object Oriented Data Model (1990’s)
Encapsulates data and operations as “Objects”
Books
(id, title)
Authors
Publisher Subjects
(first, last)
DATA MODELS(2): HISTORY
Object-Relational Model (1990’s)
1. Combines the well-known properties of the Relational Model with such OO
features as:
User-defined datatypes
User-defined functions
Inheritance and sub-classing
2. Extend the relational data model by including object orientation and constructs to
deal with added data types.
3. Allow attributes of tuples to have complex types, including non-atomic values
such as nested relations.
4. Preserve relational foundations, in particular the declarative access to data, while
extending modeling power.
5. Provide upward compatibility with existing relational languages.
DATABASE ARCHITECTURE
The American National Standards Institute/Standards Planning and
Requirements Committee (ANSI/SPARC) has established a three-
level architecture for a DBMS: internal, conceptual and external.
The architecture of a database systems is greatly
influenced by the underlying computer system on which
the database is running:
1. Centralized
2. Client-server
` (multi-processor)
3. Parallel
4. Distributed