distributed databases and ddbms. learning objectives describe various ddbms implementations ...

19
DISTRIBUTED DATABASES AND DDBMS

Upload: vernon-garry-hill

Post on 26-Dec-2015

240 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

DISTRIBUTED DATABASES AND DDBMS

Page 2: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Learning Objectives

Describe various DDBMS implementations

Explain how database design affects the DDBMS environment

Apply DDBMS principles to solve problems

Page 3: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Definitions

Distributed Database: A single logical database that is spread physically across computers in multiple locations that are connected by a data communications link

Decentralized Database: A collection of independent databases on non-networked computers

They are not the same thing!

Page 4: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Distributed database environments (adapted from Bell and Grimson, 1992)

Page 5: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Identical DBMSs

Homogeneous Database

Source: adapted from Bell and Grimson, 1992.

Page 6: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Typical Heterogeneous Environment

Non-identical DBMSs

Source: adapted from Bell and Grimson, 1992.

Page 7: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Example of Replication•Customers•Sales Staff

•Orders

CRM Db

•All Customers•All Sales Staff

•All Orders

N. America

•All Customers•All Sales Staff

•All Orders

Europe

User’s View of Db

Actual Implementation

Master Replica

Page 8: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Example of Horizontal Partitioning

•Customers•Sales Staff

•Orders

CRM Db

•NA Customers•NA Sales Staff

•NA Orders

N. America

•E Customers•E Sales Staff

•E Orders

Europe

User’s View of Db

Actual Implementation

Page 9: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Example of Vertical Partitioning

•Financials•Customer Service

•Prod. Support•Human Resources

ERP System

•Financials•Human Resources

N. America

•Customer Service•Prod Support

Europe

User’s View of Db

Actual Implementation

Page 10: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Five Distributed Database Organizations

Centralized database, distributed access Replication with periodic snapshot

update Replication with near real-time

synchronization of updates Partitioned, one logical database Partitioned, independent, nonintegrated

segments

Page 11: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Distributed Design Strategies

Page 12: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Distributed DBMS: Transparency Location Transparency

User/application does not need to know where data resides

Replication Transparency User/application does not need to know about

duplication Failure Transparency

Either all or none of the actions of a transaction are committed

Page 13: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Applying the concepts through examples: Client server: Mono, 2-tier, 3-tier, n-tier? Single Site / Multi Site data? Y/N

If multi-site: Partitioned H/V or Replicated? Location Transparency: Y/N? Replication Transparency: Y/N? Failure Transparency: Y/N?

Page 14: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Distributed DBMS architecture

Page 15: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Local Transaction Steps1. Application makes request to

distributed DBMS2. Distributed DBMS checks distributed

data repository for location of data. Finds that it is local

3. Distributed DBMS sends request to local DBMS

4. Local DBMS processes request5. Local DBMS sends results to application

Page 16: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Distributed DBMS Architecture - cont. Showing local transaction steps

Local transaction – all data stored locally

1

3

4

5

2

Page 17: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Global Transaction Steps1. Application makes request to distributed DBMS2. Distributed DBMS checks distributed data

repository for location of data. Finds that it is remote

3. Distributed DBMS routes request to remote site4. Distributed DBMS at remote site translates request

for its local DBMS if necessary, and sends request to local DBMS

5. Local DBMS at remote site processes request6. Local DBMS at remote site sends results to

distributed DBMS at remote site7. Remote distributed DBMS sends results back to

originating site8. Distributed DBMS at originating site sends results

to application

Page 18: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

Distributed DBMS architecture – contShowing global transaction steps

Global transaction – some data is at remote site(s)

1

2

4

5

6

3

7

8

Page 19: DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment

DISTRIBUTED DATABASE AND DDBMS

Questions?