SlideShare a Scribd company logo
DISTRIBUTED DATABASE
Distributed Database
 Database:- Logical interrelated
collection of shared data, along with
description of data, physically
distributed over a computer network.
What is Distributed Database?
• A distributed database (DDB) is a collection of multiple, logically
interrelated databases distributed over a computer network.
• A distributed database management system (DDBMS) is the software
that manages the DDB and provides an access mechanism that makes
this distribution transparent to the users
Distributed database
A DDBMS mainly classified into
two types:
Homogeneous Distributed database
management systems
Heterogeneous Distributed database
management systems
Characteristics
 All sites are interconnected.
 Fragments can be replicated.
 Logically related shared data can be collected.
 Data at each and every site is controlled by the DBMS.
 Each Distributed Database Management System takes part in at
least one global application.
Functionality
 Security
 Keeping track of data
 Replicated data management
 System catalog management
 Distributed transaction management
 Distributed database recovery
Homogeneous DDBMS
 In a homogeneous distributed database all sites have identical
software and are aware of each other and agree to cooperate in
processing user requests.
 The homogeneous system is much easier to design and manage
 The operating system used, at each location must be same or
compatible.
 The database application (or DBMS) used at each location must be
same or compatible.
Heterogeneous DDBMS
 In a heterogeneous distributed database different sites may use
different schema and software.
 In heterogeneous systems, different nodes may have different
hardware & software and data structures at various nodes or
locations are also incompatible.
 Different computers and operating systems, database applications
or data models may be used at each of the locations.
Heterogeneous DDBMS (contd..)
 On heterogeneous system, translations are required to allow
communication between different sites (or DBMS).
 The heterogeneous system is often not technically or economically
feasible. In this system, a user at one location may be able to read
but not update the data at another location.
Advantages
 Less danger of a single-point failure. When one of the computers
fails, the workload is picked up by other workstations.
 Data are also distributed at multiple sites.
 The end user is able to access any available copy of the data, and an
end user's request is processed by any processor at the data
location.
Advantages (contd..)
 Improved communications. Because local sites are smaller and
located closer to customers.
 Reduced operating costs. It is more cost-effective to add
workstations to a network than to update a mainframe system.
 Faster data access, faster data processing.
 A distributed database system spreads out the systems workload
by processing data at several sites.
Disadvantages
 Complexity of management and control.
 Applications must recognize data location, and they must be able
to stitch together data from various sites.
 Security.
Disadvantages (contd..)
 Increased storage and infrastructure requirements.
 Multiple copies of data has to be at different sites, thus an
additional disk storage space will be required.
 The probability of security lapses increases when data are located
at multiple sites.
What is Parallel database...??
 A parallel database system is to improve performance through
parallelization of various operations, such as loading data, building
indexes and evaluating queries.
 The distribution is solely done on the bases of performance.
 Parallel databases improve processing and input/output speeds by
using multiple CPUs and disks in parallel.
 Many operations are performed simultaneously
 Data may be stored in a distributed fashion.
Difference b/w Distributed Database and
Parallel Database
Characteristics Parallel Database Distributed database
Definition It is a software system
where multiple
processors or machines are
used to
execute and run queries in
parallel.
It is a software system that
manages multiple logically
interrelated databases
distributed over a computer
network.
Geographical
Location
The nodes are located at
geographically
same location.
The nodes are usually
located at geographically
different locations.
Execution
Speed
Quicker Slower
Overhead Less More
Node types Compulsorily Homogeneous Need not be homogeneous
Performance Lower reliability &
availability.
Higher reliability &
availability.
Scope of
Expansion
Difficult to expand Easier to expand
Backup Backup at one site only Backup at multiple sites
Consistency Maintaining consistency is
easier
Maintaining consistency is
difficult.
Data fragmentation
 Fragmentation is a process of division or the mapping of the tables
based on the columns and rows of data into the smallest unit of data.
 Data that has broken down is still possible to be combined again with
the intention to complete the data collection using fragmentation.
 Fragmentation is a database server feature that allows you to control
