Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

Distributed Database Systems

Autumn, 2007

Chapter 4

Distributed DBMS
Architecture
Distributed Database Systems 1
Introduction

y Architecture defines a system’s structure


with
◦ Components
◦ Functions of components, and
◦ Their interactions
y Purpose of ‘reference architecture’:
◦ A framework for discussion
◦ Standardization

Distributed Database Systems 2


4.1 Transparencies in a distributed DBMS

y X transparency means the existence of X


is not known to users.
y Closely related to architecture issues.

Distributed Database Systems 3


4.1.1 Data independence
y Same as in centralized DBMS:
◦ Logical data independence
x applications are immune to changes in schema
◦ Physical independence
x applications are immune to changes in physical
storage, and data distribution

Distributed Database Systems 4


4.1.2 Network transparency
y Also known as “distribution transparency”

4.1.3 Replication transparency

4.1.4 Fragmentation transparency


y Data fragmentation – the division of
relation into smaller fragments at different
sites.

Distributed Database Systems 5


4.2 DBMS Standardization

Distributed Database Systems 6


4.2.1 ANSI/APARC Architecture
y A 3-level architecture based on data organization

View Description
External View • How users view the shared data
• Commands used:
create view … as …
Conceptual View • Synthesis of external views of an enterprise
• Commands used:
create db …
create table …
Internal View • Physical definition and organization of data
• Commands used:
index on device
segment definition and allocation

Distributed Database Systems 7


The ASNI/SPARC Architecture (1997)

Users

Ex ternal Ex ternal External External


Schema View View View

Conceptual Conceptual
Schema View

Intern al Internal
Schema View

Distributed Database Systems 8


4.3 Architecture Models for Distributed DDBMS

Distributed Database Systems 9


4.3 Architecture Models for Distributed DDBMS

y Classification of multiple DBs shared by


multiple DBMSs
y Criteria for classification
◦ Distribution
x 0: centralized, 1: C/S, 2: P2P
◦ Autonomy
x 0: tight integration, 1: semi-autonomous, 2: total
isolation
◦ Heterogeneity
x 0: homogeneous, 1: heterogeneous

Distributed Database Systems 10


Distribution

1. (A0,D2,H0) P2P P2P


P2P homogeneous homogeneous
homogeneous federated multidatabase
tightly
integrated
2. P2P 3. (A2,D2,H1)
heterogeneous P2P
federated heterogeneous
multidatabase

Autonomy

Heterogeneity

Note 1: the available most advanced commercial product


2 and 3: active research area

Distributed Database Systems 11


Autonomy: the distribution of control
y (0) tightly integrated
◦ a single image of the entire DB to and user
and a single DBMS
y (1) semi-autonomous
◦ all DBMSs can operated independently but
have to join a federation to make local data
sharable
y (2) total isolation
◦ each DBMS is stand-alone and enjoy 100%
freedom of autonomy

Distributed Database Systems 12


Distinction between DDB and MDB
y In MDB
◦ every local data manager is a complete DBMS
with its own DDL, DML and TM
y In DDB
◦ there is only one data manager with its
dependent component-data-manager at every
local site

The focus of this course is the


PRINCIPLES of DDBs (A0, D2, H0)

Distributed Database Systems 13


4.3.1 Distributed DBMS architecture
y An architecture based on data organization

External Schema External Schema External Schema


ES
Global Conceptual
GCS Schema

LCS
Local Conceptual Local Conceptual Local Conceptual
Schema Schema Schema

Local Internal Local Internal Local Internal


Schema Schema Schema

LIS

Distributed Database Systems 14


Detailed functional description of DDBMS

y Legend

◦ Administrative Role

◦ Data Dictionary/Directory

◦ Processing Unit

Distributed Database Systems 15


Enterprise
Administrator

Global DB GCS Application


System
Administrator Processor
Administrator

ES
GD/D Processor

Local Data Manager Local Data Manager

Local GCS
DBA Processor-1

Local IS
Processor LD/D

……
……

Internal
Int. Storage DB
Int. DB Conceptual
Transformation Transformation
……

Distributed Database Systems 16


Components of a Distributed DBMS

Semantic data controller


• Integrity constraint and
authorization

Global Query Processor


• decompose and optimize
global query

Global Execution Monitor


• Distributed transaction
manager

Runtime Support Processor


• physical access to database

Distributed Database Systems 17


Client/Server
Systems
y A computing
model dividing
functions
between client
and server

Distributed Database Systems 18


Discussion
y Why DDB?
y Compare DDB with CDB, MDB, C/S DB.
y Do you understand DDB architecture?

Distributed Database Systems 19

You might also like