SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Distributed Database
Management Systems
Different Types of Database System




Contributed by:
                  Isha Kushwah
                  MCA-2008-11
                                     Centralized database System




                                                                   2
Content
• What a distributed database management system
  (DDBMS)
• DDBMS components
• Database implementation is affected by different
  levels of data and process distribution
• How transactions are managed in a distributed
  database environment
• How database design is affected by the
  distributed database environment

                                                     3
Problem in Centralized database
             Management
• Performance degradation
• High cost
• Reliability problems




                                      5
DDBMS Advantages
•   Data located near site with greatest demand
•   Faster data access
•   Faster data processing
•   Growth facilitation
•   Improved communications
•   Reduced operating costs
•   User-friendly interface
•   Less danger of single-point failure
•   Processor independence
                                                  6
DDBMS Disadvantages
•   Complexity of management and control
•   Security
•   Lack of standards
•   Increased storage requirements
•   Greater difficulty in managing data environment
•   Increased training costs




                                                      7
Distributed Processing
Shares database’s logical processing among
physically, networked independent sites




                                         Figure 10.1
                                                       8
Distributed Database
Stores logically related database over physically
independent sites




                                             Figure 10.2

                                                       9
Distributed Database
      vs. Distributed Processing
• Distributed processing
  – Does not require distributed database
  – May be based on a single database on single
    computer
  – Copies or parts of database processing functions
    must be distributed to all data storage sites
• Distributed database
  – Requires distributed processing
• Both
  – Require a network to connect components
                                                       10
Functions of DDBMS
•   Application/end user interface
•   Validation
•   Transformation
•   Query optimization
•   Mapping
•   I/O interface
•   Formatting
•   Security
•   Backup and recovery
•   DB Administration
•   Concurrency Control
•   Transaction Management


                                     11
Centralized Database




                       Figure 10.3

                                13
Fully Distributed Database
  Management System




                       Figure 10.4   14
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)



                                                15
Distributed Database Components




                        Figure 10.5
                                      16
DDBMS Protocols
• Interface with network to transport data and
  commands between DPs and TPs
• Synchronize data received from DPs and route to
  appropriate TPs
• Ensure common database functions
   – Security
   – Concurrency control
   – Backup and recovery



                                                    17
Levels of Data and Process
             Distribution
Database systems can be classified based on
process distribution and data distribution




                                       Table 10.1




                                                    18
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




                                                    19
Single-Site Processing, Single-Site
            Data (con’t.)




  Figure 10.6


                                      20
Multiple-Site Processing, Single-Site
             Data (MPSD)
 • Requires network file server
 • Applications accessed through LAN
 • Variation known as client/server architecture




                                     Figure 10.7
                                                   21
Multiple-Site Processing,
        Multiple-Site Data (MPMD)
• Fully distributed DDBMS with support for multiple
  DPs and TPs at multiple sites
   – Homogeneous I
      • Integrate one type of centralized DBMS over the
        network
   – Heterogeneous
      • Integrate different types of centralized DBMSs over a
        network



                                                                22
Heterogeneous Distributed Database
            Scenario




                             Figure 10.8


                                           23
Distributed DB Transparency
• Allows end users to feel like only database user
• Hides complexities of distributed database
• Transparency features
   –   Distribution
   –   Transaction
   –   Failure
   –   Performance
   – Heterogeneity


                                                     24
Distribution Transparency
• Allows management of a physically dispersed
  database as though it were centralized
• Three Levels
  – Fragmentation transparency
  – Location transparency
  – Local mapping transparency

                                            Table 10.2




                                                    25
Transaction Transparency
• Ensures transactions maintain integrity and
  consistency
• Completed only if all involved database sites
  complete their part of the transaction
• Management mechanisms
   –   Remote request
   –   Remote transaction
   –   Distributed transaction
   –   Distributed request


                                                  26
Remote Request




                 Figure 10.10




                                27