where data is stored at the table level.
 Fragmentation enables you to define groups of rows or index keys
within a table.
Replication
 Replication is that we store several copies of a relation or relation
fragment. An entire relation can be replicated at one or more sites.
 Similarly, one or more fragments of a relation can be replicated at other
sites.
 For example, if a relation R is fragmented into R1,R2, and R3, there
might be just one copy of R1, whereas R2 is replicated at two other sites
and R3 is replicated at all sites.
Two Fold Replication
The motivation for replication is twofold:
1. Increased Availability of Data: If a site that contains a replica goes
down, we can find the same data at other sites. Similarly, if local
copies of remote relations are available, we are less vulnerable to
failure of communication links.
2. Faster Query Evaluation: Queries can execute faster by using a
local copy of a relation instead of going to a remote site.
Distributed Transaction
 In a distributed DBMS, a given transaction is submitted at some
one site, but it can access data at other sites as well.
 When a transaction is submitted at some site, the transaction
manager at that site breaks it up into a collection of one or more
sub-transactions that execute at different sites, submits them to
transaction managers at the other sites, and coordinates their
activity.
 Distributed Concurrency Control: How can locks for objects stored
across several sites be managed?
 Distributed Recovery: Transaction atomicity must be ensured when a
transaction commits, all its actions, across all the sites at which it
executes, must persist. Similarly, when a transaction aborts, none of its
actions must be allowed to persist.
Distributed Concurrency Control
 The choice of technique determines which objects are to be locked.
When locks are obtained and released is determined by the
concurrency control protocol. We now consider how lock and
unlock requests are implemented in a distributed environment.
Lock management can be distributed across sites in many ways:
 Centralized : A single site is in charge of handling lock and unlock requests for
all objects.
 Primary Copy: One copy of each object is designated the primary copy. All
requests to lock or unlock a copy of this object are handled by the lock
manager at the site where the primary copy is stored, regardless of where the
copy itself is stored.
 Fully Distributed : Requests to lock or unlock a copy of an object stored at a
site are handled by the lock manager at the site where the copy is stored.
DISTRIBUTED RECOVERY
 Recovery in a distributed DBMS is more complicated than in a
centralized DBMS for the following reasons:
 New kinds of failure can arise : Failure of communication links and failure
of a remote site at which a sub-transaction is executing.
 Either all sub-transactions of a given transaction must commit or none must
commit, and this property must be guaranteed despite any combination of
site and link failures. This guarantee is achieved using a commit protocol.
Concepts Of Locks
A lock is used when multiple users need to access
a database concurrently. This prevents data from
being corrupted or invalidated when multiple
users try to write to the database.
 Any single user can only modify those database
records (that is, items in the database) to which
they have applied a lock that gives them exclusive
access to the record until the lock is released.
Locking not only provides exclusivity to write but
also prevents (or controls) reading of unfinished
modifications.
Distributed database
Ad

More Related Content

What's hot (20)

Distributed file system
Distributed file systemDistributed file system
Distributed file system
Anamika Singh
 
Deadlock detection and recovery by saad symbian
Deadlock detection and recovery by saad symbianDeadlock detection and recovery by saad symbian
Deadlock detection and recovery by saad symbian
saad symbian
 
Distributed Database
Distributed DatabaseDistributed Database
Distributed Database
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management system
Pooja Dixit
 
Dependencies
DependenciesDependencies
Dependencies
Muhammad Ishaq
 
Server system architecture
Server system architectureServer system architecture
Server system architecture
Faiza Hafeez
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query Optimization
Ali Usman
 
IO hardware
IO hardwareIO hardware
IO hardware
sangrampatil81
 
Database backup and recovery basics
Database backup and recovery basicsDatabase backup and recovery basics
Database backup and recovery basics
Shahed Mohamed
 
Mutual exclusion and sync
Mutual exclusion and syncMutual exclusion and sync
Mutual exclusion and sync
Dr. C.V. Suresh Babu
 
Parallel Algorithm Models
Parallel Algorithm ModelsParallel Algorithm Models
Parallel Algorithm Models
Martin Coronel
 
