SlideShare a Scribd company logo
1 of 56
Chapter 10

Distributed databases
Concepts
Distributed Database.
A logically interrelated collection of shared data
(and a description of this data), physically
distributed over a computer network.

Distributed DBMS.
Software system that permits the management of
the distributed database and makes the
distribution transparent to users.
Concepts
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§

Collection of logically-related shared data.
Data split into fragments.
Fragments may be replicated.
Fragments/replicas allocated to sites.
Sites linked by a communications network.
Data at each site is under control of a DBMS.
DBMSs handle local applications autonomously.
Each DBMS participates in at least one global
application.
Component Architecture for a DDBMS
site 1

GDD

DDBMS
DC

LDBMS
GDD

Computer Network
DDBMS
DC
site 2

LDBMS : Local DBMS component
DC
: Data communication component
GDD
: Global Data Dictionary

DB
The Ideal Situation
ī‚§

A single application should be able to operate
transparently on data that is:
īƒ°spread across a variety of different DBMS's
īƒ°running on a variety of different machines
īƒ°supported by a variety of different operating
systems
īƒ°connected together by a variety of different
communication networks

ī‚§

The distribution can be geographical or local
Workable definition
A distributed database system consists of a collection of
sites connected together via some kind of
communications network, in which :
īƒ°each site is a database system site in its own right;
īƒ°the sites agree to work together, so that a user at any
site can access data anywhere in the network exactly
as if the data were all stored at the user's own site
It is a logical union of real databases
ī‚§ It can be seen as a kind of partnership among individual
local DBMS's
ī‚§

Difference with remote access or distributed processing
systems

ī‚§

Temporary assumption: strict homogeneity
Distributed DBMS

5
Distributed Processing
ī‚§

A centralized database that can be accessed
over a computer network.

6
Parallel DBMS
ī‚§

ī‚§

ī‚§

A DBMS running across multiple processors
and disks designed to execute operations in
parallel, whenever possible, to improve
performance.
Based on premise that single processor
systems can no longer meet requirements for
cost-effective scalability, reliability, and
performance.
Parallel DBMSs link multiple, smaller machines
to achieve same throughput as single, larger
machine, with greater scalability and reliability.
Parallel DBMS
ī‚§

Main architectures for parallel DBMSs are:
īƒ°a:
īƒ°b:
īƒ°c:

Shared memory.
Shared disk.
Shared nothing.
Parallel DBMS

9
Advantages of DDBMSs
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§

Organizational Structure
Shareability and Local Autonomy
Improved Availability
Improved Reliability
Improved Performance
Economics
Modular Growth
Disadvantages of DDBMSs
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§

Complexity
Cost
Security
Integrity Control More Difficult
Lack of Standards
Lack of Experience
Database Design More Complex
Types of DDBMS
ī‚§
ī‚§

Homogeneous DDBMS
Heterogeneous DDBMS
Homogeneous DDBMS
ī‚§
ī‚§
ī‚§

All sites use same DBMS product.
Much easier to design and manage.
Approach provides incremental growth and
allows increased performance.
Heterogeneous DDBMS
ī‚§

ī‚§

ī‚§

Sites may run different DBMS products, with
possibly different underlying data models.
Occurs when sites have implemented their own
databases and integration is considered later.
Translations required to allow for:
īƒ°Different hardware.
īƒ°Different DBMS products.
īƒ°Different hardware and different DBMS products.

ī‚§

Typical solution is to use gateways.
Open Database Access and Interoperability
ī‚§

ī‚§

Open Group has formed a Working Group to provide
specifications that will create database infrastructure
environment where there is:
Common SQL API that allows client applications to be
written that do not need to know vendor of DBMS they
are accessing.
īƒ° Common database protocol that enables DBMS from one
vendor to communicate directly with DBMS from another
vendor without the need for a gateway.
īƒ° A common network protocol that allows communications
between different DBMSs.

ī‚§

Most ambitious goal is to find a way to enable
transaction to span DBMSs from different vendors
without use of a gateway.
Multidatabase System (MDBS)
ī‚§

DDBMS in which each site maintains complete
autonomy.

ī‚§

DBMS that resides transparently on top of
existing database and file systems and
presents a single database to its users.
Allows users to access and share data without
requiring physical database integration.
Non-federated MDBS (no local users) and
federated MDBS (FMDBS).

ī‚§

ī‚§
Functions of a DDBMS
ī‚§

ī‚§

Expect DDBMS to have at least the
functionality of a DBMS.
Also to have following functionality:
īƒ°
īƒ°
īƒ°
īƒ°
īƒ°