Remote Transaction




                     Figure 10.11


                                    28
Distributed Transaction
Figure 10.12




                                         29
Distributed Requests




                  Figure 10.13

                                 30
Distributed Requests (con’t.)




                       Figure 10.14

                                      31
Distributed Concurrency Control
• Multisite, multiple-process operations more likely
  to create data inconsistencies and deadlocked
  transactions
• Problems
   – Transaction committed by local DP
   – One DP could not commit transaction’s result
   – Yields inconsistent database



                                                       32
Two-Phase Commit Protocol
• DO-UNDO-REDO protocol
  – Write-ahead protocol
  – Two kinds of nodes
     • Coordinator
     • Subordinates
• Phases
  – Preparation
     • Coordinator sends message to all subordinates
     • Confirms all are ready to commit or abort
  – Final Commit
     • Ensures all subordinates have committed or aborted
                                                            33
Performance Transparency
        and Query Optimization
• Objective: Minimize total cost associated with
  execution of request
• Main costs
   – Access time
   – Communication
   – CPU time
• Basis for query optimization algorithms
   – Optimum execution order
   – Sites accessed to minimize communication costs
• Automatic or Manual
• Dynamic or static optimization
• Statistically based vs. rule-based query
  optimization algorithms                             34
Distributed Database Design
• Partition database into fragments
   – Horizontal
   – Vertical
   – Mixed
• Fragments to replicate
   – Storage of data copies at multiple sites
   – Fully, partially, unreplicated databases
• Data allocation
   – Where to locate data
   – Centralized, partitioned, replicated
                                                35
Client/Server Advantages Over DDBMS
• Client/server less expensive
• Client/server solutions allow use of
  microcomputer’s GUI
• More people with PC skills than mainframe skills
• PC is well established in workplace
• Numerous data analysis and query tools exist
• Considerable cost advantages to off-loading
  application development

                                                     36
Client/Server Disadvantages
• Creates more complex environment with different
  platforms
• Increased number of users and sites creates
  security problems
• Training issues become more complex and
  expensive




                                                    37
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


                                38
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

                                         39

Weitere ähnliche Inhalte

Was ist angesagt?

Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management SystemAAKANKSHA JAIN
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management SystemHardik Patil
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 ReliabilityAli Usman
 
20. Parallel Databases in DBMS
20. Parallel Databases in DBMS20. Parallel Databases in DBMS
20. Parallel Databases in DBMSkoolkampus
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database SystemMeghaj Mallick
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactionsNilu Desai
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level ArchitectureAdeel Rasheed
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query OptimizationAli Usman
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management SystemJanki Shah
 
Types and Functions of DDBMS
Types and Functions of DDBMSTypes and Functions of DDBMS
Types and Functions of DDBMSAdeel Rasheed
 
Lecture 10 distributed database management system
Lecture 10   distributed database management systemLecture 10   distributed database management system
Lecture 10 distributed database management systememailharmeet
 
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUESDISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUESAAKANKSHA JAIN
 
Distributed concurrency control
Distributed concurrency controlDistributed concurrency control
Distributed concurrency controlBinte fatima
 
Dbms tutorial
Dbms tutorialDbms tutorial
Dbms tutorialankindian
 

Was ist angesagt? (20)

Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 Reliability
 
20. Parallel Databases in DBMS
20. Parallel Databases in DBMS20. Parallel Databases in DBMS
20. Parallel Databases in DBMS
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database System
 
Distributed dbms
Distributed dbmsDistributed dbms
Distributed dbms
 
Deductive databases
Deductive databasesDeductive databases
Deductive databases
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level Architecture
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query Optimization
 
DDBMS Paper with Solution
DDBMS Paper with SolutionDDBMS Paper with Solution
DDBMS Paper with Solution
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
 
Map Reduce
Map ReduceMap Reduce
Map Reduce
 