Recovery techniques
Recovery techniquesRecovery techniques
Recovery techniques
Dr. C.V. Suresh Babu
 
Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??
Abdul Aslam
 
Hackolade Tutorial - part 2 - Overview of JSON and JSON schema
Hackolade Tutorial - part 2 - Overview of JSON and JSON schemaHackolade Tutorial - part 2 - Overview of JSON and JSON schema
Hackolade Tutorial - part 2 - Overview of JSON and JSON schema
PascalDesmarets1
 
Centralised and distributed database
Centralised and distributed databaseCentralised and distributed database
Centralised and distributed database
Santosh Singh
 
Components of ddbms
Components of ddbmsComponents of ddbms
Components of ddbms
Pooja Dixit
 
Case Study - SUN NFS
Case Study - SUN NFSCase Study - SUN NFS
Case Study - SUN NFS
Ashish KC
 
Cache coherence
Cache coherenceCache coherence
Cache coherence
Employee
 
message passing
 message passing message passing
message passing
Ashish Kumar
 
Page Replacement
Page ReplacementPage Replacement
Page Replacement
chandinisanz
 

Viewers also liked (20)

Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database System
Sulemang
 
Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed database
HoneySah
 
Distributed dbms
Distributed dbmsDistributed dbms
Distributed dbms
ReachLocal Services India
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
Hardik Patil
 
Heterogeneous databases
Heterogeneous databasesHeterogeneous databases
Heterogeneous databases
ravikamma26
 
Distributed database
Distributed databaseDistributed database
Distributed database
ReachLocal Services India
 
Distributed databases,types of database
Distributed databases,types of databaseDistributed databases,types of database
Distributed databases,types of database
Boomadevi Shanmugam
 
Heterogenous data base
Heterogenous data baseHeterogenous data base
Heterogenous data base
Haqnawaz Ch
 
Database 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanDatabase 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvan
Iftikhar Ahmad
 
Distributed dbms cs712 power point slides lecture 1
Distributed dbms   cs712 power point slides lecture 1Distributed dbms   cs712 power point slides lecture 1
Distributed dbms cs712 power point slides lecture 1
Aimal Syeda
 
Intro to Distributed Database Management System
Intro to Distributed Database Management SystemIntro to Distributed Database Management System
Intro to Distributed Database Management System
Ali Raza
 
Distributed database system
Distributed database systemDistributed database system
Distributed database system
M. Ahmad Mahmood
 
Distributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offsDistributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offs
Ahmed Magdy Ezzeldin, MSc.
 
2 ddb architecture
2 ddb architecture2 ddb architecture
2 ddb architecture
Mr Patrick NIYISHAKA
 
Distributed Database
Distributed DatabaseDistributed Database
Distributed Database
Mayuree Srikulwong
 
Hetrogenous Vs Homogenous
Hetrogenous Vs HomogenousHetrogenous Vs Homogenous
Hetrogenous Vs Homogenous
trevor.fockler
 
Lecture 1 ddbms
Lecture 1 ddbmsLecture 1 ddbms
Lecture 1 ddbms
Mangesh Wanjari
 
1 ddbms jan 2011_u
1 ddbms jan 2011_u1 ddbms jan 2011_u
1 ddbms jan 2011_u
betheperformer
 
The Cassandra Distributed Database
The Cassandra Distributed DatabaseThe Cassandra Distributed Database
The Cassandra Distributed Database
Eric Evans
 
Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)
Rushdi Shams
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database System
Sulemang
 
Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed database
HoneySah
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
Hardik Patil
 
Heterogeneous databases
Heterogeneous databasesHeterogeneous databases
Heterogeneous databases
ravikamma26
 
Distributed databases,types of database
Distributed databases,types of databaseDistributed databases,types of database
Distributed databases,types of database
Boomadevi Shanmugam
 
Heterogenous data base
Heterogenous data baseHeterogenous data base
Heterogenous data base
Haqnawaz Ch
 
Database 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanDatabase 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvan
Iftikhar Ahmad
 
