Coronel DatabaseSystems 13e Ch12
Coronel DatabaseSystems 13e Ch12
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 2
for classroom use.
The Evolution of Distributed Database Management Systems (1 of 5)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 3
for classroom use.
The Evolution of Distributed Database Management Systems (2 of 5)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 4
for classroom use.
The Evolution of Distributed Database Management Systems (3 of 5)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 5
for classroom use.
The Evolution of Distributed Database Management Systems (4 of 5)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 6
for classroom use.
The Evolution of Distributed Database Management Systems (5 of 5)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 7
for classroom use.
DDBMS Advantages and Disadvantages
Table 12.1: Distributed DBMS Advantages and Disadvantages
Advantages Disadvantages
Data is located near the site of greatest demand. The data in a distributed Complexity of management and control. Applications must recognize data location
database system is dispersed to match business requirements. and be able to stitch together data from various sites. Database administrators
must have the ability to coordinate database activities to prevent database
degradation due to data anomalies.
Faster data access. End users often work with only the nearest stored subset of the Technological difficulty. Data integrity, transaction management, concurrency
data. control, security, backup, recovery, and query optimization must all be addressed
and resolved.
Faster data processing. A distributed database system spreads out the system’s Security. Probability of security lapses increases when data is located at multiple
workload by processing data at several sites. sites. Responsibility of data management will be shared by different people at
several sites.
Growth facilitation. New sites can be added to the network without affecting the Lack of standards. No standard communication protocols at the database level.
operations of other sites. Different database vendors employ different and often incompatible techniques to
manage the distribution of data and processing in a DDBMS environment.
Improved communications. Because local sites are smaller and located closer to Increased storage and infrastructure requirements. Multiple copies of data are
customers, local sites foster better communication among departments and required at different sites, thus requiring additional storage space.
between customers and company staff.
Reduced operating costs. It’s more cost-effective to add nodes to a network than Increased training cost. Training costs are generally higher in a distributed model
to update a mainframe system. Development work is done more cheaply and than they would be in a centralized model, sometimes even to the extent of
quickly on low-cost PCs and laptops than on mainframes. offsetting operational and hardware savings.
User-friendly interface. Client devices are usually equipped with an easy-to-use Higher costs. Distributed databases require duplicated infrastructure
graphical user interface (GUI). The G UI simplifies training and use for end users. to operate, such as physical location, environment, personnel, software, and
licensing.
Less danger of a single-point failure. When one of the computers fails, the
workload is picked up by other workstations. Data is also distributed at multiple
sites.
Processor independence. The end user can access any available copy of the data,
and an end user’s request is processed by any processor at the data location.
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 8
for classroom use.
Distributed Processing and Distributed Databases (1 of 3)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 9
for classroom use.
Distributed Processing and Distributed Databases (2 of 3)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 10
for classroom use.
Distributed Processing and Distributed Databases (3 of 3)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 11
for classroom use.
Characteristics of Distributed Management Systems (1 of 3)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 12
for classroom use.
Characteristics of Distributed Management Systems (2 of 3)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 13
for classroom use.
Characteristics of Distributed Management Systems (3 of 3)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 14
for classroom use.
DDBMS Components
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 15
for classroom use.
Levels of Data and Process Distribution
Table 12.2
Database Systems: Levels of Data
and Process Distribution
Advantages Single-Site Data Multiple-Site Data
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 16
for classroom use.
Single-Site Processing, Single-Site Data (SPSD) (1 of 2)
• Characteristics
• Processing is done on a single host computer
• Data stored on host computer’s local disk
• Processing cannot be done on end user’s side
• DBMS is accessed by connected terminals
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 17
for classroom use.
Single-Site Processing, Single-Site Data (SPSD) (2 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 18
for classroom use.
Multiple-Site Processing, Single-Site Data (MPSD) (1 of 2)
• Client/server architecture
• Reduces network traffic
• Distributes processing
• Supports data at multiple sites
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 19
for classroom use.
Multiple-Site Processing, Single-Site Data (MPSD) (2 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 20
for classroom use.
Multiple-Site Processing, Multiple-Site Data (MPMD) (1 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 21
for classroom use.
Multiple-Site Processing, Multiple-Site Data (MPMD) (2 of 2)
• Restrictions of DDBMS
• Remote access is provided on a read-only basis
• Restrictions on the number of remote tables that may be accessed in a single
transaction
• Restrictions on the number of distinct databases that may be accessed
• Restrictions on the database model that may be accessed
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 22
for classroom use.
Distributed Database Transparency Features
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 23
for classroom use.
Distribution Transparency
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 24
for classroom use.
Transaction Transparency
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 25
for classroom use.
Distributed Requests and Distributed Transactions
• Remote request
• Single SQL statement accesses data processed by a single remote database processor
• Remote transaction
• Accesses data at single remote site composed of several requests
• Distributed transaction
• Requests data from several different remote sites on network
• Distributed request
• Single SQL statement references data at several DP sites
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 26
for classroom use.
Distributed Concurrency Control (1 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 27
for classroom use.
Distributed Concurrency Control (2 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 28
for classroom use.
Two-Phase Commit Protocol (2PC)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 29
for classroom use.
Performance and Failure Transparency (1 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 30
for classroom use.
Performance and Failure Transparency (2 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 31
for classroom use.
Distributed Database Design
• Data fragmentation
• How to partition database into fragments
• Data replication
• Which fragments to replicate
• Data allocation
• Where to locate those fragments and replicas
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 32
for classroom use.
Data Fragmentation
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 33
for classroom use.
Data Replication (1 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 34
for classroom use.
Data Replication (2 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 35
for classroom use.
Data Allocation
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 36
for classroom use.
The CAP Theorem (1 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 37
for classroom use.
The CAP Theorem (2 of 2)
Table 12.8
Distributed
Database
Spectrum
DBMS Type Consistency Availability Partition Transaction Trade-Off
Tolerance Model
Centralized DBMS High High N/A ACID No distributed data processing
Relational DBMS High Relaxed High ACID (2PC) Sacrifices availability to ensure
consistency and isolation
NoSQL DDBMS Relaxed High High BASE Sacrifices consistency to ensure
availability
NewSQL DDBMS High High Relaxed ACID Sacrifices partition tolerance
to ensure transaction consistency
and availability
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 38
for classroom use.
C. J. Date’s 12 Commandments for Distributed Databases
1 Local-site independence Each local site can act as an independent, autonomous, centralized DBMS.
Each site is responsible for security, concurrency control, backup, and recovery.
2 Central-site independence Each local site can act as an independent, autonomous, centralized DBMS.
Each site is responsible for security, concurrency control, backup, and recovery.
3 Failure independence The system is not affected by node failures. The system is in continuous operation even in the case of a
node failure or an expansion of the network.
4 Failure Independence The user does not need to know the location of data to retrieve that data.
5 Fragmentation transparency Data fragmentation is transparent to the user, who sees only one logical database. The user does not
need to know the name of the database fragments to retrieve them.
6 Replication transparency The user sees only one logical database. The DDBMS transparently selects the database fragment to
access. To the user, the DDBMS manages all fragments transparently.
7 Distributed query processing A distributed query may be executed at several different DP sites. Query optimization is performed
transparently by the DDBMS.
8 Distributed transaction processing A transaction may update data at several different sites, and the transaction is executed transparently.
10 Operating system independence The system must run on any operating system platform.
12 Database independence The system must support any vendor’s database product.
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 39
for classroom use.
Summary (1 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 40
for classroom use.
Summary (2 of 2)
© 2019 Cengage. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website 41
for classroom use.