Types and Functions of DDBMS
Types and Functions of DDBMSTypes and Functions of DDBMS
Types and Functions of DDBMS
 
Lecture 10 distributed database management system
Lecture 10   distributed database management systemLecture 10   distributed database management system
Lecture 10 distributed database management system
 
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUESDISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
 
Query processing
Query processingQuery processing
Query processing
 
Distributed concurrency control
Distributed concurrency controlDistributed concurrency control
Distributed concurrency control
 
Parallel databases
Parallel databasesParallel databases
Parallel databases
 
Dbms tutorial
Dbms tutorialDbms tutorial
Dbms tutorial
 

Andere mochten auch

Distributed database management systems
Distributed database management systemsDistributed database management systems
Distributed database management systemsDhani Ahmad
 
Difference between Homogeneous and Heterogeneous
Difference between Homogeneous  and    HeterogeneousDifference between Homogeneous  and    Heterogeneous
Difference between Homogeneous and HeterogeneousFaraz Qaisrani
 
Distributed Databases
Distributed DatabasesDistributed Databases
Distributed Databaseselliando dias
 
Chapter 9 software maintenance
Chapter 9 software maintenanceChapter 9 software maintenance
Chapter 9 software maintenancedespicable me
 
Lecture 08 distributed dbms
Lecture 08 distributed dbmsLecture 08 distributed dbms
Lecture 08 distributed dbmsemailharmeet
 
Top 100 general knowledge question answers 2
Top 100 general knowledge question answers 2Top 100 general knowledge question answers 2
Top 100 general knowledge question answers 2letsguru guru
 
The minimum wages act, 1948 (2)
The minimum wages act, 1948 (2)The minimum wages act, 1948 (2)
The minimum wages act, 1948 (2)karanjaymeen
 
Data and database administration(database)
Data and database administration(database)Data and database administration(database)
Data and database administration(database)welcometofacebook
 
Database administrator
Database administratorDatabase administrator
Database administratorTech_MX
 
Asat book0-fresh blood
Asat book0-fresh bloodAsat book0-fresh blood
Asat book0-fresh bloodAshraf Ali
 
Quotes from Leaders in the Civic Engagement Movement
Quotes from Leaders in the Civic Engagement Movement Quotes from Leaders in the Civic Engagement Movement
Quotes from Leaders in the Civic Engagement Movement Talloires Network
 
Financial aid assistance
Financial aid assistanceFinancial aid assistance
Financial aid assistancelupitacm
 
Information systems security_awareness_fy10
Information systems security_awareness_fy10Information systems security_awareness_fy10
Information systems security_awareness_fy10Wesen Tegegne
 

Andere mochten auch (18)

Distributed database
Distributed databaseDistributed database
Distributed database
 
Distributed database management systems
Distributed database management systemsDistributed database management systems
Distributed database management systems
 
Difference between Homogeneous and Heterogeneous
Difference between Homogeneous  and    HeterogeneousDifference between Homogeneous  and    Heterogeneous
Difference between Homogeneous and Heterogeneous
 
Ch9
Ch9Ch9
Ch9
 
Distributed Databases
Distributed DatabasesDistributed Databases
Distributed Databases
 
Software maintenance
Software maintenanceSoftware maintenance
Software maintenance
 
12 software maintenance
12 software maintenance12 software maintenance
12 software maintenance
 
Chapter 9 software maintenance
Chapter 9 software maintenanceChapter 9 software maintenance
Chapter 9 software maintenance
 
Lecture 08 distributed dbms
Lecture 08 distributed dbmsLecture 08 distributed dbms
Lecture 08 distributed dbms
 
Top 100 general knowledge question answers 2
Top 100 general knowledge question answers 2Top 100 general knowledge question answers 2
Top 100 general knowledge question answers 2
 
The minimum wages act, 1948 (2)
The minimum wages act, 1948 (2)The minimum wages act, 1948 (2)
The minimum wages act, 1948 (2)
 