Distributed dbms cs712 power point slides lecture 1
Distributed dbms   cs712 power point slides lecture 1Distributed dbms   cs712 power point slides lecture 1
Distributed dbms cs712 power point slides lecture 1
Aimal Syeda
 
Intro to Distributed Database Management System
Intro to Distributed Database Management SystemIntro to Distributed Database Management System
Intro to Distributed Database Management System
Ali Raza
 
Distributed database system
Distributed database systemDistributed database system
Distributed database system
M. Ahmad Mahmood
 
Distributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offsDistributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offs
Ahmed Magdy Ezzeldin, MSc.
 
Hetrogenous Vs Homogenous
Hetrogenous Vs HomogenousHetrogenous Vs Homogenous
Hetrogenous Vs Homogenous
trevor.fockler
 
The Cassandra Distributed Database
The Cassandra Distributed DatabaseThe Cassandra Distributed Database
The Cassandra Distributed Database
Eric Evans
 
Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)
Rushdi Shams
 
Ad

Similar to Distributed database (20)

Distributed database
Distributed databaseDistributed database
Distributed database
sanjay joshi
 
DDBMS.pptx
DDBMS.pptxDDBMS.pptx
DDBMS.pptx
ManishBej1
 
lecture-13.pptx
lecture-13.pptxlecture-13.pptx
lecture-13.pptx
laiba29012
 
nnnn.pptx
nnnn.pptxnnnn.pptx
nnnn.pptx
NANDHINIS900805
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
NANDHINIS900805
 
distributed database management system.ppt
distributed database management system.pptdistributed database management system.ppt
distributed database management system.ppt
ssuserf170c4
 
ADBMS Presentation1weerfbhytffdghg1.pptx
ADBMS Presentation1weerfbhytffdghg1.pptxADBMS Presentation1weerfbhytffdghg1.pptx
ADBMS Presentation1weerfbhytffdghg1.pptx
deshmukhvishakha2003
 
Distributed D B
Distributed  D BDistributed  D B
Distributed D B
guest8fdbdd
 
ADBMS Presentation_new.pdtttttttttttttttttttttttttttttt
ADBMS Presentation_new.pdttttttttttttttttttttttttttttttADBMS Presentation_new.pdtttttttttttttttttttttttttttttt
ADBMS Presentation_new.pdtttttttttttttttttttttttttttttt
RajeshPawar832767
 
ADBMS Presentation_new1234567878765.pptx
ADBMS Presentation_new1234567878765.pptxADBMS Presentation_new1234567878765.pptx
ADBMS Presentation_new1234567878765.pptx
deshmukhvishakha2003
 
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
latigudata
 
Distributed database detailed version by jh
Distributed database detailed version by jhDistributed database detailed version by jh
Distributed database detailed version by jh
rockop6k
 
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptxSantosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
SANTOSH KUMAR MEHER
 
Distribution transparency and Distributed transaction
Distribution transparency and Distributed transactionDistribution transparency and Distributed transaction
Distribution transparency and Distributed transaction
shraddha mane
 
Distributed databases
Distributed databasesDistributed databases
Distributed databases
Suneel Dogra
 
Distributed Storage in advanced database.pptx
Distributed Storage in advanced database.pptxDistributed Storage in advanced database.pptx
Distributed Storage in advanced database.pptx
rojansebastian1
 
Distributed Database system in Computer Science.pptx
Distributed  Database  system  in Computer Science.pptxDistributed  Database  system  in Computer Science.pptx
Distributed Database system in Computer Science.pptx
Sisodetrupti
 
Lec 8 (distributed database)
Lec 8 (distributed database)Lec 8 (distributed database)
Lec 8 (distributed database)
Sudarshan Mondal
 
DBMS - Distributed Databases
DBMS - Distributed DatabasesDBMS - Distributed Databases
DBMS - Distributed Databases
MythiliMurugan3
 
Distributed dbms (ddbms)
Distributed dbms (ddbms)Distributed dbms (ddbms)
Distributed dbms (ddbms)
JoylineChepkirui
 
Distributed database
Distributed databaseDistributed database
Distributed database
sanjay joshi
 
