Minggu 12, Pertemuan 23 Introduction to Distributed DBMS (Chapter 22.1-4, 22.6, 3rd ed.)

26
1 Minggu 12, Pertemuan 23 Introduction to Distributed DBMS (Chapter 22.1-4, 22.6, 3rd ed.) Matakuliah : T0206-Sistem Basisdata Tahun : 2005 Versi : 1.0/0.0

description

Minggu 12, Pertemuan 23 Introduction to Distributed DBMS (Chapter 22.1-4, 22.6, 3rd ed.). Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0. Learning Outcomes. Pada akhir pertemuan ini, diharapkan mahasiswa dapat dapat Menjelaskan konsep dan masalah distributed DBMS (C2). - PowerPoint PPT Presentation

Transcript of Minggu 12, Pertemuan 23 Introduction to Distributed DBMS (Chapter 22.1-4, 22.6, 3rd ed.)

Page 1: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

1

Minggu 12, Pertemuan 23 Introduction to Distributed DBMS (Chapter 22.1-4, 22.6, 3rd ed.)

Matakuliah : T0206-Sistem BasisdataTahun : 2005Versi : 1.0/0.0

Page 2: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

2

Learning Outcomes

Pada akhir pertemuan ini, diharapkan mahasiswa dapat dapat Menjelaskan konsep dan masalah distributed DBMS (C2)

Page 3: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

3

Outline Materi

• Concepts.• Advantages and disadvantages of distributed

databases.• Functions and architecture for a DDBMS.• Distributed database design.

Page 4: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

4

Concepts

Distributed DatabaseA logically interrelated collection of shared data (and a description of this data), physically distributed over a computer network.

Distributed DBMSSoftware system that permits the management of the distributed database and makes the distribution transparent to users.

Page 5: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

5

Concepts• Collection of logically-related shared data.• Data split into fragments.• Fragments may be replicated.• Fragments/replicas allocated to sites.• Sites linked by a communications network.• Data at each site is under control of a DBMS.• DBMSs handle local applications

autonomously.• Each DBMS participates in at least one global

application.

Page 6: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

6

Distributed DBMS

Page 7: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

7

Distributed Processing

A centralized database that can be accessed over a computer network.

Page 8: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

8

Parallel DBMS

A DBMS running across multiple processors and disks designed to execute operations in parallel, whenever possible, to improve performance.

• Based on premise that single processor systems can no longer meet requirements for cost-effective scalability, reliability, and performance.

• Parallel DBMSs link multiple, smaller machines to achieve same throughput as single, larger machine, with greater scalability and reliability.

Page 9: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

9

Parallel DBMS

• Main architectures for parallel DBMSs are:

– Shared memory,– Shared disk,– Shared nothing.

Page 10: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

10

Parallel DBMS

(a) shared memory

(b) shared disk

(c) shared nothing

Page 11: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

11

Advantages of DDBMSs

• Reflects organizational structure• Improved shareability and local

autonomy• Improved availability• Improved reliability• Improved performance• Economics• Modular growth

Page 12: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

12

Disadvantages of DDBMSs

• Complexity• Cost• Security• Integrity control more difficult• Lack of standards• Lack of experience• Database design more complex

Page 13: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

13

Types of DDBMS

• Homogeneous DDBMS• Heterogeneous DDBMS

Page 14: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

14

Homogeneous DDBMS

• All sites use same DBMS product. • Much easier to design and manage. • Approach provides incremental

growth and allows increased performance.

Page 15: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

15

Heterogeneous DDBMS

• Sites may run different DBMS products, with possibly different underlying data models.

• Occurs when sites have implemented their own databases and integration is considered later.

• Translations required to allow for:– Different hardware.– Different DBMS products.– Different hardware and different DBMS

products.• Typical solution is to use gateways.

Page 16: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

16

Components of a DDBMS

Page 17: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

17

Distributed Database Design

• Three key issues:

– Fragmentation,– Allocation,– Replication.

Page 18: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

18

Distributed Database Design

FragmentationRelation may be divided into a number of sub-relations, which are then distributed.

AllocationEach fragment is stored at site with “optimal” distribution.

ReplicationCopy of fragment may be maintained at several sites.

Page 19: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

19

Fragmentation• Definition and allocation of fragments

carried out strategically to achieve:– Locality of Reference.– Improved Reliability and Availability.– Improved Performance.– Balanced Storage Capacities and Costs.– Minimal Communication Costs.

• Involves analyzing most important applications, based on quantitative/qualitative information.

Page 20: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

20

Fragmentation• Quantitative information may include:

– frequency with which an application is run;

– site from which an application is run;– performance criteria for transactions and

applications.

• Qualitative information may include transactions that are executed by application, type of access (read or write), and predicates of read operations.

Page 21: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

21

Data Allocation

• Four alternative strategies regarding placement of data:– Centralized,– Partitioned (or Fragmented),– Complete Replication,– Selective Replication.

Page 22: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

22

Data Allocation

CentralizedConsists of single database and DBMS stored at one site with users distributed across the network.

PartitionedDatabase partitioned into disjoint fragments, each fragment assigned to one site.

Page 23: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

23

Data Allocation

Complete ReplicationConsists of maintaining complete copy of database at each site.

Selective ReplicationCombination of partitioning, replication, and centralization.

Page 24: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

24

Comparison of Strategies for Data Distribution

Page 25: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

25

Date’s 12 Rules for a DDBMS

0.Fundamental PrincipleTo the user, a distributed system should look exactly like a nondistributed system.

1.Local Autonomy2.No Reliance on a Central Site3.Continuous Operation4.Location Independence5.Fragmentation Independence6.Replication Independence

Page 26: Minggu 12, Pertemuan 23  Introduction to  Distributed DBMS  (Chapter 22.1-4, 22.6, 3rd ed.)

26

Date’s 12 Rules for a DDBMS

7.Distributed Query Processing8.Distributed Transaction Processing9.Hardware Independence10. Operating System Independence11. Network Independence12. Database Independence

• Last four rules are ideals.