Data and database administration(database)
Data and database administration(database)Data and database administration(database)
Data and database administration(database)
 
Database administrator
Database administratorDatabase administrator
Database administrator
 
Asat book0-fresh blood
Asat book0-fresh bloodAsat book0-fresh blood
Asat book0-fresh blood
 
Cob 20081113 1
Cob 20081113 1Cob 20081113 1
Cob 20081113 1
 
Quotes from Leaders in the Civic Engagement Movement
Quotes from Leaders in the Civic Engagement Movement Quotes from Leaders in the Civic Engagement Movement
Quotes from Leaders in the Civic Engagement Movement
 
Financial aid assistance
Financial aid assistanceFinancial aid assistance
Financial aid assistance
 
Information systems security_awareness_fy10
Information systems security_awareness_fy10Information systems security_awareness_fy10
Information systems security_awareness_fy10
 

Ähnlich wie distributed dbms

Database SystemsDesign, Implementation, and Management
Database SystemsDesign, Implementation, and ManagementDatabase SystemsDesign, Implementation, and Management
Database SystemsDesign, Implementation, and ManagementOllieShoresna
 
9780538469685 ppt ch12 1er exa
9780538469685 ppt ch12 1er exa9780538469685 ppt ch12 1er exa
9780538469685 ppt ch12 1er exacarldevsco63
 
Distributed databases and dbm ss
Distributed databases and dbm ssDistributed databases and dbm ss
Distributed databases and dbm ssMohd Arif
 
lecture-13.pptx
lecture-13.pptxlecture-13.pptx
lecture-13.pptxlaiba29012
 
Chapter-6 Distribute Database system (3).ppt
Chapter-6 Distribute Database system (3).pptChapter-6 Distribute Database system (3).ppt
Chapter-6 Distribute Database system (3).pptlatigudata
 
Distributed database management system
Distributed database management systemDistributed database management system
Distributed database management systemVinay D. Patel
 
1 introduction DDBS
1 introduction DDBS1 introduction DDBS
1 introduction DDBSnaimanighat
 
Database , 1 Introduction
 Database , 1 Introduction Database , 1 Introduction
Database , 1 IntroductionAli Usman
 
The Database Environment Chapter 13
The Database Environment Chapter 13The Database Environment Chapter 13
The Database Environment Chapter 13Jeanie Arnoco
 
Distributed database
Distributed databaseDistributed database
Distributed databasesanjay joshi
 
Distributed Database Management System.pptx
Distributed Database Management System.pptxDistributed Database Management System.pptx
Distributed Database Management System.pptxMajidRajper4
 
Csld phan tan va song song
Csld phan tan va song songCsld phan tan va song song
Csld phan tan va song songLê Anh Trung
 
Webinar: How MongoDB is Used to Manage Reference Data - May 2014
Webinar: How MongoDB is Used to Manage Reference Data - May 2014Webinar: How MongoDB is Used to Manage Reference Data - May 2014
Webinar: How MongoDB is Used to Manage Reference Data - May 2014MongoDB
 

Ähnlich wie distributed dbms (20)

Database SystemsDesign, Implementation, and Management
Database SystemsDesign, Implementation, and ManagementDatabase SystemsDesign, Implementation, and Management
Database SystemsDesign, Implementation, and Management
 
9780538469685 ppt ch12 1er exa
9780538469685 ppt ch12 1er exa9780538469685 ppt ch12 1er exa
9780538469685 ppt ch12 1er exa
 
Distributed dbms (ddbms)
Distributed dbms (ddbms)Distributed dbms (ddbms)
Distributed dbms (ddbms)
 
Distributed databases and dbm ss
Distributed databases and dbm ssDistributed databases and dbm ss
Distributed databases and dbm ss
 
lecture-13.pptx
lecture-13.pptxlecture-13.pptx
lecture-13.pptx
 