lecture-13.pptx
lecture-13.pptxlecture-13.pptx
lecture-13.pptx
laiba29012
 
distributed database management system.ppt
distributed database management system.pptdistributed database management system.ppt
distributed database management system.ppt
ssuserf170c4
 
ADBMS Presentation1weerfbhytffdghg1.pptx
ADBMS Presentation1weerfbhytffdghg1.pptxADBMS Presentation1weerfbhytffdghg1.pptx
ADBMS Presentation1weerfbhytffdghg1.pptx
deshmukhvishakha2003
 
ADBMS Presentation_new.pdtttttttttttttttttttttttttttttt
ADBMS Presentation_new.pdttttttttttttttttttttttttttttttADBMS Presentation_new.pdtttttttttttttttttttttttttttttt
ADBMS Presentation_new.pdtttttttttttttttttttttttttttttt
RajeshPawar832767
 
ADBMS Presentation_new1234567878765.pptx
ADBMS Presentation_new1234567878765.pptxADBMS Presentation_new1234567878765.pptx
ADBMS Presentation_new1234567878765.pptx
deshmukhvishakha2003
 
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
latigudata
 
Distributed database detailed version by jh
Distributed database detailed version by jhDistributed database detailed version by jh
Distributed database detailed version by jh
rockop6k
 
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptxSantosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
SANTOSH KUMAR MEHER
 
Distribution transparency and Distributed transaction
Distribution transparency and Distributed transactionDistribution transparency and Distributed transaction
Distribution transparency and Distributed transaction
shraddha mane
 
Distributed databases
Distributed databasesDistributed databases
Distributed databases
Suneel Dogra
 
Distributed Storage in advanced database.pptx
Distributed Storage in advanced database.pptxDistributed Storage in advanced database.pptx
Distributed Storage in advanced database.pptx
rojansebastian1
 
Distributed Database system in Computer Science.pptx
Distributed  Database  system  in Computer Science.pptxDistributed  Database  system  in Computer Science.pptx
Distributed Database system in Computer Science.pptx
Sisodetrupti
 
Lec 8 (distributed database)
Lec 8 (distributed database)Lec 8 (distributed database)
Lec 8 (distributed database)
Sudarshan Mondal
 
DBMS - Distributed Databases
DBMS - Distributed DatabasesDBMS - Distributed Databases
DBMS - Distributed Databases
MythiliMurugan3
 
Ad

More from sanjay joshi (20)

Ccna security
Ccna security Ccna security
Ccna security
sanjay joshi
 
Array in c language
Array in c languageArray in c language
Array in c language
sanjay joshi
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
sanjay joshi
 
Cloud computing
Cloud computingCloud computing
Cloud computing
sanjay joshi
 
Static and dynamic polymorphism
Static and dynamic polymorphismStatic and dynamic polymorphism
Static and dynamic polymorphism
sanjay joshi
 
Embeded system
Embeded systemEmbeded system
Embeded system
sanjay joshi
 
Vb and asp.net
Vb and asp.netVb and asp.net
Vb and asp.net
sanjay joshi
 
Angular js
Angular jsAngular js
Angular js
sanjay joshi
 
introduction to c programming language
introduction to c programming languageintroduction to c programming language
introduction to c programming language
sanjay joshi
 
Oops in php
Oops in phpOops in php
Oops in php
sanjay joshi
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
sanjay joshi
 
Css3 responsive
Css3 responsive Css3 responsive
Css3 responsive
sanjay joshi
 
Html ppt
Html pptHtml ppt
Html ppt
sanjay joshi
 
Java script
Java scriptJava script
Java script
sanjay joshi
 
Data Structure And Queue
Data Structure And Queue Data Structure And Queue
Data Structure And Queue
sanjay joshi
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
sanjay joshi
 
Static and dynamic polymorphism
Static and dynamic polymorphismStatic and dynamic polymorphism
Static and dynamic polymorphism
sanjay joshi
 
Angularjs
AngularjsAngularjs
Angularjs
sanjay joshi
 
