Académique Documents
Professionnel Documents
Culture Documents
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1.
u1.1
Learning Objective
• Distributed DBMS features and needs,
• Reference Architecture, Levels of Distribution
• Transparency, Replication, Distributed
database design – Fragmentation, allocation
criteria,
• Storage mechanisms, Translation of Global
Queries / Global Query Optimization, Query
• Execution and access plan
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 2
A Centralized Database
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 3
Centralized DBMSs
in which all of the
data is maintained at
a single site given as
in figure.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 4
Disadvantages:
• Single Point of failure
• Performance Bottleneck
• Contention- Competition for resources
It is a situation where two or more nodes
attempt to transmit a message across the
same wire at the same time, Contention
(term) is used especially in Networks
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 5
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 6
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 7
Interconnection Network P P P
P P P
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 8
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 9
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 11
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 12
Distributed DBMS
A distributed
database (DDB) is
a collection of
multiple, logically
interrelated
databases
distributed over a
computer network.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 13
Database Network
Technology Technology
Centralize Distribute
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 14
Distributed DBMS
Distributed Database-A logically interrelated
collection of shared data (and a description
of this data), physically distributed over a
computer network.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 15
What is distributed …
• Processing logic- Processing logic/
Processing elements are distributed
-Inventory
-Personnel
-Sales
• Functions
Functions of a system could be delegated to
various pieces of hardware/ software
-Printing
-Email
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 16
What is distributed …
• Data
Data used by a no. of applications may be
distributed to a no. processing sites.
• Control
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 17
Components of DDBMS
Components of DDBMS are:
DB-Database Management component
DC-Data Communication Component
DD-Data Dictionary (determines about the
distribution of data in Network)
DDB-Distributed database component. (This
component manages all the above
components).
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 18
DB DC
Local DDB
Database 1 DD
Site 1
Site 2
DD
Local DDB
Database 2
DB DC
T T T T
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 19
Sydney Perth
Sydney Data
Perth Data
Perth Data
Communications
Network
Sydney Data
Brisbane Data
Darwin Data
Darwin Brisbane
A Distributed Application
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 20
Branch Branch
Minicomputer Minicomputer
Central
Database
Automatic
Local Teller
Database Terminals
Accounting
Terminals
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 21
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 22
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 23
Advantages of DDBMS
1) Improved Performance - data located near
site.
2) Improved Availability - node failure will not
make system inoperable.
3) Improved Reliability - replicated data allows
data accessibility.
4)Organisational structure - many organizations
cover several sites.
Business Advantages
Business Advantages
1) Economics
Several smaller computer may be cheaper
than a Mainframe system
2) Modular Growth-easier expansion
3) Integration
Allows for combining of several legacy
databases into one DBMS.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 25
Disadvantages of DDBMS
• Complexity- more complex than centralized
• Cost - added network and maintenance
costs
• Security - network must be made secure
• Integrity control more difficult
• Lack of standards
• Lack of experience- no tools or
methodologies
• Database design more complex
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 26
Reference Architecture
Distributed database facilitate distribution of
data across vast geographical spread.
Distributed database is a collection of various
database sites which are mapped as a single
global database.
Some levels may be missing, depending on
levels of transparency supported.
• Can be homogeneous or heterogeneous
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 27
Reference Architecture
Global schema
Fragmentation schema
Allocation schema
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 28
Reference Architecture
1.Global schema defines all the data which
are contained in the distributed data base as if
the database were not distributed at all, or in
short global schema defines data as a whole.
GlobalSchema:Employee(EmpNo,Ename,Dept)
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 29
Reference Architecture
relations are fragmented to serve the
purpose of distribution.
Fragmentation Schema:
Employee1=SLDept=‘Mgr’ Employee
Employee2=SLDept=‘Sales’ Employee
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 30
Reference Architecture
3.Below the fragmentation schema exists the
allocation schema determining the sites on
which any particular fragment is to be
deployed.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 31
Reference Architecture
(a) The first layer at the local database site is
the local mapping schema which helps in
identifying the global relation schema for any
local database relation schema. It is the local
mapping schema which facilitates the
integration of local database sites into one
single global database.
(b) Below this layer is the local schema of the
local DBMS. It is very much similar to the
three schema architecture of the centralized
data bases.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 32
Classification of DDBMS
Integrated banking
Heterogeneous Inter-divisional and inter-banking
information
systems systems
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 33
DDBMS
• Distributed database systems have been around since the
mid-1980s. As you might expect, a variety of distributed
database options exist. The diagram below shows the basic
distributed database environments.
Distributed database environments
Homogeneous Heterogeneous
Federated Unfederated
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 34
Types of DDBMS
Homogeneous – Same DBMS is used at
each site.
Autonomous – Each DBMS works
independently, passing messages back
and forth to share data updates.
Non-Autonomous – A central, or master,
DBMS coordinates database access and
updates across the sites.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 35
Types of DDBMS
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 36
Types of DDBMS
Partial-Multidatabase – supports some of the features of a
distributed database.
Federated – supports local databases for unique data
requests.
Loose integration – many schemas exist: each local
database and each local DBMS must communicate with
all local schemas.
Tight integration – one global schema exists that defines
all the data across all local databases.
Unfederated – requires all access to go through a central
coordinating module.
Gateways – simple paths are created to other databases, without the
benefits of one logical database.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 37
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 38
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 39
Global
Global
user user
Global
schema
Distributed DBMS
Node 1 2 3 n
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 40
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 42
Global
schema
Distributed DBMS
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 43
Figure 10.8
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 44
Distribution Transparency
• In any distributed system transparency is the
most central issue.
• Base of distributed data base management
system (DDBMS) emphasis‘s that a DDBMS
should work like a non-Distributed DBMS.
• The rule thus insists that the user should not
be aware of the distribution of data.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 45
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 46
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 47
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 48
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 49
Data Replication
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 50
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 51
Fragmentation
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 54
Fragmentation
• Horizontal – Subset of rows
• Vertical – Subset of columns
Each fragment must contain primary key
Other columns can be replicated
• Mixed (hybrid) – both horizontal and vertical
• Derived – Derived from the horizontal
fragmentation of another relation.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 55
Fragmentation
e.g.
Natural join first to get additional
information required then fragment Must
be able to reconstruct original table Can
query and update through fragment
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 56
Correctness of Fragmentation
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 57
Rules/Correctness of Fragmentation
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 58
Rules/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.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 59
Horizontal Fragmentation
Horizontal fragmentation is based on the
selection operation. Some condition is
chosen and against this condition the tuples
are evaluated only those tuples which
satisfied the condition become the part of
that corresponding fragment.
Example: If there is an organization it may
fragment its global employees relation
horizontally by keeping the records of the
employee belonging to one particular country
in a separate horizontal fragment.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 60
Horizontal Fragmentation
Condition can be
C1=country_name=“INDIA”
C2=country_name=“United States”
.
.
.
.CN=country_name=“Srilanka”
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 61
Horizontal Fragmentation
e.g. Let’s a global relation (table) Supplier.
Supplier (SNum,Name,City)
Then the horizontal fragmentation can be
defined as following:
Supplier1=SL city=“sf” Supplier
Supplier2=SL city=“la” Supplier
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 62
Horizontal Fragmentation
Completeness (The above fragmentation
satisfies the completeness condition if “sf”
and “la” are the only possible values of the
City attribute , otherwise we would not know
to which fragment the tuples with other City
Values belong.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 63
Horizontal Fragmentation
Reconstruction (It is always possible to reconstruct
the Supplier global relation by using Union
operation )
Supplier=Supplier1 UN Supplier2
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 64
Horizontal Fragmentation-example
Another Example
PERSON
NAME ADDRESS PHONE SAL
John Smith 44, Here St 3456 7890 34000
Alex Brown 1, High St 3678 1234 48000
Harry Potter 99, Magic St 9976 4321 98000
Jane Morgan 87, Riverview 8765 1237 65800
Peter Jennings 65, Flag Rd 9851 1238 23980
PERSON-FRAGMENT1
NAME ADDRESS PHONE SAL
John Smith 44, Here St 3456 7890 34000
Alex Brown 1, High St 3678 1234 48000
PERSON-FRAGMENT2
NAME ADDRESS PHONE SAL
Harry Potter 99, Magic St 9976 4321 98000
Jane Morgan 87, Riverview 8765 1237 65800
Peter Jennings 65, Flag Rd 9851 1238 23980
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 65
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 66
Vertical Fragmentation
• It is based on Projection Operation
The Predicate of the projection operation is a
list of Attribute which are intended to
constitute that corresponding vertical
fragment.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 67
Vertical Fragmentation
• Vertical Fragmentation can never be
absolutely disjoint at least one column needs
to be common, so as maintains referential
integrity
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 68
Vertical Fragmentation-example
PERSON
NAME ADDRESS PHONE SAL
John Smith 44, Here St 3456 7890 34000
Alex Brown 1, High St 3678 1234 48000
Harry Potter 99, Magic St 9976 4321 98000
Jane Morgan 87, Riverview 8765 1237 65800
Peter Jennings 65, Flag Rd 9851 1238 23980
PERSON PERSON
NAME ADDRESS PHONE NAME SAL
John Smith 44, Here St 3456 7890 John Smith 34000
Alex Brown 1, High St 3678 1234 Alex Brown 48000
Harry Potter 99, Magic St 9976 4321 Harry Potter 98000
Jane Morgan 87, Riverview 8765 1237 Jane Morgan 65800
Peter Jennings 65, Flag Rd 9851 1238 Peter Jennings 23980
Vertical Fragmentation
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 70
Degree of Fragmentation
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 71
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 72
PERSON
NAME ADDRESS PHONE SAL
John Smith 44, Here St 3456 7890 34000
Alex Brown 1, High St 3678 1234 48000
Harry Potter 99, Magic St 9976 4321 98000
Jane Morgan 87, Riverview 8765 1237 65800
Peter Jennings 65, Flag Rd 9851 1238 23980
PERSON PERSON
NAME ADDRESS PHONE NAME SAL
John Smith 44, Here St 3456 7890 Harry Potter 98000
Alex Brown 1, High St 3678 1234 Jane Morgan 65800
Peter Jennings 23980
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 73
R1 R2
v v
R11 R12 R21 R22
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 75
Fragment Allocation
In determining the allocation of fragments, it
is important to distinguish whether we
design a final non redundant or redundant
allocation.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 76
Fragment Allocation
In case of non redundant final allocation is
easier. The simplest method is a “best-fit”
approach; a measure is associated with each
possible allocation, and the site with the best
measure is selected.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 77
Fragment Allocation
Replication introduces further complexity
in the design, because:
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 78
Fragment Allocation
1.Determine the set of all sites where the
“benefit of allocating one copy of fragment is
higher than the cost”, and allocate a copy of
the fragment to each element of this set; this
method select “all beneficial sites”.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 80
Fragment Allocation
Replication and fragmentation can be
combined
Relation is partitioned into several
fragments: system maintains several
identical replicas of each such fragment.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 81
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 83
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 84
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 86
Catalog Management
System catalog Constitutes the data dictionary. It is the meta data i.e.
it holds data about data.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 87
• Centralized Approach
• Distributed Approach.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 88
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 89
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 90
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 91
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 92
Draw Backs
Draw Backs
BUT this approach has its own set of Draw
backs. One of the draw back is the storage
overhead owing to greater redundancy and
the other draw back is the consistency
problem that is how to keep the replicated
copies of the system catalog on various sites
synchronized.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 93
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 94
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 95
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 96
Functionality of a DBMS
Query Processing
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 98
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor U1. 99
Query Optimization
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 100
Queries
Find
Findall
allcourses
coursesthat
that“Mary”
“Mary”takes
takes
SELECT
SELECT C.name
C.name
FROM
FROM Students
Students S,
S, Takes
Takes T,
T, Courses
Courses CC
WHERE
WHERE S.name=“Mary”
S.name=“Mary” and and
S.ssn
S.ssn ==T.ssn
T.ssn and
and T.cid
T.cid== C.cid
C.cid
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 101
SELECT
SELECT C.name
C.name
FROM
FROMStudents
StudentsS,
S,Takes
TakesT,
T,Courses
CoursesCC
WHERE
WHERES.name=“Mary”
S.name=“Mary”andand cid=cid
S.ssn
S.ssn==T.ssn
T.ssnand
andT.cid
T.cid==C.cid
C.cid
sid=sid
name=“Mary”
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 103
SLArea=‘North’
JN deptnum=deptnum
Supply Dept
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 104
PJsnum
Case2-Fragments
SLArea=‘North’
JN deptnum=deptnum
UN UN
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 105
PJsnum
Case3-Fragments with
Optimized result.
JN deptnum=deptnum
UN UN
SLArea=‘North SLArea=‘North
’ ’
SLArea=‘North
Supply1 Supply2 Supply N Dept1’ Dept2 Dept N
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 106
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 107
Global Optimization
Global Optimization consists of
determining which data must be accessed at
which sites and which data files must
consequently be transmitted between sites.
The main optimization parameter for global
optimization is communication cost.
While Local Optimization consists of
deciding how to perform the local database
accesses at each site.
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 108
2) At sites 2 and 3
Execute in parallel, upon receipt of the supplier number,
the following program:
3) At site 1
Merge results from sites 2 and 3;
Output the result.
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 109
Short Questions
• Explain the use of distributed DBMS over
Centralized DBMS?
• Discuss the transparency in terms of
transaction.
• Describe various fragmentation techniques
with examples?
• Explain the distribution of a Database on
various sites.
• What is distributed DBMS and write its
features?
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 110
Long Questions
• What are Global Optimization, Execution and
Access Plan, give an example for access plan?
• Differentiate between homogeneous and
heterogeneous DDBMS?
• Advantage and disadvantage of DDBMS,
Explain?
• Describe Distributed approach for catalog
management?
• What is fragmentation explain different type of
fragmentation?
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 111
References
Book:
S. Ceri, G. Pelagatti, “Distributed Database:
Principles and Systems”, McGraw Hill, New York,
1985.
DISTRIBUTED DATABASES M. Tamer Özsu
University of Alberta
Web Sights:
Wikipedia.com
Google.com
U1.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Divya Goel, Asst. Professor 112