Extended communication services.
Extended Data Dictionary.
Distributed query processing.
Extended concurrency control.
Extended recovery services.
Reference Architecture for DDBMS
ī‚§

ī‚§

Due to diversity, no universally accepted
architecture such as the ANSI/SPARC 3-level
architecture.
A reference architecture consists of:
īƒ°Set of global external schemas.
īƒ°Global conceptual schema (GCS).
īƒ°Fragmentation schema and allocation schema.
īƒ°Set of schemas for each local DBMS conforming to
3-level ANSI/SPARC .

ī‚§

Some levels may be missing, depending on
levels of transparency supported.
Reference Architecture for DDBMS
Reference Architecture for MDBS
ī‚§

ī‚§

ī‚§

ī‚§

In DDBMS, GCS is union of all local conceptual
schemas.
In FMDBS, GCS is subset of local conceptual
schemas (LCS), consisting of data that each
local system agrees to share.
GCS of tightly coupled system involves
integration of either parts of LCSs or local
external schemas.
FMDBS with no GCS is called loosely coupled.
Reference Architecture for TightlyCoupled Federated MDBS
Components of a DDBMS

25
Distributed Database Design
ī‚§

Three key issues:
īƒ°Fragmentation.
īƒ°Allocation
īƒ°Replication
Distributed Database Design
ī‚§

Fragmentation
īƒ°Relation may be divided into a number of subrelations, which are then distributed.

ī‚§

Allocation
īƒ°Each fragment is stored at site with "optimal"
distribution.

ī‚§

Replication
īƒ°Copy of fragment may be maintained at several sites.
Fragmentation
ī‚§

Definition and allocation of fragments carried
out strategically to achieve:
īƒ°Locality of Reference
īƒ°Improved Reliability and Availability
īƒ°Improved Performance
īƒ°Balanced Storage Capacities and Costs
īƒ°Minimal Communication Costs.

ī‚§

Involves analyzing most important
applications, based on quantitative/qualitative
information.
Fragmentation
ī‚§

Quantitative information may include:
īƒ°frequency with which an application is run;
īƒ°site from which an application is run;
īƒ°performance criteria for transactions and
applications.

ī‚§

Qualitative information may include
transactions that are executed by application,
type of access (read or write), and predicates
of read operations.
Data Allocation
ī‚§

Four alternative strategies regarding
placement of data:
īƒ°Centralized
īƒ°Partitioned (or Fragmented)
īƒ°Complete Replication
īƒ°Selective Replication
Data Allocation
ī‚§

Centralized
īƒ°Consists of single database and DBMS stored at
one site with users distributed across the network.

ī‚§

Partitioned
īƒ°Database partitioned into disjoint fragments, each
fragment assigned to one site.
Data Allocation
ī‚§

Complete Replication
īƒ°Consists of maintaining complete copy of database
at each site.

ī‚§

Selective Replication
īƒ°Combination of partitioning, replication, and
centralization.
Comparison of Strategies for Data
Distribution

33
Why Fragment?
ī‚§

Usage
īƒ°Applications work with views rather than entire
relations.

ī‚§

Efficiency
īƒ°Data is stored close to where it is most frequently
used.
īƒ°Data that is not needed by local applications is not
stored.
Why Fragment?
ī‚§

Parallelism
īƒ°With fragments as unit of distribution, transaction
can be divided into several subqueries that operate
on fragments.

ī‚§

Security
īƒ°Data not required by local applications is not stored
and so not available to unauthorized users.

ī‚§

Disadvantages
īƒ°Performance
īƒ°Integrity.
Correctness of Fragmentation
ī‚§

Three correctness rules:
īƒ°Completeness
īƒ°Reconstruction
īƒ°Disjointness.
Correctness of Fragmentation
ī‚§

Completeness
īƒ° If relation R is decomposed into fragments R1,
R2, ... Rn, each data item that can be found in R
must appear in at least one fragment.

ī‚§
ī‚§

ī‚§

Reconstruction
Must be possible to define a relational
operation that will reconstruct R from the
fragments.
Reconstruction for horizontal fragmentation is
Union operation and Join for vertical .
Correctness of Fragmentation
ī‚§
ī‚§

ī‚§

ī‚§

ī‚§

Disjointness
If data item di appears in fragment Ri, then it
should not appear in any other fragment.
Exception: vertical fragmentation, where
primary key attributes must be repeated to
allow reconstruction.
For horizontal fragmentation, data item is a
tuple
For vertical fragmentation, data item is an
attribute.
Types of Fragmentation
ī‚§