Chapter-6 Distribute Database system (3).ppt
Chapter-6 Distribute Database system (3).pptChapter-6 Distribute Database system (3).ppt
Chapter-6 Distribute Database system (3).ppt
 
Distributed database management system
Distributed database management systemDistributed database management system
Distributed database management system
 
Distributed databases
Distributed  databasesDistributed  databases
Distributed databases
 
DDBMS
DDBMSDDBMS
DDBMS
 
1 introduction DDBS
1 introduction DDBS1 introduction DDBS
1 introduction DDBS
 
Database , 1 Introduction
 Database , 1 Introduction Database , 1 Introduction
Database , 1 Introduction
 
The Database Environment Chapter 13
The Database Environment Chapter 13The Database Environment Chapter 13
The Database Environment Chapter 13
 
nnnn.pptx
nnnn.pptxnnnn.pptx
nnnn.pptx
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
DDBMS.pptx
DDBMS.pptxDDBMS.pptx
DDBMS.pptx
 
Distributed Database Management System.pptx
Distributed Database Management System.pptxDistributed Database Management System.pptx
Distributed Database Management System.pptx
 
2 ddb architecture
2 ddb architecture2 ddb architecture
2 ddb architecture
 
Csld phan tan va song song
Csld phan tan va song songCsld phan tan va song song
Csld phan tan va song song
 
Webinar: How MongoDB is Used to Manage Reference Data - May 2014
Webinar: How MongoDB is Used to Manage Reference Data - May 2014Webinar: How MongoDB is Used to Manage Reference Data - May 2014
Webinar: How MongoDB is Used to Manage Reference Data - May 2014
 

Mehr von Anand Grewal

Mehr von Anand Grewal (13)

Transaction concurrency control
Transaction concurrency controlTransaction concurrency control
Transaction concurrency control
 
Object modeling
Object modelingObject modeling
Object modeling
 
Object analysis and design
Object analysis and designObject analysis and design
Object analysis and design
 
Object modeling
Object modelingObject modeling
Object modeling
 
O ops concepts
O ops conceptsO ops concepts
O ops concepts
 
System design
System designSystem design
System design
 
Presentation12
Presentation12Presentation12
Presentation12
 
Presentation1
Presentation1Presentation1
Presentation1
 
Event handling
Event handlingEvent handling
Event handling
 
Isp
IspIsp
Isp
 
Java
JavaJava
Java
 
Pptemail
PptemailPptemail
Pptemail
 
Presentation on dns
Presentation on dnsPresentation on dns
Presentation on dns
 

