Docsity

Distributed Database Management Systems: Concepts, Design, and Implementation, Study notes of English Language

Toggle sidebar
bg1
Page 1
Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.1
Outline
oIntroduction
➠What is a distributed DBMS
➠Problems
➠Current state-of-affairs
oBackground
oDistributed DBMS Architecture
oDistributed Database Design
oSemantic Data Control
oDistributed Query Processing
oDistributed Transaction Management
oParallel Database Systems
oDistributed Object DBMS
oDatabase Interoperability
oCurrent Issues
Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.2
File Systems
program 1
data description 1
program 2
data description 2
program 3
data description 3
File 1
File 2
File 3
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Distributed Database Management Systems: Concepts, Design, and Implementation and more Study notes English Language in PDF only on Docsity!

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Outline

o Introduction

à What is a distributed DBMS à Problems à Current state-of-affairs

o Background

o Distributed DBMS Architecture

o Distributed Database Design

o Semantic Data Control

o Distributed Query Processing

o Distributed Transaction Management

o Parallel Database Systems

o Distributed Object DBMS

o Database Interoperability

o Current Issues

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

File Systems

program 1

data description 1

program 2

data description 2

program 3

data description 3

File 1

File 2

File 3

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Database Management

database

DBMS

Application

program 1

(with data

semantics)

Application

program 2

(with data

semantics)

Application

program 3

(with data

semantics)

description

manipulation

control

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Motivation

Database

Technology

Computer

Networks

integration distribution

integration

integration ≠ centralization

Distributed

Database

Systems

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

n Processing logic

n Functions

n Data

n Control

What is distributed …

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

What is a Distributed Database

System?

A distributed database (DDB) is a collection of multiple,

logically interrelated databases distributed over a

computer network.

A distributed database management system (D–DBMS)

is the software that manages the DDB and provides an

access mechanism that makes this distribution

transparent to the users.

Distributed database system (DDBS) = DDB + D–DBMS

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

n A timesharing computer system

n A loosely or tightly coupled multiprocessor

system

n A database system which resides at one of the

nodes of a network of computers - this is a

centralized database on a network node

What is not a DDBS?

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Centralized DBMS on a Network

Communication

Network

Site 5

Site 1

Site 2

Site 4 Site 3

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Shared-Memory Architecture

Examples : symmetric multiprocessors (Sequent,

Encore) and some mainframes

(IBM3090, Bull's DPS8)

P 1 Pn M

D

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Shared-Disk Architecture

Examples : DEC's VAXcluster, IBM's IMS/VS

Data Sharing

D

P 1

M 1

Pn

Mn

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Shared-Nothing Architecture

Examples : Teradata's DBC, Tandem, Intel's

Paragon, NCR's 3600 and 3700

P 1

M 1

D 1

Pn

Mn

Dn

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

n Manufacturing - especially multi-plant

manufacturing

n Military command and control

n EFT

n Corporate MIS

n Airlines

n Hotel chains

n Any organization which has a

decentralized organization structure

Applications

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Example

TITLE SAL

PAY

Elect. Eng. 40000 Syst. Anal. 34000 Mech. Eng. (^27000) Programmer 24000

PROJ PNO PNAME BUDGET

ENO ENAME TITLE E1 J. Doe Elect. Eng. E2 M. Smith Syst. Anal. E3 A. Lee Mech. Eng. E4 J. Miller Programmer E5 B. Casey Syst. Anal. E6 L. Chu Elect. Eng. E7 R. Davis Mech. Eng. E8 J. Jones Syst. Anal.

EMP ENO PNO RESP E1 P1 Manager 12

DUR

E2 P1 Analyst 24 E2 P2 Analyst 6 E3 P3 Consultant 10 E3 P4 Engineer 48 E4 P2 Programmer 18 E5 P2 Manager 24 E6 P4 Manager 48 E7 P3 Engineer 36

E8 P3 Manager 40

ASG

LOC P1 Instrumentation^150000 Montreal

P3 CAD/CAM 250000 New York

P2 Database Develop. 135000 New York P4 Maintenance 310000 Paris

E7 P5 Engineer 23

P5 CAD/CAM 500000 Boston

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Transparent Access

SELECT ENAME,SAL

FROM EMP,ASS,PAY

WHERE DUR > 12

AND EMP.ENO = ASS.ENO

AND EMP.TITLE = PAY.TITLE (^) Paris projects Paris employees Paris assignments Boston employees

Montreal projects Paris projects New York projects with budget > 200000 Montreal employees Montreal assignments

Boston

Communication Network

Montreal

Paris

New York

Boston projects Boston employees Boston assignments

Boston projects New York employees New York projects New York assignments

Tokyo

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Distributed Database - User View

Distributed Database

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Distributed DBMS - Reality

Communication

Subsystem

User Query

DBMS

Software

DBMS

Software User Application

DBMS

Software

User User Application Query

DBMS

Software

User Query

DBMS

Software

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

System Expansion

n Issue is database scaling

n Emergence of microprocessor and workstation

technologies

à Demise of Grosh's law

à Client-server model of computing

n Data communication cost vs telecommunication

cost

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Distributed DBMS Issues

n Distributed Database Design

à how to distribute the database

à replicated & non-replicated database distribution

à a related problem in directory management

n Query Processing

à convert user transactions to data manipulation instructions

à optimization problem

à min{cost = data transmission + local processing} à general formulation is NP-hard

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Distributed DBMS Issues

n Concurrency Control

à synchronization of concurrent accesses

à consistency and isolation of transactions' effects

à deadlock management

n Reliability

à how to make the system resilient to failures

à atomicity and durability

Distributed DBMS © 1998 M. Tamer Özsu & Patrick Valduriez Page 1.

Directory Management

Relationship Between Issues

Reliability

Deadlock Management

Query Processing

Concurrency Control

Distribution Design