Four types of fragmentation:
īƒ°Horizontal
īƒ°Vertical
īƒ°Mixed
īƒ°Derived.

ī‚§

Other possibility is no fragmentation:
īƒ°If relation is small and not updated frequently, may
be better not to fragment relation.
Horizontal and Vertical Fragmentation

41
Mixed Fragmentation
Horizontal Fragmentation
ī‚§

ī‚§

ī‚§

ī‚§

This strategy is determined by looking at
predicates used by transactions.
Involves finding set of minimal (complete and
relevant) predicates.
Set of predicates is complete, if and only if, any
two tuples in same fragment are referenced
with same probability by any application.
Predicate is relevant if there is at least one
application that accesses fragments
differently.
Transparencies in a DDBMS
ī‚§

Distribution Transparency
īƒ°Fragmentation Transparency
īƒ°Location Transparency
īƒ°Replication Transparency
īƒ°Local Mapping Transparency
īƒ°Naming Transparency
Transparencies in a DDBMS
ī‚§

Transaction Transparency
īƒ°Concurrency Transparency
īƒ°Failure Transparency

ī‚§

Performance Transparency

ī‚§

DBMS Transparency
Distribution Transparency
ī‚§

ī‚§

Distribution transparency allows user to
perceive database as single, logical entity.
If DDBMS exhibits distribution transparency,
user does not need to know:
īƒ°data is fragmented (fragmentation transparency),
īƒ°location of data items (location transparency),
īƒ°otherwise call this local mapping transparency.

ī‚§

With replication transparency, user is unaware
of replication of fragments .
Naming Transparency
ī‚§
ī‚§

ī‚§

Each item in a DDB must have a unique name.
DDBMS must ensure that no two sites create a
database object with same name.
One solution is to create central name server.
However, this results in:
īƒ°loss of some local autonomy;
īƒ°central site may become a bottleneck;
īƒ°low availability; if the central site fails, remaining
sites cannot create any new objects.
Transaction Transparency
ī‚§

ī‚§

ī‚§

ī‚§

Ensures that all distributed transactions
maintain distributed database’s integrity and
consistency.
Distributed transaction accesses data stored at
more than one location.
Each transaction is divided into number of subtransactions, one for each site that has to be
accessed.
DDBMS must ensure the indivisibility of both
the global transaction and each
subtransactions.
Concurrency Transparency
ī‚§

ī‚§

ī‚§

ī‚§

All transactions must execute independently
and be logically consistent with results
obtained if transactions executed one at a time,
in some arbitrary serial order.
Same fundamental principles as for centralized
DBMS.
DDBMS must ensure both global and local
transactions do not interfere with each other.
Similarly, DDBMS must ensure consistency of
all sub-transactions of global transaction.
Concurrency Transparency
ī‚§
ī‚§

ī‚§

ī‚§

Replication makes concurrency more complex.
If a copy of a replicated data item is updated,
update must be propagated to all copies.
Could propagate changes as part of original
transaction, making it an atomic operation.
However, if one site holding copy is not
reachable, then transaction is delayed until site
is reachable.
Concurrency Transparency
ī‚§

Could limit update propagation to only those
sites currently available. Remaining sites
updated when they become available again.

ī‚§

Could allow updates to copies to happen
asynchronously, sometime after the original
update. Delay in regaining consistency may
range from a few seconds to several hours.
Failure Transparency
ī‚§

ī‚§

ī‚§

ī‚§

DDBMS must ensure atomicity and durability of
global transaction.
Means ensuring that sub-transactions of global
transaction either all commit or all abort.
Thus, DDBMS must synchronize global
transaction to ensure that all sub-transactions
have completed successfully before recording
a final COMMIT for global transaction.
Must do this in presence of site and network
failures.
Performance Transparency
ī‚§

DDBMS must perform as if it were a centralized
DBMS.
īƒ°DDBMS should not suffer any performance
degradation due to distributed architecture.
īƒ°DDBMS should determine most cost-effective
strategy to execute a request.
Performance Transparency
ī‚§

ī‚§

ī‚§

Distributed Query Processor (DQP) maps data
request into ordered sequence of operations
on local databases.
Must consider fragmentation, replication, and
allocation schemas.
DQP has to decide:
īƒ°which fragment to access;
īƒ°which copy of a fragment to use;
īƒ°which location to use.
Performance Transparency
ī‚§

ī‚§

