Team:DBMS: by Navdeep Kaur Assistant Professor Computer Science Department
Team:DBMS: by Navdeep Kaur Assistant Professor Computer Science Department
Distributed Database
By Navdeep Kaur
Assistant Professor
Computer Science Department
Distributed Database
Distributed Database
Advantageous
It increases the availability of data at different sites
Also, now query requests can be processed in parallel
Disadvantages
Data needs to be constantly updated
Concurrency control becomes way more complex as concurrent access now
needs to be checked over a number of sites
Distributed Database
Fragmentation
•In this approach, the relations are fragmented (i.e., they’re divided into smaller
parts) and each of the fragments is stored in different sites where they’re required
Advantage
Fragmentation is advantageous as it doesn’t create copies of data, consistency is
not a problem
Fragmentation of relations can be done in two ways:
Horizontal fragmentation – Splitting by rows – The relation is fragmented into
groups of tuples so that each tuple is assigned to at least one fragment
Vertical fragmentation – Splitting by columns – The schema of the relation is
divided into smaller schemas
Each fragment must contain a common candidate key so as to ensure lossless join
Types Distributed Database
Types Distributed Database
Homogeneous Distributed Databases
In a homogeneous distributed database, all the sites use identical DBMS
and operating systems
There are two types of homogeneous distributed database −
Autonomous − Each database is independent that functions on its own
They are integrated by a controlling application and use message
passing to share data updates.
Non-autonomous − Data is distributed across the homogeneous nodes
and a central or master DBMS co-ordinates data updates across the
sites.
Architecture of Distributed Database
Architecture of Distributed Database
Client - Server Architecture for
DDBMS
• This is a two-level architecture
where the functionality is
divided into servers and clients
• The two different client - server
architecture are −
• Single Server Multiple Client
• Multiple Server Multiple Client
Architecture of Distributed Database