Beruflich Dokumente
Kultur Dokumente
The DATABASE
Environment
1
OBJECTIVES
Define terms
Database Environment
Explain the Three – Level ANSI SPARC Architecture
Relational Model
The DBMS Schema
The Entity Relationship Diagram
Describe database system development life cycle
Explain prototyping and agile development approaches
Explain roles of individuals
Explain the three-schema architecture for databases
2
WHAT IS A DATABASE ENVIRONMENT?
3
4
THREE-LEVEL ANSI-SPARC ARCHITECTURE
6
The Database
Architecture
7
WHAT IS DATABASE ARCHITECTURE?
A DBMS architecture is depending on its design and can be
of the following types:
Centralized
Decentralized
Hierarchical
8
Two-tier database with local
area network
9
The Three Tier Architecture
10
Three-tiered client/server database architecture
11
THE RANGE OF DATABASE
APPLICATIONS
Personal databases
Two-tier and N-tier Client/Server databases
Enterprise applications
Enterprise resource planning (ERP) systems
Data warehousing implementations
12
Database architectures
13
FILE SERVER ARCHITECTURE
Workstation 2 A Large amount of network
Workstation 1 traffic
Workstation 3
A full copy of DBMS is
LAN required on each workstation
Concurrency, recovery and
Request for data
integrity control are more
database complex
File Server
Client 3
LAN
Request for data Selected data returned
database
Server (with
DBMS)
ALTERNATE CLIENT-SERVER TOPOLOGIES
Client 1
Server Multiple Client
Client 2 - Single Server
Server 2
Client 3
SUMMARY OF CLIENT SERVER
APPLICATIONS
Server
Client
• Accepts and processes database
Manages the user requests from clients
interface
• Checks authorization
Accepts and check
• Ensures integrity constraints not
syntax of user input
violated
Process application
• Performs query/ update
Generates database processing and transmits
requests and response to client
transmits to the
• Maintains system catalog
server
• provides concurrent database
Passes response
access
back to user
• Provides recovery control
Relational Model
17
WHAT IS RELATIONAL MODEL?
The relational model is the theoretical basis of
relational databases which is a technique or way of
structuring data using relations, which are grid-like
mathematical structures consisting of columns and rows.
19
Sample relationship Model: Student table with 3 columns and four records.
111 Ashish 23
123 Saurav 22
169 Lester 24
234 Lou 26
20
The DBMS
Schema
21
DATABASE SCHEMA
The concept of a relation corresponds to the programming
language notion of a variable, while the concept of a relation
schema corresponds to the programming languages’ notion
of type definition. In other words, a database schema is the
skeletal structure which represents the logical view of the
complete database. It describes how the data is organized
and how the relations among them are associated and
formulates all the constraints that are to be applied on the
data.
22
Some Common Relational Model Terms
23
WHAT IS SCHEMA IN
DATABASE MANAGEMENT SYSTEM?
Schema can be defined as the design of a database. The overall
description of the database is called the database schema. It
can be categorized into three parts.
View schema can be defined as the design
of database at view level which generally
describes end-user interaction with
database systems.
24
OBJECTIVE FOR THE THREE-LEVEL ARCHITECTURE
Is to provide data independence, which means that upper
levels are unaffected by changes to lower levels.
26
WHAT IS ENTITY RELATIONSHIP DIAGRAM
ER-Diagram is a pictorial representation of
data that describes how data is communicated
and related to each other. Any object, such as
entities, attributes of an entity, sets of
relationship and other attributes of relationship
can be characterized with the help of the ER
diagram.
27
Entities: They are represented using the
rectangle shape box. These rectangles are
named with the entity set they represent.
28
Entity type: A person, organization, object type, or
concept about which information is stored.
Ex. STUDENT table is an entity type
Entity occurrence: A uniquely identifiable object of an
entity type.
Ex. John of the HNC course is the entity occurrence of the
entity type Student
29
Diagrammatic Representation of Entity Types
Each entity type is shown as a rectangle labeled with the name of the entity,
which is normally a singular noun.
30
What is Relationship Type?
31
What is degree of Relationship?
33
One customer
may place many
orders, but each
order is placed by
a single customer
One-to-many
relationship
34
One order has many
order lines; each order
line is associated with
a single order
One-to-many
relationship
35
One product can
be in many
order lines, each
order line refers
to a single
product
One-to-many
relationship
36
Therefore, one
order involves
many products
and one product is
involved in many
orders
Many-to-many
relationship
37
COMPONENTS OF THE
DATABASE ENVIRONMENT
CASE Tools–computer-aided software engineering
Repository–centralized storehouse of metadata
Database Management System (DBMS) –software for
managing the database
Database–storehouse of the data
Application Programs–software using the data
User Interface–text and graphical displays to users
Data/Database Administrators–personnel responsible for
maintaining the database
System Developers–personnel responsible for designing
databases and software
End Users–people who use the applications and
databases
39
ENHANCED ENTITY-
RELATIONSHIP (EER) MODEL.
The ER model supported with additional semantic
concepts is called the Enhanced Entity-Relationship
(EER) model.
aggregation
composition
40
WHAT ARE GENERALIZATION /
SPECIALIZATION?
The concept of generalization (specialization) is
associated with special types of entities known as
super classes and subclasses, and the process of
attribute inheritance.
42
Super-class/Subclass Relationships
43
What is Aggregation?
44
An example of an aggregation is the ‘Teacher’ entity
following the ‘syllabus’ entity act as a single entity
in the relationship. In simple words, aggregation is
a process where the relation between two entities is
treated as a single entity.
45
DATABASE
System Development Life Cycle
46
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)
Cursory attempt at conceptual data modeling
Define database during development of initial prototype
Repeat implementation and maintenance activities with
new prototype versions
47
SYSTEMS DEVELOPMENT LIFE CYCLE
Planning
Analysis
Logical Design
Physical Design
Implementation
Maintenance
Planning
Planning Purpose–preliminary understanding
Deliverable–request for study
Analysis
Logical Design
Physical Design
Logical Design
Physical Design
Logical Design
Logical Design
Physical Design
Analysis
Deliverable–program/data
structures, technology purchases,
organization redesigns
Logical Design
Physical Design
Physical Design
Purpose–programming, testing,
Planning training, installation, documenting
Physical Design
Database activity–
database implementation, Implementation
Implementation
including coded programs,
documentation, Maintenance
installation and conversion
Deliverable–periodic audits
Analysis
Logical Design
Physical Design
Database activity–
database maintenance, Implementation
performance analysis
and tuning, error Maintenance
Maintenance
corrections