30
Chapter 12 Distributed Database Management Systems

Chapter 12 Distributed Database Management Systems

Embed Size (px)

Citation preview

Page 1: Chapter 12 Distributed Database Management Systems

Chapter 12Distributed Database Management Systems

Page 2: Chapter 12 Distributed Database Management Systems

2

Let us ponder…..

““So what is a Distributed So what is a Distributed Database…sounds like Database…sounds like a Disturbing Database!”a Disturbing Database!”

““So why would anyone So why would anyone want to have a want to have a

Distributed Database, Distributed Database, anyway!”anyway!”

So, how does it work – So, how does it work – this fancy DDB?”this fancy DDB?”

Page 4: Chapter 12 Distributed Database Management Systems

Wotz the difference?Centralised Database vs Distributed Database

Page 5: Chapter 12 Distributed Database Management Systems

5

CDB v DDB

Page 6: Chapter 12 Distributed Database Management Systems

So wotz the difference?So then is there a difference between

“Distributed processing” and“Distributed database”?

Page 7: Chapter 12 Distributed Database Management Systems

7

Distributed Processing vs DDB• Shares database’s logical

processing among physically, networked independent sites

• Stores logically related database over physically independent sites

Page 8: Chapter 12 Distributed Database Management Systems

Ja well no fineSo what have we got here with all this centralised, distributed processing, distributed database……?

Page 9: Chapter 12 Distributed Database Management Systems

9

Levels of Data and Process Distribution Database systems can be classified

based on process distribution and data distribution

Table 10.1

Page 10: Chapter 12 Distributed Database Management Systems

10

Single-Site Processing, Single-Site Data (SPSD)• All processing on single CPU or

host computer• All data are stored on host

computer disk• DBMS located on the host

computer• DBMS accessed by dumb terminals• Typical of mainframe and

minicomputer DBMSs• Typical of 1st generation of single-

user microcomputer database

Page 11: Chapter 12 Distributed Database Management Systems

11

Single-Site Processing, Single-Site Data

Figure 10.6

Page 12: Chapter 12 Distributed Database Management Systems

12

Multiple-Site Processing, Single-Site Data (MPSD)

Page 13: Chapter 12 Distributed Database Management Systems

13

Multiple-Site Processing, Single-Site Data (MPSD)

• Requires network file server• Applications accessed through LAN• Variation known as client/server architecture

Page 14: Chapter 12 Distributed Database Management Systems

14

Multiple-Site Processing, Multi Data (MPMD)

Page 15: Chapter 12 Distributed Database Management Systems

15

Multiple-Site Processing, Multiple-Site Data (MPMD)• Fully distributed DDBMS with support

for sites

Page 16: Chapter 12 Distributed Database Management Systems

Too easyOK, so then the Database is at all the sites, the processing takes place at all the sites….Ummm…Do all the sites have the same type of database? Huh?

Page 17: Chapter 12 Distributed Database Management Systems

17

Homogeneous vs Heterogeneous DDB• Homogeneous • Integrate one type of centralized DBMS over the network

• Heterogeneous • Integrate different types of centralized DBMSs over a

network

No kidding……

Page 18: Chapter 12 Distributed Database Management Systems

18

Heterogeneous Distributed Database Scenario

Figure 10.8

Page 19: Chapter 12 Distributed Database Management Systems

So why?“So why would anyone want to have a Distributed Database, anyway!”

Page 20: Chapter 12 Distributed Database Management Systems

20

DDBMS Advantages

• Two main reasons• Speed

• Data located near site with greatest demand• Multiple/Parallel processing

• Reliability• Improved communications• Redundant copies – no single point failure

Yeah…but surely it’s not all roses

Page 21: Chapter 12 Distributed Database Management Systems

21

DDBMS Disadvantages

• Two main thorns• Complex• Setup• Management

• Security & Control• Remote data• Data communications

Page 22: Chapter 12 Distributed Database Management Systems

So How?So, how does it work – this fancy DDB?”

Page 23: Chapter 12 Distributed Database Management Systems

23

DDBMS Components

• Computer workstations • Network hardware and software components• Communications media• Transaction processor (TP) • Also called application manager (AP) or

transaction manager (TM)

• Data processor (DP)• Also called data manager (DM)

Page 24: Chapter 12 Distributed Database Management Systems

24

Distributed Database Components

Figure 10.5

Page 25: Chapter 12 Distributed Database Management Systems

The clever bit is….

The important part is what is invisible…..

Distributed DB Transparency

Page 26: Chapter 12 Distributed Database Management Systems

26

Distributed DB Transparency

• Allows end users to feel like only database user

• Hides complexities of distributed database• Transparency features• Location• Fragmentation

• Heterogeneity • etc

Page 27: Chapter 12 Distributed Database Management Systems

27

Distributed Transaction

Figure 10.12

Page 28: Chapter 12 Distributed Database Management Systems

The hard bit…

is Concurrency Controlis Query Optimisationis Integrity/Standards Controlis Security Controls

Page 29: Chapter 12 Distributed Database Management Systems

29

Date’s 12 Commandments for Distributed Databases

1. Local Site Independence

2. Central Site Independence

3. Failure Independence

4. Location Transparency

5. Fragmentation Transparency

6. Replication Transparency

Page 30: Chapter 12 Distributed Database Management Systems

30

Date’s 12 Commandments for Distributed Databases

7. Distributed Query Processing

8. Distributed Transaction Processing

9. Hardware Independence

10. Operating System Independence

11. Network Independence

12. Database Independence