Professional Documents
Culture Documents
Chapter 12
Distributed Database
Management Systems
Database Systems:
Design, Implementation, and Management,
Seventh Edition, Rob and Coronel
1
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 2
12
The Evolution of Distributed Database
Management Systems
• Distributed database management system
(DDBMS)
– Governs storage and processing of logically
related data over interconnected computer
systems in which both data and processing
functions are distributed among several sites
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 3
12
The Evolution of Distributed Database
Management Systems (continued)
• Centralized database required that corporate
data be stored in a single central site
• Dynamic business environment and
centralized database’s shortcomings
spawned a demand for applications based on
data access from different sources at multiple
locations
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 4
12
The Evolution of Distributed Database
Management Systems (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 5
12
• Advantages include:
– Data are located near “greatest demand” site
– Faster data access
– Faster data processing
– Growth facilitation
– Improved communications
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 6
12
DDBMS Advantages and Disadvantages
(continued)
• Advantages include (continued):
– Reduced operating costs
– User-friendly interface
– Less danger of a single-point failure
– Processor independence
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 7
12
DDBMS Advantages and Disadvantages
(continued)
• Disadvantages include:
– Complexity of management and control
– Security
– Lack of standards
– Increased storage requirements
– Increased training cost
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 8
12
DDBMS Advantages and Disadvantages
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 9
12
DDBMS Advantages and Disadvantages
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 10
12
DDBMS Advantages and Disadvantages
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 11
12
Characteristics of Distributed
Management Systems
• Application interface
• Validation
• Transformation
• Query optimization
• Mapping
• I/O interface
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 12
12
Characteristics of Distributed
Management Systems (continued)
• Formatting
• Security
• Backup and recovery
• DB administration
• Concurrency control
• Transaction management
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 13
12
Characteristics of Distributed
Management Systems (continued)
• Must perform all the functions of centralized
DBMS
• Must handle all necessary functions imposed
by distribution of data and processing
– Must perform these additional functions
transparently to the end user
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 14
12
Characteristics of Distributed
Management Systems (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 15
12
DDBMS Components
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 16
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 17
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 18
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 19
12
Single-Site Processing,
Single-Site Data (SPSD)
• All processing is done on single CPU or host
computer (mainframe, midrange, or PC)
• All data are stored on host computer’s local
disk
• Processing cannot be done on end user’s
side of system
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 20
12
Single-Site Processing,
Single-Site Data (SPSD) (continued)
• Typical of most mainframe and midrange
computer DBMSs
• DBMS is located on host computer, which is
accessed by dumb terminals connected to it
• Also typical of first generation of single-user
microcomputer databases
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 21
12
Single-Site Processing,
Single-Site Data (SPSD) (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 22
12
Multiple-Site Processing,
Single-Site Data (MPSD)
• Multiple processes run on different computers
sharing single data repository
• MPSD scenario requires network file server
running conventional applications that are
accessed through LAN
• Many multiuser accounting applications,
running under personal computer network, fit
such a description
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 23
12
Multiple-Site Processing,
Single-Site Data (MPSD) (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 24
12
Multiple-Site Processing,
Multiple-Site Data (MPMD)
• Fully distributed database management
system with support for multiple data
processors and transaction processors at
multiple sites
• Classified as either homogeneous or
heterogeneous
• Homogeneous DDBMSs
– Integrate only one type of centralized DBMS
over a network
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 25
12
Multiple-Site Processing,
Multiple-Site Data (MPMD) (continued)
• Heterogeneous DDBMSs
– Integrate different types of centralized DBMSs
over a network
• Fully heterogeneous DDBMS
– Support different DBMSs that may even
support different data models (relational,
hierarchical, or network) running under
different computer systems, such as
mainframes and microcomputers
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 26
12
Multiple-Site Processing,
Multiple-Site Data (MPMD) (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 27
12
Distributed Database
Transparency Features
• Allow end user to feel like database’s only
user
• Features include:
– Distribution transparency
– Transaction transparency
– Failure transparency
– Performance transparency
– Heterogeneity transparency
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 28
12
Distribution Transparency
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 29
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 30
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 31
12
Transaction Transparency
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 32
12
Distributed Requests and Distributed
Transactions
• Distributed transaction
– Can update or request data from several
different remote sites on network
• Remote request
– Lets single SQL statement access data to be
processed by single remote database
processor
• Remote transaction
– Accesses data at single remote site
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 33
12
Distributed Requests and Distributed
Transactions (continued)
• Distributed transaction
– Allows transaction to reference several
different (local or remote) DP sites
• Distributed request
– Lets single SQL statement reference data
located at several different local or remote DP
sites
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 34
12
Distributed Requests and Distributed
Transactions (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 35
12
Distributed Requests and Distributed
Transactions (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 36
12
Distributed Requests and Distributed
Transactions (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 37
12
Distributed Requests and Distributed
Transactions (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 38
12
Distributed Requests and Distributed
Transactions (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 39
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 40
12
Distributed Concurrency Control
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 41
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 44
12
• Data fragmentation
– How to partition database into fragments
• Data replication
– Which fragments to replicate
• Data allocation
– Where to locate those fragments and replicas
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 45
12
Data Fragmentation
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 46
12
• Strategies
– Horizontal fragmentation
• Division of a relation into subsets (fragments) of
tuples (rows)
– Vertical fragmentation
• Division of a relation into attribute (column)
subsets
– Mixed fragmentation
• Combination of horizontal and vertical
strategies
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 47
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 48
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 49
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 50
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 51
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 52
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 53
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 54
12
Data Replication
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 55
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 56
12
• Replication scenarios
– Fully replicated database
• Stores multiple copies of each database
fragment at multiple sites
• Can be impractical due to amount of overhead
– Partially replicated database
• Stores multiple copies of some database
fragments at multiple sites
• Most DDBMSs are able to handle the partially
replicated database well
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 57
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 58
12
Data Allocation
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 59
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 60
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 61
12
• Client/server advantages
– Less expensive than alternate minicomputer
or mainframe solutions
– Allow end user to use microcomputer’s GUI,
thereby improving functionality and simplicity
– More people in job market have PC skills than
mainframe skills
– PC is well established in workplace
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 62
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 63
12
• Client/server disadvantages
– Creates more complex environment
• Different platforms (LANs, operating systems,
and so on) are often difficult to manage
– An increase in number of users and
processing sites often paves the way for
security problems
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 64
12
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 65
12
C. J. Date’s Twelve Commandments for
Distributed Databases
• Local site independence
• Central site independence
• Failure independence
• Location transparency
• Fragmentation transparency
• Replication transparency
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 66
12
C. J. Date’s Twelve Commandments for
Distributed Databases (continued)
• Distributed query processing
• Distributed transaction processing
• Hardware independence
• Operating system independence
• Network independence
• Database independence
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 67
12
Summary
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 68
12
Summary (continued)
Summary (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 70
12
Summary (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 71