Download presentation
Presentation is loading. Please wait.
Published byTheodore Boone Modified over 8 years ago
1
Chapter 01 Introduction to Distributed Database
2
Overview File System ◦ Menyediakan suatu prosedur bagi suatu program untuk menyimpan, melakukan update, dan mengambil data pada suatu media penyimpanan atau storage
3
Overview Database Management System ◦ Suatu paket software yang melakukan kontrol, dan pengelolaan data di dalam database (kumpulan data)
4
DB Clients, Servers, and Environments DB-Server, a collection of programs that execute all DBMS function DB-Client, any application program that needs to connect to a DB-Server DB Environment (DBE), one or more DBs along with any software providing at least minimum set of required data operation and management.
5
DBE Architectural concept Service, logical collections of related functionality. Example: Query Service Sites, represents a logical location in an architectural diagram or deployment diagram Component and Subsystem (COS) ◦ Component, Deployable bundle of software that provide reasonability cohesive set of functionality ◦ Subsystem, collection of one or more components that work together toward a common goal
6
DBE Architectures Required Services ◦ Data Read Service (Drd-S) ◦ Security Service (Sec-S) ◦ Semantic Integrity Service (Semi-S)
7
DBE Architectures Basic Services ◦ Data Read Service (Drd-S) ◦ Security Service (Sec-S) ◦ Semantic Integrity Service (Semi-S) ◦ Data Write Service (Dwr-S)
8
DBE Architectures Expected Service ◦ Data Read Service (Drd-S) ◦ Security Service (Sec-S) ◦ Semantic Integrity Service (Semi-S) ◦ Data Write Service (Dwr-S) ◦ Query Request Service (Qreq-S) ◦ Query Optimization Service ◦ Execution Service ◦ Execution Optimization Service
9
DBE Architectures Expected Subsystem ◦ Data Read Service (Drd-S) ◦ Security Service (Sec-S) ◦ Semantic Integrity Service (Semi-S) ◦ Data Write Service (Dwr-S) ◦ Query Request Service (Qreq-S) ◦ Query Optimization Service ◦ Execution Service ◦ Execution Optimization Service ◦ User Interface
10
DBE Architectures Typical DBMS Service ◦ Drd-S, Sec-S, Semi-S, Dwr-S, Qreq-S ◦ Query Optimization Service ◦ Execution Service ◦ Execution Optimization Service ◦ User Interface ◦ Transaction Management (Trans-S) ◦ Locking Service (Lock-S) ◦ Timestamping Service (Times-S) ◦ Deadlock Handling Service ◦ Fallback and Recovery Service
11
Motivation Database Technology Computer Networks integrationdistribution integration integration ≠ centralization Distributed Database Systems
12
DBMS Schema Architecture
13
DDBMS Schema Architecture
14
Top Down DDBMS Software Architecture
15
Bottom Up DDBMS Software Architecture
16
Generic DDBMS architecture
17
Distributed Computing A concept in search of a definition and a name. A number of autonomous processing elements (not necessarily homogeneous) that are interconnected by a computer network and that cooperate in performing their assigned tasks.
18
Distributed Computing Synonymous terms ◦ distributed function ◦ distributed data processing ◦ multiprocessors/multicomputers ◦ satellite processing ◦ backend processing ◦ dedicated/special purpose computers ◦ timeshared systems ◦ functionally modular systems
19
What is distributed … Processing logic Functions Data Control
20
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
21
What is not a DDBS? A timesharing computer system A loosely or tightly coupled multiprocessor system A database system which resides at one of the nodes of a network of computers - this is a centralized database on a network node
22
Centralized DBMS on a Network Site 5 Site 1 Site 2 Site 3 Site 4 Communication Network
23
Distributed DBMS Environment Site 5 Site 1 Site 2 Site 3 Site 4 Communication Network
24
Implicit Assumptions Data stored at a number of sites each site logically consists of a single processor. Processors at different sites are interconnected by a computer network no multiprocessors ◦ parallel database systems Distributed database is a database, not a collection of files data logically related as exhibited in the users’ access patterns ◦ relational data model D-DBMS is a full-fledged DBMS ◦ not remote file system, not a TP system
25
Shared-Memory Architecture Examples :symmetric multiprocessors (Sequent, Encore) and some mainframes (IBM3090, Bull's DPS8) P1P1 PnPn M D
26
Shared-Disk Architecture Examples :DEC's VAXcluster, IBM's IMS/VS Data Sharing D P1P1 M1M1 PnPn MnMn
27
Shared-Nothing Architecture Examples :Teradata's DBC, Tandem, Intel's Paragon, NCR's 3600 and 3700 P1P1 M1M1 D1D1 PnPn MnMn DnDn
28
Applications Manufacturing - especially multi-plant manufacturing Military command and control EFT Corporate MIS Airlines Hotel chains Any organization which has a decentralized organization structure
29
Distributed DBMS Promises Transparent management of distributed, fragmented, and replicated data Improved reliability/availability through distributed transactions Improved performance Easier and more economical system expansion
30
Transparency Transparency is the separation of the higher level semantics of a system from the lower level implementation issues. Fundamental issue is to provide data independence in the distributed environment ◦ Network (distribution) transparency ◦ Replication transparency ◦ Fragmentation transparency horizontal fragmentation: selection vertical fragmentation: projection hybrid
31
Example TITLESAL PAY Elect. Eng. 40000 Syst. Anal.34000 Mech. Eng. 27000 Programmer24000 PROJ PNO PNAME BUDGET ENOENAMETITLE E1J. DoeElect. Eng. E2M. SmithSyst. Anal. E3A. LeeMech. Eng. E4J. MillerProgrammer E5B. CaseySyst. Anal. E6L. ChuElect. Eng. E7R. DavisMech. Eng. E8J. JonesSyst. Anal. EMP ENOPNORESP E1P1Manager12 DUR E2P1Analyst24 E2P2Analyst 6 E3P3Consultant10 E3P4Engineer48 E4P2Programmer18 E5P2Manager24 E6P4Manager48 E7P3Engineer36 E8P3Manager40 ASG P1 Instrumentation 150000 P3CAD/CAM250000 P2Database Develop.135000 P4Maintenance310000 E7P5Engineer23
32
Transparent Access SELECTENAME,SAL FROMEMP,ASG,PAY WHEREDUR > 12 ANDEMP.ENO = ASG.ENO ANDPAY.TITLE = EMP.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
33
Distributed Database - User View Distributed Database
34
Distributed DBMS - Reality Communication Subsystem User Query DBMS Software DBMS Software User Application DBMS Software User Application User Query DBMS Software User Query DBMS Software
35
Potentially Improved Performance Proximity of data to its points of use ◦ Requires some support for fragmentation and replication Parallelism in execution ◦ Inter-query parallelism ◦ Intra-query parallelism
36
Parallelism Requirements Have as much of the data required by each application at the site where the application executes ◦ Full replication How about updates? ◦ Updates to replicated data requires implementation of distributed concurrency control and commit protocols
37
System Expansion Issue is database scaling Emergence of microprocessor and workstation technologies ◦ Demise of Grosh's law ◦ Client-server model of computing Data communication cost vs telecommunication cost
38
Distributed DBMS Issues Distributed Database Design ◦ how to distribute the database ◦ replicated & non-replicated database distribution ◦ a related problem in directory management Query Processing ◦ convert user transactions to data manipulation instructions ◦ optimization problem ◦ min{cost = data transmission + local processing} ◦ general formulation is NP-hard
39
Distributed DBMS Issues Concurrency Control ◦ synchronization of concurrent accesses ◦ consistency and isolation of transactions' effects ◦ deadlock management Reliability ◦ how to make the system resilient to failures ◦ atomicity and durability
40
Directory Management Relationship Between Issues Reliability Deadlock Management Query Processing Concurrency Control Distribution Design
41
Related Issues Operating System Support ◦ operating system with proper support for database operations ◦ dichotomy between general purpose processing requirements and database processing requirements Open Systems and Interoperability ◦ Distributed Multidatabase Systems ◦ More probable scenario ◦ Parallel issues
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.