Visual basic
Visual basicVisual basic
Visual basic
sanjay joshi
 
Embeded system
Embeded systemEmbeded system
Embeded system
sanjay joshi
 
Array in c language
Array in c languageArray in c language
Array in c language
sanjay joshi
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
sanjay joshi
 
Static and dynamic polymorphism
Static and dynamic polymorphismStatic and dynamic polymorphism
Static and dynamic polymorphism
sanjay joshi
 
introduction to c programming language
introduction to c programming languageintroduction to c programming language
introduction to c programming language
sanjay joshi
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
sanjay joshi
 
Data Structure And Queue
Data Structure And Queue Data Structure And Queue
Data Structure And Queue
sanjay joshi
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
sanjay joshi
 
Static and dynamic polymorphism
Static and dynamic polymorphismStatic and dynamic polymorphism
Static and dynamic polymorphism
sanjay joshi
 

Recently uploaded (20)

LDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living WorkshopLDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDM Mia eStudios
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18
Celine George
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18
Celine George
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptxTERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
PoojaSen20
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon DolabaniHistory Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
fruinkamel7m
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
Form View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo SlidesForm View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo Slides
Celine George
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living WorkshopLDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDM Mia eStudios
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18
Celine George
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18
Celine George
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptxTERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
PoojaSen20
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon DolabaniHistory Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
fruinkamel7m
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
Form View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo SlidesForm View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo Slides
Celine George
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 

