DBMS Lec 03 & 04
DBMS Lec 03 & 04
and Development
Process
1
Definitions
Database: organized collection of logically
related data
Data: stored representations of meaningful
objects and events
Structured: numbers, text, dates
Unstructured: images, video, documents
Information: data processed to increase
knowledge in the person using the
data
Metadata: data that describes the properties and
context of user data 2
Figure 1-1a Data in context
3
Figure 1-1b Summarized data
4
Descriptions of the properties or characteristics of the
data, including data types, field sizes, allowable
values, and data context
5
Database Management System
A software system that is used to create, maintain, and provide
controlled access to user databases
Order Filing
System
7
Elements of the Database Approach
Entities
Noun form describing a person, place, object, event, or concept
Composed of attributes
Relationships
Between entities
Usually one-to-many (1:M) or many-to-many (M:M)
Relational Databases
Database technology involving tables (relations) representing
entities and primary/foreign keys representing relationships
8
Figure 1-3 Comparison of enterprise and project level data models
Segment of an enterprise data model
9
An Enterprise Data Model is an integrated view of the data
produced and consumed across an entire organization.
It is independent of “how” the data is physically sourced,
stored, processed or accessed. The model unites, formalizes
and represents the things important to an organization, as well
as the rules governing them
11
One order has
many order lines;
each order line
is associated
with a single
order
One-to-many
relationship
12
One product can
be in many
order lines, each
order line
refers to a
single product
One-to-many
relationship
13
Three Level Architecture Database
Physical Level
• The physical level describes how data is
actually stored in the database.
• The data is stored in the external hard drives in
the form of bits and at a little high level
• The physical level also discusses compression
and encryption techniques.
Conceptual Level
• It describes how the database appears to the
users conceptually and the relationships
between various data tables
• The conceptual level does not care for how the
data in the database is actually stored.
External level
• It only shows the relevant database content to
the users in the form of views and hides the
rest of the data.
• Different users can see the database as a
different view as per their individual
requirements.
Data Independence
Personal databases
Two-tier Client/Server databases
Multitier Client/Server databases
Enterprise applications
Enterprise resource planning (ERP) systems
Data warehousing implementations
16
17
Personal Databases
A personal database is one that is designed for a single person. It is
typically stored on a personal computer and has a very simple design,
consisting of only a few tables. Personal databases are not typically
suitable for complex operations, large amounts of data or business
operations.
2-Tier Architecture
A 2 Tier Architecture in DBMS is a Database architecture where the
presentation layer runs on a client (PC, Mobile, Tablet, etc.), and
data is stored on a server called the second tier. Two tier
architecture provides added security to the DBMS as it is not
exposed to the end-user directly. It also provides direct and faster
communication.
Figure 1-6 Two-tier database with local
area network
19
3-Tier Architecture
A 3 Tier Architecture in DBMS is the most popular client server
architecture in DBMS in which the development and maintenance of
functional processes, logic, data access, data storage, and user interface is
done independently as separate modules.
Three Tier architecture contains a presentation layer, an application layer,
and a database server.
The major user views are also described i.e. what is required of a
database system from the perspectives of particular job roles or
enterprise application areas.
Prototyping
The purpose of a prototype is to allow the users to use the prototype to
identify the features of the system using the computer.
Testing
System should be thoroughly tested. The goal of testing is to find errors. The
goal is not to prove the software is working well.
Operational Maintenance
The process of monitoring and miniating the database system. Monitoring
means that the system is observed. Maintaining and upgrading the database
system means that when new requirements arises the new development lifecycle
will be done.
Two Approaches to Database
and IS Development
SDLC
System Development Life Cycle
Detailed, well-planned development process
Time-consuming, but comprehensive
Long development cycle
Prototyping
Rapid application development (RAD)
Quick attempt at conceptual data modeling
Define database during development of
initial prototype
Repeat implementation and maintenance activities
with new prototype versions
31
Systems Development Life
Cycle (see also Figure 1-
Planning
10)
Analysis
Logical Design
Physical Design
Implementation
Maintenance
32
Systems Development Life Cycle
(see also Figure 1-10)
(cont.) Purpose–preliminary understanding
Planning
Plannin
g Deliverable–request for study
Analysis
Logical Design
Physical Design
33
Systems Development Life Cycle
(see also Figure 1-10) (cont.)
Purpose–thorough requirements analysis and
Plannin structuring
g
Deliverable–functional
Analysis system specifications
Logical Design
Physical Design
34
Systems Development Life Cycle
(see also Figure 1-10) (cont.)
Purpose–information requirements elicitation
Plannin and structure
g Deliverable–detailed design
Analysis specifications
LogicalDesign
Logical
Design
Physical Design
36
Systems Development Life Cycle
(see also Figure 1-10) (cont.)
Purpose–programming, testing,
Plannin training, installation,
g documenting
Analysis Deliverable–operational programs,
documentation, training materials
Logical
Design
Physical Design
Database activity–
database implementation, Implementation
including coded programs,
documentation, Maintenan
installation and conversion ce
37
Systems Development Life Cycle
(see also Figure 1-10) (cont.)
Purpose–monitor, repair, enhance
Plannin
g
Deliverable–periodic audits
Analysis
Logical Design
Physical Design
Database activity–
database Implementation
maintenance,
performance analysis Maintenan
Maintenance
and tuning, error ce
corrections
38
Prototyping Database Methodology
(Figure 1-11)
39
Prototyping Database Methodology
(Figure 1-11) (cont.)
40
Prototyping Database Methodology
(Figure 1-11) (cont.)
41
Prototyping Database Methodology
(Figure 1-11) (cont.)
42
Prototyping Database Methodology
(Figure 1-11) (cont.)
43
Database Schema
External Schema
User Views
Subsets of Conceptual Schema
Can be determined from business-function/data
entity matrices
DBA determines schema for different users
Conceptual Schema
E-R models
Internal Schema
Logical structures
Physical structures
45
Managing Projects: People Involved
Business analysts
Systems analysts
Database analysts and data modelers
Users
Programmers
Database architects
Data administrators
Project managers
Other technical experts
46