DQP produces execution strategy optimized
with respect to some cost function.
Typically, costs associated with a distributed
request include:
īƒ°I/O cost;
īƒ°CPU cost;
īƒ°communication cost.
Date’s 12 Rules for a DDBMS
ī‚§

0.

Fundamental Principle
īƒ° To the user, a distributed system should look
exactly like a non-distributed system.

ī‚§
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§

1.
2.
3.
4.
5.
6.

Local Autonomy
No Reliance on a Central Site
Continuous Operation
Location Independence
Fragmentation Independence
Replication Independence
Date’s 12 Rules for a DDBMS
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§
ī‚§

ī‚§

7.
8.
9.
10.
11.
12.

Distributed Query Processing
Distributed Transaction Processing
Hardware Independence
Operating System Independence
Network Independence
Database Independence

Last four rules are ideals.

More Related Content

What's hot

Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Gyanmanjari Institute Of Technology
 
Fragmentation and types of fragmentation in Distributed Database
Fragmentation and types of fragmentation in Distributed DatabaseFragmentation and types of fragmentation in Distributed Database
Fragmentation and types of fragmentation in Distributed DatabaseAbhilasha Lahigude
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database SystemMeghaj Mallick
 
Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Meghaj Mallick
 
Distribution transparency and Distributed transaction
Distribution transparency and Distributed transactionDistribution transparency and Distributed transaction
Distribution transparency and Distributed transactionshraddha mane
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management SystemAAKANKSHA JAIN
 
Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed databaseHoneySah
 
Database, 3 Distribution Design
Database, 3 Distribution DesignDatabase, 3 Distribution Design
Database, 3 Distribution DesignAli Usman
 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architecturesPooja Dixit
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactionsNilu Desai
 
Database Security
Database SecurityDatabase Security
Database SecurityShingalaKrupa
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed databaseSonia Panesar
 
Database security
Database securityDatabase security
Database securityBirju Tank
 

What's hot (20)

Distributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query ProcessingDistributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query Processing
 
Distributed Database
Distributed DatabaseDistributed Database
Distributed Database
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
 
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS ArchitectureDistributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
 
Database fragmentation
Database fragmentationDatabase fragmentation
Database fragmentation
 
Fragmentation and types of fragmentation in Distributed Database
Fragmentation and types of fragmentation in Distributed DatabaseFragmentation and types of fragmentation in Distributed Database
Fragmentation and types of fragmentation in Distributed Database
 
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 - Unit 5 - Semantic Data Control
Distributed DBMS - Unit 5 - Semantic Data ControlDistributed DBMS - Unit 5 - Semantic Data Control
Distributed DBMS - Unit 5 - Semantic Data Control
 
Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.
 
Distribution transparency and Distributed transaction
Distribution transparency and Distributed transactionDistribution transparency and Distributed transaction
Distribution transparency and Distributed transaction
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed database
 
Database, 3 Distribution Design
Database, 3 Distribution DesignDatabase, 3 Distribution Design
Database, 3 Distribution Design
 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architectures
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
 
Database Security
Database SecurityDatabase Security
Database Security
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed database
 
Lec 7 query processing
Lec 7 query processingLec 7 query processing
Lec 7 query processing
 
Database security
Database securityDatabase security
Database security
 
Ddbms1
Ddbms1Ddbms1
Ddbms1
 

Viewers also liked

Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management SystemHardik Patil
 
Difference between Homogeneous and Heterogeneous
Difference between Homogeneous  and    HeterogeneousDifference between Homogeneous  and    Heterogeneous
Difference between Homogeneous and HeterogeneousFaraz Qaisrani
 
Heterogeneous Or Homogeneous Classrooms Jane
Heterogeneous Or Homogeneous Classrooms   JaneHeterogeneous Or Homogeneous Classrooms   Jane
Heterogeneous Or Homogeneous Classrooms JaneKevin Hodgson
 
Hetrogenous Vs Homogenous
Hetrogenous Vs HomogenousHetrogenous Vs Homogenous
Hetrogenous Vs Homogenoustrevor.fockler
 
Heterogeneous vs. Homogenous product ecosystems
Heterogeneous vs. Homogenous product ecosystemsHeterogeneous vs. Homogenous product ecosystems
Heterogeneous vs. Homogenous product ecosystemscrayg
 
Distributed database management systems
Distributed database management systemsDistributed database management systems
Distributed database management systemsDhani Ahmad
 