distributed dbms

  • 2. Different Types of Database System Contributed by: Isha Kushwah MCA-2008-11 Centralized database System 2
  • 3. Content • What a distributed database management system (DDBMS) • DDBMS components • Database implementation is affected by different levels of data and process distribution • How transactions are managed in a distributed database environment • How database design is affected by the distributed database environment 3
  • 4. Problem in Centralized database Management • Performance degradation • High cost • Reliability problems 5
  • 5. DDBMS Advantages • Data located near site with greatest demand • Faster data access • Faster data processing • Growth facilitation • Improved communications • Reduced operating costs • User-friendly interface • Less danger of single-point failure • Processor independence 6
  • 6. DDBMS Disadvantages • Complexity of management and control • Security • Lack of standards • Increased storage requirements • Greater difficulty in managing data environment • Increased training costs 7
  • 7. Distributed Processing Shares database’s logical processing among physically, networked independent sites Figure 10.1 8
  • 8. Distributed Database Stores logically related database over physically independent sites Figure 10.2 9
  • 9. Distributed Database vs. Distributed Processing • Distributed processing – Does not require distributed database – May be based on a single database on single computer – Copies or parts of database processing functions must be distributed to all data storage sites • Distributed database – Requires distributed processing • Both – Require a network to connect components 10
  • 10. Functions of DDBMS • Application/end user interface • Validation • Transformation • Query optimization • Mapping • I/O interface • Formatting • Security • Backup and recovery • DB Administration • Concurrency Control • Transaction Management 11
  • 11. Centralized Database Figure 10.3 13
  • 12. Fully Distributed Database Management System Figure 10.4 14
  • 13. 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) 15
  • 15. DDBMS Protocols • Interface with network to transport data and commands between DPs and TPs • Synchronize data received from DPs and route to appropriate TPs • Ensure common database functions – Security – Concurrency control – Backup and recovery 17
  • 16. Levels of Data and Process Distribution Database systems can be classified based on process distribution and data distribution Table 10.1 18
  • 17. 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 19
  • 18. Single-Site Processing, Single-Site Data (con’t.) Figure 10.6 20
  • 19. Multiple-Site Processing, Single-Site Data (MPSD) • Requires network file server • Applications accessed through LAN • Variation known as client/server architecture Figure 10.7 21
  • 20. Multiple-Site Processing, Multiple-Site Data (MPMD) • Fully distributed DDBMS with support for multiple DPs and TPs at multiple sites – Homogeneous I • Integrate one type of centralized DBMS over the network – Heterogeneous • Integrate different types of centralized DBMSs over a network 22
  • 21. Heterogeneous Distributed Database Scenario Figure 10.8 23
  • 22. Distributed DB Transparency • Allows end users to feel like only database user • Hides complexities of distributed database • Transparency features – Distribution – Transaction – Failure – Performance – Heterogeneity 24
  • 23. Distribution Transparency • Allows management of a physically dispersed database as though it were centralized • Three Levels – Fragmentation transparency – Location transparency – Local mapping transparency Table 10.2 25
  • 24. Transaction Transparency • Ensures transactions maintain integrity and consistency • Completed only if all involved database sites complete their part of the transaction • Management mechanisms – Remote request – Remote transaction – Distributed transaction – Distributed request 26
  • 25. Remote Request Figure 10.10 27
  • 26. Remote Transaction Figure 10.11 28
  • 28. Distributed Requests Figure 10.13 30
  • 30. Distributed Concurrency Control • Multisite, multiple-process operations more likely to create data inconsistencies and deadlocked transactions • Problems – Transaction committed by local DP – One DP could not commit transaction’s result – Yields inconsistent database 32
  • 31. Two-Phase Commit Protocol • DO-UNDO-REDO protocol – Write-ahead protocol – Two kinds of nodes • Coordinator • Subordinates • Phases – Preparation • Coordinator sends message to all subordinates • Confirms all are ready to commit or abort – Final Commit • Ensures all subordinates have committed or aborted 33
  • 32. Performance Transparency and Query Optimization • Objective: Minimize total cost associated with execution of request • Main costs – Access time – Communication – CPU time • Basis for query optimization algorithms – Optimum execution order – Sites accessed to minimize communication costs • Automatic or Manual • Dynamic or static optimization • Statistically based vs. rule-based query optimization algorithms 34
  • 33. Distributed Database Design • Partition database into fragments – Horizontal – Vertical – Mixed • Fragments to replicate – Storage of data copies at multiple sites – Fully, partially, unreplicated databases • Data allocation – Where to locate data – Centralized, partitioned, replicated 35
  • 34. Client/Server Advantages Over DDBMS • Client/server less expensive • Client/server solutions allow use of microcomputer’s GUI • More people with PC skills than mainframe skills • PC is well established in workplace • Numerous data analysis and query tools exist • Considerable cost advantages to off-loading application development 36
  • 35. Client/Server Disadvantages • Creates more complex environment with different platforms • Increased number of users and sites creates security problems • Training issues become more complex and expensive 37
  • 36. 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 38
  • 37. 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 39

Hinweis der Redaktion

  1. 22
  2. 22
  3. 24
  4. 26
  5. 28
  6. Product table should be Customer table and Customer table as Product table mistake in this slide