Академический Документы
Профессиональный Документы
Культура Документы
Outline
File Systems
Introduction
What is a distributed DBMS
Background
Distributed Database Design
Database Integration
Semantic Data Control
Distributed Query Processing
Multidatabase query processing
Distributed Transaction Management
Data Replication
Parallel Database Systems
Distributed Object DBMS
Peer-to-Peer Data Management
Web Data Management
Current Issues
Distributed DBMS
program 1
program 2
Application
program 2
(with data
semantics)
program 3
File 3
data description 3
Ch.1/1
Distributed DBMS
Database
Technology
DBMS
description
manipulation
control
Ch.1/2
Motivation
Computer
Networks
integration
database
distribution
Distributed
Database
Systems
Application
program 3
(with data
semantics)
Distributed DBMS
File 2
data description 2
Database Management
Application
program 1
(with data
semantics)
File 1
data description 1
integration
integration centralization
M. T. zsu & P. Valduriez
Ch.1/3
Distributed DBMS
Ch.1/4
7/4/2016
Distributed Computing
Processing logic
Function
Data
Control
Distributed DBMS
Ch.1/5
Distributed DBMS
Ch.1/6
Site 2
Site 5
Communication
Network
Site 4
Distributed DBMS
Ch.1/7
Distributed DBMS
Site 3
Ch.1/8
7/4/2016
Implicit Assumptions
Site 1
Site 2
Site 5
Communication
Network
Site 4
Distributed DBMS
Site 3
Ch.1/9
Distributed DBMS
Ch.1/10
Delivery modes
Pull-only
Push-only
Hybrid
Improved performance
Frequency
Periodic
Conditional
Ad-hoc or irregular
Communication Methods
Unicast
One-to-many
Distributed DBMS
Ch.1/11
Distributed DBMS
Ch.1/12
Ch.
x/1
2
7/4/2016
Transparency
Example
Distributed DBMS
Ch.1/13
Ch.
x/1
3
Transparent Access
Ch.1/14
SELECT ENAME,SAL
FROM
Distributed DBMS
Tokyo
EMP,ASG,PAY
Paris
Boston
AND
EMP.ENO = ASG.ENO
AND
PAY.TITLE = EMP.TITLE
Communication
Network
Paris projects
Paris employees
Paris assignments
Boston employees
Distributed Database
Boston projects
Boston employees
Boston assignments
Montreal
New
York
Boston projects
New York employees
New York projects
New York assignments
Distributed DBMS
Montreal projects
Paris projects
New York projects
with budget > 200000
Montreal employees
Montreal assignments
Ch.1/15
Distributed DBMS
Ch.1/16
7/4/2016
Types of Transparency
User
Query
DBMS
Software
DBMS
Software
DBMS
Software
User
Application
DBMS
Software
Communication
Subsystem
User
Query
Data independence
Fragmentation transparency
Replication transparency
Fragmentation transparency
User
Application
DBMS
Software
User
Query
Distributed DBMS
Ch.1/17
Distributed DBMS
Potentially Improved
Performance
Parallelism in execution
Inter-query parallelism
Intra-query parallelism
Ch.1/18
Commit protocols
Data replication
Great for read-intensive workloads, problematic for updates
Replication protocols
Distributed DBMS
Ch.1/19
Distributed DBMS
Ch.1/20
7/4/2016
Parallelism Requirements
System Expansion
Have as much of the data required by each application at the site where the
application executes
Full replication
Mutual consistency
Freshness of copies
Distributed DBMS
Ch.1/21
Distributed DBMS
Concurrency Control
Deadlock management
Query Processing
Reliability
Optimization problem
Ch.1/22
Distributed DBMS
Ch.1/23
Distributed DBMS
Ch.1/24
7/4/2016
Related Issues
Directory
Management
Query
Processing
Distribution
Design
Reliability
processing requirements
Concurrency
Control
Deadlock
Management
Distributed DBMS
Ch.1/25
Architecture
Distributed DBMS
Ch.1/26
ANSI/SPARC Architecture
components identified
functions of each component defined
External
Schema
Distributed DBMS
Ch.1/27
External
view
External
view
Conceptual
Schema
Conceptual
view
Internal
Schema
Internal view
Distributed DBMS
External
view
Ch.1/28
7/4/2016
DBMS Implementation
Alternatives
Distributed DBMS
Ch.1/29
Distribution
Heterogeneity
Distributed DBMS
Ch.1/30
Client/Server Architecture
Whether the components of the system are located on the same machine or not
Various levels (hardware, communications, operating system)
DBMS important one
Autonomy
Not well understood and most troublesome
Various versions
Design autonomy: Ability of a component DBMS to decide on issues related to its own
design.
Distributed DBMS
Ch.1/31
Distributed DBMS
Ch.1/32
7/4/2016
Advantages of Client-Server
Architectures
Database Server
Distributed DBMS
Ch.1/33
Distributed DBMS
Ch.1/34
ES1
ES2
...
ESn
GCS
Distributed DBMS
Ch.1/35
Distributed DBMS
LCS1
LCS2
...
LCSn
LIS1
LIS2
...
LISn
Ch.1/36
7/4/2016
Peer-to-Peer Component
Architecture
DATA PROCESSOR
Local Query
Processor
System
Log
Local
Internal
Schema
Database
LES11
Runtime
Support
Processor
Local
Conceptual
Schema
GD/D
Global
Execution
Monitor
Global Query
Optimizer
USER
Global
Conceptual
Schema
Semantic Data
Controller
User
requests
User Interface
Handler
External
Schema
Local Recovery
Manager
USER PROCESSOR
Datalogical Multi-DBMS
Architecture
System
responses
Distributed DBMS
Ch.1/37
Distributed DBMS
GES1
GES2
LES1n
GCS
...
GESn
LESn1
LCS1
LCS2
LCSn
LIS1
LIS2
LISn
LESnm
Ch.1/38
Mediator/Wrapper Architecture
Global
User
Request
Local
User
Request
Global
Subrequest
DBMS1
Distributed DBMS
Local
User
Request
Multi-DBMS
Layer
Global
Subrequest
DBMS2
Global
Subrequest
DBMS3
Ch.1/39
Distributed DBMS
Ch.1/40
10