Viewers also liked (6)

Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
Difference between Homogeneous and Heterogeneous
Difference between Homogeneous  and    HeterogeneousDifference between Homogeneous  and    Heterogeneous
Difference between Homogeneous and Heterogeneous
 
Heterogeneous Or Homogeneous Classrooms Jane
Heterogeneous Or Homogeneous Classrooms   JaneHeterogeneous Or Homogeneous Classrooms   Jane
Heterogeneous Or Homogeneous Classrooms Jane
 
Hetrogenous Vs Homogenous
Hetrogenous Vs HomogenousHetrogenous Vs Homogenous
Hetrogenous Vs Homogenous
 
Heterogeneous vs. Homogenous product ecosystems
Heterogeneous vs. Homogenous product ecosystemsHeterogeneous vs. Homogenous product ecosystems
Heterogeneous vs. Homogenous product ecosystems
 
Distributed database management systems
Distributed database management systemsDistributed database management systems
Distributed database management systems
 

Similar to Distributed Database System

1 ddbms jan 2011_u
1 ddbms jan 2011_u1 ddbms jan 2011_u
1 ddbms jan 2011_ubetheperformer
 
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
 
Lec 8 (distributed database)
Lec 8 (distributed database)Lec 8 (distributed database)
Lec 8 (distributed database)Sudarshan Mondal
 
Distributed databases and dbm ss
Distributed databases and dbm ssDistributed databases and dbm ss
Distributed databases and dbm ssMohd Arif
 
Chapter25
Chapter25Chapter25
Chapter25gourab87
 
Distributed database
Distributed databaseDistributed database
Distributed databasesanjay joshi
 
Week 17 slides 1 7 multidimensional, parallel, and distributed database
Week 17 slides 1 7 multidimensional, parallel, and distributed databaseWeek 17 slides 1 7 multidimensional, parallel, and distributed database
Week 17 slides 1 7 multidimensional, parallel, and distributed databaseAnne Lee
 
DDBMS.pptx
DDBMS.pptxDDBMS.pptx
DDBMS.pptxManishBej1
 
Pptofdistributeddb
PptofdistributeddbPptofdistributeddb
PptofdistributeddbMahavir Devmane
 
A database management system
A database management systemA database management system
A database management systemghulam120
 
Distributed database
Distributed databaseDistributed database
Distributed databaseAhmed Salama
 
DBMS - Distributed Databases
DBMS - Distributed DatabasesDBMS - Distributed Databases
DBMS - Distributed DatabasesMythiliMurugan3
 
A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C ArchitectureSabeeh Ahmed
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1ahfiki
 
CP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implementCP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implementflyinimohamed
 

Similar to Distributed Database System (20)

1 ddbms jan 2011_u
1 ddbms jan 2011_u1 ddbms jan 2011_u
1 ddbms jan 2011_u
 
DDBS PPT (1).pptx
DDBS PPT (1).pptxDDBS PPT (1).pptx
DDBS PPT (1).pptx
 
DDBMS
DDBMSDDBMS
DDBMS
 
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
 
Advance DBMS
Advance DBMSAdvance DBMS
Advance DBMS
 
Lec 8 (distributed database)
Lec 8 (distributed database)Lec 8 (distributed database)
Lec 8 (distributed database)
 
Distributed databases and dbm ss
Distributed databases and dbm ssDistributed databases and dbm ss
Distributed databases and dbm ss
 
Chapter25
Chapter25Chapter25
Chapter25
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Week 17 slides 1 7 multidimensional, parallel, and distributed database
Week 17 slides 1 7 multidimensional, parallel, and distributed databaseWeek 17 slides 1 7 multidimensional, parallel, and distributed database
Week 17 slides 1 7 multidimensional, parallel, and distributed database
 
DDBMS.pptx
DDBMS.pptxDDBMS.pptx
DDBMS.pptx
 
T7
T7T7
T7
 
Pptofdistributeddb
PptofdistributeddbPptofdistributeddb
Pptofdistributeddb
 
A database management system
A database management systemA database management system
A database management system
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
DBMS - Distributed Databases
DBMS - Distributed DatabasesDBMS - Distributed Databases
DBMS - Distributed Databases
 
A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C Architecture
 
Lecture#5
Lecture#5Lecture#5
Lecture#5
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
 
CP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implementCP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implement
 

Recently uploaded

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vÃĄzquez
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 

