Professional Documents
Culture Documents
ts6024 - Topic3 - DB - Lifecycle-20191104024431 2
ts6024 - Topic3 - DB - Lifecycle-20191104024431 2
Database Development
Lifecycle
1
Database Lifecycle
Definition
The process of designing, developing,
2
Database Lifecycle – contd.
Divided into separate stages:
Requirements specification
Design
Prototyping
Implementation
Testing
Operational Maintenance
3
Requirements
Specification
Database Design
Conceptual Design
DBMS
Application
Selection
Logical Design Design
Physical Design
Prototyping Implementation
Testing
Operational
Maintenance 4
Requirements Specification
The main activity of this stage is fact-
finding
Facts are found through the following sample
activities:
Organizational situation analysis
Organizational problem specification
Identify the objective, scope, and the boundaries
of system to be developed
Specify user and system requirements
Perform a system definition.
5
System Definition
An activity for defining the scope of the
database system, its users, and its
applications (views), in the form of
‘requirements’
6
System Definition Activities
1. Identifying the main applications of the
user group that will be using the
database
The primary representative from each
user group will be directly involved in the
subsequent steps.
9
Design Objectives
The main objectives of database design are to:
Represent the data and the relationships between
data that are needed by each application and user
group
10
Approaches to Database
Design
There are two main approaches to
design:
11
Top-Down Approach
Start by building a data model that
contains a few high-level entities and
relationship between entities
Refine each item in the data model to
identify lower-level entities,
relationships, and the necessary
attributes
Illustrated using the concepts of the
Entity-Relationship (E-R) model
Suitable for complex databases
12
Bottom-Up Approach
Starts with fundamental-level attributes and
through the analysis of the relationships
between each attribute
Method: Initially produce a few large tables to
contain sample data, and later reduce to
many smaller tables of entities with the same
dependencies
Normalization is an example of this
approach
Suitable for smaller and less complex
databases
13
Design Phases
The 3 main design phases are:
1. Conceptual design
2. Logical design
3. Physical design
14
Conceptual design
The process of constructing a model of
the data used in the organization
The result of this activity is a conceptual
model that is independent of all physical
considerations (system hardware, data
model, or DBMS package)
E-R modelling is the most popular
technique used in this phase
15
Logical Design
The process of constructing a model of
the data used in an organization, based
on a specific data model, but still
independent of particular DBMS and
other physical considerations.
16
Logical Design – contd.
Involves the mapping between the
conceptual model and the logical model
17
Conceptual design and Logical
design differences
In the logical model, the data model of the
DBMS must be known
In the conceptual model, entities relate directly
(e.g. a CUSTOMER orders PRODUCTS), but in
the logical model the representation of the
relationship data must be specific (e.g. a
CUSTOMER can make many ORDERS, each
ORDER can only come from one CUSTOMER,
an ORDER can contain one or many
PRODUCTS, a product may or may not be
ordered)
18
Physical Design
The process of producing a description
of the implementation of the database
in secondary storage
19
Prototyping
Building a working model of the database system
20
Implementation
The physical realization of the database and
application designs
21
Implementation Activities
1. Set-up the chosen DBMS
2. Develop the database (database schema)
using DDL
3. Build the applications using 3GL or 4GL.
Database transactions are written using DML
and are later inserted in host languages
such as Visual Basic, C++, Java and others
4. Insert data into the tables, or transfer the
data from the existing (old) system
22
Testing
The process of running the database system
with the intent of finding errors
Database stability is monitored, and
application errors/issues are noted and fixed
Common testing activities:
Test the database from the point of view of
Users
24
Approaches to Operation
A new system can be delivered into
operation using any of the followinng
approaches:
25
Direct Migration Plan
Existing system New system
26
Parallel Migration Plan
Existing system
New system
28
Pilot Migration Plan
New system
Existing system
30
Staged Migration Plan
Existing system New system
Management subsystem
Control subsystem
needed
1. Recover
There are errors in the system
35
Maintenance Objectives –
contd.
2. Adaptation
The system is changed to conform to
external requirements
Example : government policy changes
3. Increase Value
Specification change as requested by
the system’s own users
36
The End.
Thank you!
37