Sunteți pe pagina 1din 42

Database and Web Database

Systems
CT014-3-2

Database Architecture

Topic and Structure of Lesson


Purpose of three-level database architecture.
Contents of external, conceptual, and internal levels.
Purpose of external/conceptual and
mappings.

conceptual/internal

Meaning of logical and physical data independence.


Distinction between DDL and DML.
A classification of data models.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 2 (of 44)

Topic and Structure of Lesson (2)


Typical functions and services a DBMS should provide.
Software components of a DBMS.
Meaning of clientserver architecture and advantages of this
type of architecture for a DBMS.
Function and importance of the system catalogue.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 3 (of 44)

Learning Outcomes
At the end of this lesson, YOU should be able to:
explain the purpose of three-level database architecture.
explain the meaning of clientserver architecture and advantages of this
type of architecture for a DBMS.
discuss the contents of external, conceptual, and internal levels.
discuss the purpose of external/conceptual and conceptual/internal
mappings.
explain the meaning of logical and physical data independence.
discuss the function and importance of the system catalogue.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 4 (of 44)

Key Terms you must be able to use


If you have mastered this topic, you should be able to
use the following terms correctly in your assignments
and exams:
Data Independence
External View
Conceptual View
Physical View
Record Based Model
Hierarchical Model
Network Model
Relational Model
Object Based Model
CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 5 (of 44)

Objectives of Architecture
All users should be able to access same
data.
A users view is immune to changes made in
other views.
Users should not need to know physical
database storage details.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 6 (of 44)

Objectives of Architecture (2)


DBA should be able to change database
storage structures without affecting the users
views.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 7 (of 44)

Objectives of Architecture (3)


Internal structure of database should be
unaffected by changes to physical aspects of
storage.
DBA should be able to change conceptual
structure of database without affecting all
users.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 8 (of 44)

ANSI-SPARC Architecture

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 9 (of 44)

ANSI-SPARC Architecture (2)


External Level
Users view of the database.
Describes that part of database that is relevant to
a particular user.

Conceptual Level
Community view of the database.
Describes what data is stored in database and
relationships among the data.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 10 (of 44)

ANSI-SPARC Architecture (3)


Internal Level
Physical representation of the database on the
computer.
Describes how the data is stored in the database.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 11 (of 44)

ANSI-SPARC Architecture (4)

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 12 (of 44)

Data Independence
Logical data independence
Refers to immunity of external schemas to
changes in conceptual schema
Conceptual schema changes (e.G.
Addition/removal of entities)
Should not require changes to external schema or
rewrites of application programs

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 13 (of 44)

Data Independence (2)


Physical data independence
Refers to immunity of conceptual schema to
changes in the internal schema
Internal schema changes (e.G. Using different file
organizations, storage structures/devices)
Should not require change to conceptual or external
schemas

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 14 (of 44)

Data Independence (3)

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 15 (of 44)

Database Languages
Data Definition Language (DDL)
Allows the DBA or user to describe and name
entities, attributes, and relationships required for
the application
plus any associated integrity and security
constraints

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 16 (of 44)

Database Languages (2)


Data manipulation language (DML)
Provides basic data manipulation operations on
data held in the database

Procedural DML
Allows user to tell system exactly how to
manipulate data

Non-procedural DML
Allows user to state what data is needed rather
than how it is to be retrieved

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 17 (of 44)

Database Languages (3)


Fourth generation language (4GL)

Query languages
Forms generators
Report generators
Graphics generators
Application generators

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 18 (of 44)

Data Model
Integrated collection of concepts for
describing data, relationships between data,
and constraints on the data in an
organization.
Data model comprises:
A structural part;
A manipulative part;
Possibly a set of integrity rules.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 19 (of 44)

Data Model (2)


Purpose
To represent data in an understandable way

Categories of data models include:


Object-based
Record-based
Physical

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 20 (of 44)

Data Model (3)


Object-based data models

Entity-relationship
Semantic
Functional
Object-oriented

Record-based data models


Relational data model
Network data model
Hierarchical data model

Physical data models

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 21 (of 44)

Conceptual Model
Conceptual schema is the core of a system
supporting all user views.
Should be complete and accurate
representation of an organizations data
requirements.
Conceptual modelling is process of
developing a model of information use that is
independent of implementation details.
Result is a conceptual data model.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 22 (of 44)

Functions of DBMS
Data storage, retrieval, and update.
A user-accessible catalogue.
Transaction support.
Concurrency control services.
Recovery services.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 23 (of 44)

Functions of DBMS (2)


Authorization services.
Support for data communication.
Integrity services.
Services to promote data independence.
Utility services.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 24 (of 44)

Components of DBMS

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 25 (of 44)

Component of Database Manager

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 26 (of 44)

Multi-user DBMS Architecture


Teleprocessing
File-server
Client-server

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 27 (of 44)

Teleprocessing Architecture
Traditional architecture.
Single mainframe with a number of terminals
attached.
Trend is now towards downsizing.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 28 (of 44)

Teleprocessing Architecture (2)

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 29 (of 44)

File Server Architecture


File-server is connected to several workstations
across a network.
Database resides on file-server.
DBMS and applications run on each workstation.
Disadvantages include:
Significant network traffic.
Copy of DBMS on each workstation.
Concurrency, recovery and integrity control more complex.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 30 (of 44)

File Server Architecture (2)

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 31 (of 44)

Client Server Architecture


Server holds the database and the DBMS.
Client manages user interface and runs
applications.
Advantages include:

Wider access to existing databases;


Increased performance;
Possible reduction in hardware costs;
Reduction in communication costs;
Increased consistency.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 32 (of 44)

Client Server Architecture (2)

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 33 (of 44)

Client Server Architecture (3)

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 34 (of 44)

Catalogue Manager
Repository of information (metadata)
describing the data in the database.
Typically stores:

Names of authorized users;


Names of data items in the database;
Constraints on each data item;
Data items accessible by a user and the type of access.

Used by modules such as authorization


control and integrity checker.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 37 (of 44)

Information Resource
Dictionary System (IRDS)
Response to an attempt to standardize data
dictionary interfaces.
Objectives:
Extensibility of data;
Integrity of data;
Controlled access to data.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 38 (of 44)

IRDS Interface Services

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 39 (of 44)

Quick Review Questions


What is metadata?
List any FIVE functions in a DBMS.
List and explain any five major components of a
database manager.
List and explain three types of multi user database
system architectures.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 40 (of 44)

Follow Up Assignment
We learnt only the concepts of database architecture.
Conduct further research on the architecture of client
server database architectures.

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 41 (of 44)

Summary
ANSI-SPARC Database Architecture
DBMS Functions
DBMS Components
Multi User DBMS Architecture

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 42 (of 44)

Question and Answer Session

Q&A
CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 43 (of 44)

Next Session
Entity Relationship Modeling

CT014-3-2 Database and Web Database Systems

Database Architecture

Slide 44 (of 44)

S-ar putea să vă placă și