Recently uploaded (20)

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Distributed Database System

  • 2.
  • 3. Concepts Distributed Database. A logically interrelated collection of shared data (and a description of this data), physically distributed over a computer network. Distributed DBMS. Software system that permits the management of the distributed database and makes the distribution transparent to users.
  • 4. Concepts ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ Collection of logically-related shared data. Data split into fragments. Fragments may be replicated. Fragments/replicas allocated to sites. Sites linked by a communications network. Data at each site is under control of a DBMS. DBMSs handle local applications autonomously. Each DBMS participates in at least one global application.
  • 5. Component Architecture for a DDBMS site 1 GDD DDBMS DC LDBMS GDD Computer Network DDBMS DC site 2 LDBMS : Local DBMS component DC : Data communication component GDD : Global Data Dictionary DB
  • 6. The Ideal Situation ī‚§ A single application should be able to operate transparently on data that is: īƒ°spread across a variety of different DBMS's īƒ°running on a variety of different machines īƒ°supported by a variety of different operating systems īƒ°connected together by a variety of different communication networks ī‚§ The distribution can be geographical or local
  • 7. Workable definition A distributed database system consists of a collection of sites connected together via some kind of communications network, in which : īƒ°each site is a database system site in its own right; īƒ°the sites agree to work together, so that a user at any site can access data anywhere in the network exactly as if the data were all stored at the user's own site It is a logical union of real databases ī‚§ It can be seen as a kind of partnership among individual local DBMS's ī‚§ Difference with remote access or distributed processing systems ī‚§ Temporary assumption: strict homogeneity
  • 9. Distributed Processing ī‚§ A centralized database that can be accessed over a computer network. 6
  • 10. Parallel DBMS ī‚§ ī‚§ ī‚§ A DBMS running across multiple processors and disks designed to execute operations in parallel, whenever possible, to improve performance. Based on premise that single processor systems can no longer meet requirements for cost-effective scalability, reliability, and performance. Parallel DBMSs link multiple, smaller machines to achieve same throughput as single, larger machine, with greater scalability and reliability.
  • 11. Parallel DBMS ī‚§ Main architectures for parallel DBMSs are: īƒ°a: īƒ°b: īƒ°c: Shared memory. Shared disk. Shared nothing.
  • 13. Advantages of DDBMSs ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ Organizational Structure Shareability and Local Autonomy Improved Availability Improved Reliability Improved Performance Economics Modular Growth
  • 14. Disadvantages of DDBMSs ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ Complexity Cost Security Integrity Control More Difficult Lack of Standards Lack of Experience Database Design More Complex
  • 15. Types of DDBMS ī‚§ ī‚§ Homogeneous DDBMS Heterogeneous DDBMS
  • 16. Homogeneous DDBMS ī‚§ ī‚§ ī‚§ All sites use same DBMS product. Much easier to design and manage. Approach provides incremental growth and allows increased performance.
  • 17. Heterogeneous DDBMS ī‚§ ī‚§ ī‚§ Sites may run different DBMS products, with possibly different underlying data models. Occurs when sites have implemented their own databases and integration is considered later. Translations required to allow for: īƒ°Different hardware. īƒ°Different DBMS products. īƒ°Different hardware and different DBMS products. ī‚§ Typical solution is to use gateways.
  • 18. Open Database Access and Interoperability ī‚§ ī‚§ Open Group has formed a Working Group to provide specifications that will create database infrastructure environment where there is: Common SQL API that allows client applications to be written that do not need to know vendor of DBMS they are accessing. īƒ° Common database protocol that enables DBMS from one vendor to communicate directly with DBMS from another vendor without the need for a gateway. īƒ° A common network protocol that allows communications between different DBMSs. ī‚§ Most ambitious goal is to find a way to enable transaction to span DBMSs from different vendors without use of a gateway.
  • 19. Multidatabase System (MDBS) ī‚§ DDBMS in which each site maintains complete autonomy. ī‚§ DBMS that resides transparently on top of existing database and file systems and presents a single database to its users. Allows users to access and share data without requiring physical database integration. Non-federated MDBS (no local users) and federated MDBS (FMDBS). ī‚§ ī‚§
  • 20. Functions of a DDBMS ī‚§ ī‚§ Expect DDBMS to have at least the functionality of a DBMS. Also to have following functionality: īƒ° īƒ° īƒ° īƒ° īƒ° Extended communication services. Extended Data Dictionary. Distributed query processing. Extended concurrency control. Extended recovery services.
  • 21. Reference Architecture for DDBMS ī‚§ ī‚§ Due to diversity, no universally accepted architecture such as the ANSI/SPARC 3-level architecture. A reference architecture consists of: īƒ°Set of global external schemas. īƒ°Global conceptual schema (GCS). īƒ°Fragmentation schema and allocation schema. īƒ°Set of schemas for each local DBMS conforming to 3-level ANSI/SPARC . ī‚§ Some levels may be missing, depending on levels of transparency supported.
  • 23. Reference Architecture for MDBS ī‚§ ī‚§ ī‚§ ī‚§ In DDBMS, GCS is union of all local conceptual schemas. In FMDBS, GCS is subset of local conceptual schemas (LCS), consisting of data that each local system agrees to share. GCS of tightly coupled system involves integration of either parts of LCSs or local external schemas. FMDBS with no GCS is called loosely coupled.
  • 24. Reference Architecture for TightlyCoupled Federated MDBS
  • 25. Components of a DDBMS 25
  • 26. Distributed Database Design ī‚§ Three key issues: īƒ°Fragmentation. īƒ°Allocation īƒ°Replication
  • 27. Distributed Database Design ī‚§ Fragmentation īƒ°Relation may be divided into a number of subrelations, which are then distributed. ī‚§ Allocation īƒ°Each fragment is stored at site with "optimal" distribution. ī‚§ Replication īƒ°Copy of fragment may be maintained at several sites.
  • 28. Fragmentation ī‚§ Definition and allocation of fragments carried out strategically to achieve: īƒ°Locality of Reference īƒ°Improved Reliability and Availability īƒ°Improved Performance īƒ°Balanced Storage Capacities and Costs īƒ°Minimal Communication Costs. ī‚§ Involves analyzing most important applications, based on quantitative/qualitative information.
  • 29. Fragmentation ī‚§ Quantitative information may include: īƒ°frequency with which an application is run; īƒ°site from which an application is run; īƒ°performance criteria for transactions and applications. ī‚§ Qualitative information may include transactions that are executed by application, type of access (read or write), and predicates of read operations.
  • 30. Data Allocation ī‚§ Four alternative strategies regarding placement of data: īƒ°Centralized īƒ°Partitioned (or Fragmented) īƒ°Complete Replication īƒ°Selective Replication
  • 31. Data Allocation ī‚§ Centralized īƒ°Consists of single database and DBMS stored at one site with users distributed across the network. ī‚§ Partitioned īƒ°Database partitioned into disjoint fragments, each fragment assigned to one site.
  • 32. Data Allocation ī‚§ Complete Replication īƒ°Consists of maintaining complete copy of database at each site. ī‚§ Selective Replication īƒ°Combination of partitioning, replication, and centralization.
  • 33. Comparison of Strategies for Data Distribution 33
  • 34. Why Fragment? ī‚§ Usage īƒ°Applications work with views rather than entire relations. ī‚§ Efficiency īƒ°Data is stored close to where it is most frequently used. īƒ°Data that is not needed by local applications is not stored.
  • 35. Why Fragment? ī‚§ Parallelism īƒ°With fragments as unit of distribution, transaction can be divided into several subqueries that operate on fragments. ī‚§ Security īƒ°Data not required by local applications is not stored and so not available to unauthorized users. ī‚§ Disadvantages īƒ°Performance īƒ°Integrity.
  • 36. Correctness of Fragmentation ī‚§ Three correctness rules: īƒ°Completeness īƒ°Reconstruction īƒ°Disjointness.
  • 37. Correctness of Fragmentation ī‚§ Completeness īƒ° If relation R is decomposed into fragments R1, R2, ... Rn, each data item that can be found in R must appear in at least one fragment. ī‚§ ī‚§ ī‚§ Reconstruction Must be possible to define a relational operation that will reconstruct R from the fragments. Reconstruction for horizontal fragmentation is Union operation and Join for vertical .
  • 38. Correctness of Fragmentation ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ Disjointness If data item di appears in fragment Ri, then it should not appear in any other fragment. Exception: vertical fragmentation, where primary key attributes must be repeated to allow reconstruction. For horizontal fragmentation, data item is a tuple For vertical fragmentation, data item is an attribute.
  • 39. Types of Fragmentation ī‚§ Four types of fragmentation: īƒ°Horizontal īƒ°Vertical īƒ°Mixed īƒ°Derived. ī‚§ Other possibility is no fragmentation: īƒ°If relation is small and not updated frequently, may be better not to fragment relation.
  • 40. Horizontal and Vertical Fragmentation 41
  • 42. Horizontal Fragmentation ī‚§ ī‚§ ī‚§ ī‚§ This strategy is determined by looking at predicates used by transactions. Involves finding set of minimal (complete and relevant) predicates. Set of predicates is complete, if and only if, any two tuples in same fragment are referenced with same probability by any application. Predicate is relevant if there is at least one application that accesses fragments differently.
  • 43. Transparencies in a DDBMS ī‚§ Distribution Transparency īƒ°Fragmentation Transparency īƒ°Location Transparency īƒ°Replication Transparency īƒ°Local Mapping Transparency īƒ°Naming Transparency
  • 44. Transparencies in a DDBMS ī‚§ Transaction Transparency īƒ°Concurrency Transparency īƒ°Failure Transparency ī‚§ Performance Transparency ī‚§ DBMS Transparency
  • 45. Distribution Transparency ī‚§ ī‚§ Distribution transparency allows user to perceive database as single, logical entity. If DDBMS exhibits distribution transparency, user does not need to know: īƒ°data is fragmented (fragmentation transparency), īƒ°location of data items (location transparency), īƒ°otherwise call this local mapping transparency. ī‚§ With replication transparency, user is unaware of replication of fragments .
  • 46. Naming Transparency ī‚§ ī‚§ ī‚§ Each item in a DDB must have a unique name. DDBMS must ensure that no two sites create a database object with same name. One solution is to create central name server. However, this results in: īƒ°loss of some local autonomy; īƒ°central site may become a bottleneck; īƒ°low availability; if the central site fails, remaining sites cannot create any new objects.
  • 47. Transaction Transparency ī‚§ ī‚§ ī‚§ ī‚§ Ensures that all distributed transactions maintain distributed database’s integrity and consistency. Distributed transaction accesses data stored at more than one location. Each transaction is divided into number of subtransactions, one for each site that has to be accessed. DDBMS must ensure the indivisibility of both the global transaction and each subtransactions.
  • 48. Concurrency Transparency ī‚§ ī‚§ ī‚§ ī‚§ All transactions must execute independently and be logically consistent with results obtained if transactions executed one at a time, in some arbitrary serial order. Same fundamental principles as for centralized DBMS. DDBMS must ensure both global and local transactions do not interfere with each other. Similarly, DDBMS must ensure consistency of all sub-transactions of global transaction.
  • 49. Concurrency Transparency ī‚§ ī‚§ ī‚§ ī‚§ Replication makes concurrency more complex. If a copy of a replicated data item is updated, update must be propagated to all copies. Could propagate changes as part of original transaction, making it an atomic operation. However, if one site holding copy is not reachable, then transaction is delayed until site is reachable.
  • 50. Concurrency Transparency ī‚§ Could limit update propagation to only those sites currently available. Remaining sites updated when they become available again. ī‚§ Could allow updates to copies to happen asynchronously, sometime after the original update. Delay in regaining consistency may range from a few seconds to several hours.
  • 51. Failure Transparency ī‚§ ī‚§ ī‚§ ī‚§ DDBMS must ensure atomicity and durability of global transaction. Means ensuring that sub-transactions of global transaction either all commit or all abort. Thus, DDBMS must synchronize global transaction to ensure that all sub-transactions have completed successfully before recording a final COMMIT for global transaction. Must do this in presence of site and network failures.
  • 52. Performance Transparency ī‚§ DDBMS must perform as if it were a centralized DBMS. īƒ°DDBMS should not suffer any performance degradation due to distributed architecture. īƒ°DDBMS should determine most cost-effective strategy to execute a request.
  • 53. Performance Transparency ī‚§ ī‚§ ī‚§ Distributed Query Processor (DQP) maps data request into ordered sequence of operations on local databases. Must consider fragmentation, replication, and allocation schemas. DQP has to decide: īƒ°which fragment to access; īƒ°which copy of a fragment to use; īƒ°which location to use.
  • 54. Performance Transparency ī‚§ ī‚§ DQP produces execution strategy optimized with respect to some cost function. Typically, costs associated with a distributed request include: īƒ°I/O cost; īƒ°CPU cost; īƒ°communication cost.
  • 55. Date’s 12 Rules for a DDBMS ī‚§ 0. Fundamental Principle īƒ° To the user, a distributed system should look exactly like a non-distributed system. ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ 1. 2. 3. 4. 5. 6. Local Autonomy No Reliance on a Central Site Continuous Operation Location Independence Fragmentation Independence Replication Independence
  • 56. Date’s 12 Rules for a DDBMS ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ ī‚§ 7. 8. 9. 10. 11. 12. Distributed Query Processing Distributed Transaction Processing Hardware Independence Operating System Independence Network Independence Database Independence Last four rules are ideals.