Distributed database

  • 2. Distributed Database  Database:- Logical interrelated collection of shared data, along with description of data, physically distributed over a computer network.
  • 3. What is Distributed Database? • A distributed database (DDB) is a collection of multiple, logically interrelated databases distributed over a computer network. • A distributed database management system (DDBMS) is the software that manages the DDB and provides an access mechanism that makes this distribution transparent to the users
  • 5. A DDBMS mainly classified into two types: Homogeneous Distributed database management systems Heterogeneous Distributed database management systems
  • 6. Characteristics  All sites are interconnected.  Fragments can be replicated.  Logically related shared data can be collected.  Data at each and every site is controlled by the DBMS.  Each Distributed Database Management System takes part in at least one global application.
  • 7. Functionality  Security  Keeping track of data  Replicated data management  System catalog management  Distributed transaction management  Distributed database recovery
  • 8. Homogeneous DDBMS  In a homogeneous distributed database all sites have identical software and are aware of each other and agree to cooperate in processing user requests.  The homogeneous system is much easier to design and manage  The operating system used, at each location must be same or compatible.  The database application (or DBMS) used at each location must be same or compatible.
  • 9. Heterogeneous DDBMS  In a heterogeneous distributed database different sites may use different schema and software.  In heterogeneous systems, different nodes may have different hardware & software and data structures at various nodes or locations are also incompatible.  Different computers and operating systems, database applications or data models may be used at each of the locations.
  • 10. Heterogeneous DDBMS (contd..)  On heterogeneous system, translations are required to allow communication between different sites (or DBMS).  The heterogeneous system is often not technically or economically feasible. In this system, a user at one location may be able to read but not update the data at another location.
  • 11. Advantages  Less danger of a single-point failure. When one of the computers fails, the workload is picked up by other workstations.  Data are also distributed at multiple sites.  The end user is able to access any available copy of the data, and an end user's request is processed by any processor at the data location.
  • 12. Advantages (contd..)  Improved communications. Because local sites are smaller and located closer to customers.  Reduced operating costs. It is more cost-effective to add workstations to a network than to update a mainframe system.  Faster data access, faster data processing.  A distributed database system spreads out the systems workload by processing data at several sites.
  • 13. Disadvantages  Complexity of management and control.  Applications must recognize data location, and they must be able to stitch together data from various sites.  Security.
  • 14. Disadvantages (contd..)  Increased storage and infrastructure requirements.  Multiple copies of data has to be at different sites, thus an additional disk storage space will be required.  The probability of security lapses increases when data are located at multiple sites.
  • 15. What is Parallel database...??  A parallel database system is to improve performance through parallelization of various operations, such as loading data, building indexes and evaluating queries.  The distribution is solely done on the bases of performance.  Parallel databases improve processing and input/output speeds by using multiple CPUs and disks in parallel.  Many operations are performed simultaneously  Data may be stored in a distributed fashion.
  • 16. Difference b/w Distributed Database and Parallel Database Characteristics Parallel Database Distributed database Definition It is a software system where multiple processors or machines are used to execute and run queries in parallel. It is a software system that manages multiple logically interrelated databases distributed over a computer network. Geographical Location The nodes are located at geographically same location. The nodes are usually located at geographically different locations. Execution Speed Quicker Slower Overhead Less More
  • 17. Node types Compulsorily Homogeneous Need not be homogeneous Performance Lower reliability & availability. Higher reliability & availability. Scope of Expansion Difficult to expand Easier to expand Backup Backup at one site only Backup at multiple sites Consistency Maintaining consistency is easier Maintaining consistency is difficult.
  • 18. Data fragmentation  Fragmentation is a process of division or the mapping of the tables based on the columns and rows of data into the smallest unit of data.  Data that has broken down is still possible to be combined again with the intention to complete the data collection using fragmentation.  Fragmentation is a database server feature that allows you to control where data is stored at the table level.  Fragmentation enables you to define groups of rows or index keys within a table.
  • 19. Replication  Replication is that we store several copies of a relation or relation fragment. An entire relation can be replicated at one or more sites.  Similarly, one or more fragments of a relation can be replicated at other sites.  For example, if a relation R is fragmented into R1,R2, and R3, there might be just one copy of R1, whereas R2 is replicated at two other sites and R3 is replicated at all sites.
  • 20. Two Fold Replication The motivation for replication is twofold: 1. Increased Availability of Data: If a site that contains a replica goes down, we can find the same data at other sites. Similarly, if local copies of remote relations are available, we are less vulnerable to failure of communication links. 2. Faster Query Evaluation: Queries can execute faster by using a local copy of a relation instead of going to a remote site.
  • 21. Distributed Transaction  In a distributed DBMS, a given transaction is submitted at some one site, but it can access data at other sites as well.  When a transaction is submitted at some site, the transaction manager at that site breaks it up into a collection of one or more sub-transactions that execute at different sites, submits them to transaction managers at the other sites, and coordinates their activity.
  • 22.  Distributed Concurrency Control: How can locks for objects stored across several sites be managed?  Distributed Recovery: Transaction atomicity must be ensured when a transaction commits, all its actions, across all the sites at which it executes, must persist. Similarly, when a transaction aborts, none of its actions must be allowed to persist.
  • 23. Distributed Concurrency Control  The choice of technique determines which objects are to be locked. When locks are obtained and released is determined by the concurrency control protocol. We now consider how lock and unlock requests are implemented in a distributed environment. Lock management can be distributed across sites in many ways:
  • 24.  Centralized : A single site is in charge of handling lock and unlock requests for all objects.  Primary Copy: One copy of each object is designated the primary copy. All requests to lock or unlock a copy of this object are handled by the lock manager at the site where the primary copy is stored, regardless of where the copy itself is stored.  Fully Distributed : Requests to lock or unlock a copy of an object stored at a site are handled by the lock manager at the site where the copy is stored.
  • 25. DISTRIBUTED RECOVERY  Recovery in a distributed DBMS is more complicated than in a centralized DBMS for the following reasons:  New kinds of failure can arise : Failure of communication links and failure of a remote site at which a sub-transaction is executing.  Either all sub-transactions of a given transaction must commit or none must commit, and this property must be guaranteed despite any combination of site and link failures. This guarantee is achieved using a commit protocol.
  • 26. Concepts Of Locks A lock is used when multiple users need to access a database concurrently. This prevents data from being corrupted or invalidated when multiple users try to write to the database.  Any single user can only modify those database records (that is, items in the database) to which they have applied a lock that gives them exclusive access to the record until the lock is released. Locking not only provides exclusivity to write but also prevents (or controls) reading of unfinished modifications.
  翻译: