SlideShare a Scribd company logo
1 of 23
Jl-Jaladhulagori (Via Andul Mouri), Sankrail District: Howrah (West Bengal) Pin: 711302
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
 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.
 Improvedcommunications. 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.
 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 The nodes are located at The nodes are usually
Location geographically
located at
geographically
same location. 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
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.
DDBMS.pptx

More Related Content

Similar to DDBMS.pptx

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
 
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.pptxSANTOSH KUMAR MEHER
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed databaseSonia Panesar
 
Distributed databases
Distributed databasesDistributed databases
Distributed databasesSuneel Dogra
 
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 systemVinay D. Patel
 
ditributed databases
ditributed databasesditributed databases
ditributed databasesHira Awan
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database SystemSulemang
 
Lec 8 (distributed database)
Lec 8 (distributed database)Lec 8 (distributed database)
Lec 8 (distributed database)Sudarshan Mondal
 
AdvanceDatabaseChapter6Advance Dtabases.pptx
AdvanceDatabaseChapter6Advance Dtabases.pptxAdvanceDatabaseChapter6Advance Dtabases.pptx
AdvanceDatabaseChapter6Advance Dtabases.pptxXanGwaps
 
Distributed Database
Distributed DatabaseDistributed Database
Distributed DatabaseJovyLee4
 
Distributed Database
Distributed DatabaseDistributed Database
Distributed DatabaseEMGonzales11
 
27600120018_LOVEKUSH KUMAR_CSE_6TH SEM_3RD YEAR_PEC-IT601B.pptx
27600120018_LOVEKUSH KUMAR_CSE_6TH SEM_3RD YEAR_PEC-IT601B.pptx27600120018_LOVEKUSH KUMAR_CSE_6TH SEM_3RD YEAR_PEC-IT601B.pptx
27600120018_LOVEKUSH KUMAR_CSE_6TH SEM_3RD YEAR_PEC-IT601B.pptxLovekushKumar14
 

Similar to DDBMS.pptx (20)

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
 
Distributed D B
Distributed  D BDistributed  D B
Distributed D B
 
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
 
1 ddbms jan 2011_u
1 ddbms jan 2011_u1 ddbms jan 2011_u
1 ddbms jan 2011_u
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed database
 
Distributed databases
Distributed databasesDistributed databases
Distributed databases
 
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
 
ditributed databases
ditributed databasesditributed databases
ditributed databases
 
Distributed dbms (ddbms)
Distributed dbms (ddbms)Distributed dbms (ddbms)
Distributed dbms (ddbms)
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database System
 
Lec 8 (distributed database)
Lec 8 (distributed database)Lec 8 (distributed database)
Lec 8 (distributed database)
 
Advance DBMS
Advance DBMSAdvance DBMS
Advance DBMS
 
AdvanceDatabaseChapter6Advance Dtabases.pptx
AdvanceDatabaseChapter6Advance Dtabases.pptxAdvanceDatabaseChapter6Advance Dtabases.pptx
AdvanceDatabaseChapter6Advance Dtabases.pptx
 
INJRV01I10005.pdf
INJRV01I10005.pdfINJRV01I10005.pdf
INJRV01I10005.pdf
 
Distributed
DistributedDistributed
Distributed
 
Distributed Database
Distributed DatabaseDistributed Database
Distributed Database
 
Distributed Database
Distributed DatabaseDistributed Database
Distributed Database
 
DDBS PPT (1).pptx
DDBS PPT (1).pptxDDBS PPT (1).pptx
DDBS PPT (1).pptx
 
27600120018_LOVEKUSH KUMAR_CSE_6TH SEM_3RD YEAR_PEC-IT601B.pptx
27600120018_LOVEKUSH KUMAR_CSE_6TH SEM_3RD YEAR_PEC-IT601B.pptx27600120018_LOVEKUSH KUMAR_CSE_6TH SEM_3RD YEAR_PEC-IT601B.pptx
27600120018_LOVEKUSH KUMAR_CSE_6TH SEM_3RD YEAR_PEC-IT601B.pptx
 

Recently uploaded

GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 

Recently uploaded (20)

GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 

DDBMS.pptx

  • 1.
  • 2. Jl-Jaladhulagori (Via Andul Mouri), Sankrail District: Howrah (West Bengal) Pin: 711302
  • 3. DISTRIBUTED DATABASE  Database:- Logical interrelated collection of shared data, along with description of data, physically distributed over a computer network.
  • 4. 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.
  • 6.  A DDBMS MAINLY CLASSIFIED INTO TWO TYPES: ◦ Homogeneous Distributed database management systems ◦ Heterogeneous Distributed database management systems
  • 7. 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.
  • 8. FUNCTIONALITY  Security  Keeping track of data  Replicated data management  System catalog management  Distributed transaction management  Distributed database recovery
  • 9. 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.
  • 10. 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.
  • 11. 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.
  • 12. 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.  Improvedcommunications. 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.  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.
  • 14. 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.
  • 15. 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 The nodes are located at The nodes are usually Location geographically located at geographically same location. 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
  • 16. 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.
  • 17. 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.
  • 18. 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.
  • 19. 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.
  • 20. 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.
  • 21. 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.
  • 22. 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.