SlideShare uma empresa Scribd logo
1 de 27
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
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

Mais conteúdo relacionado

Mais procurados

Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management SystemJanki Shah
 
Lecture6 introduction to data streams
Lecture6 introduction to data streamsLecture6 introduction to data streams
Lecture6 introduction to data streamshktripathy
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query OptimizationAli Usman
 
Concurrency control
Concurrency  controlConcurrency  control
Concurrency controlJaved Khan
 
Data Mining: Text and web mining
Data Mining: Text and web miningData Mining: Text and web mining
Data Mining: Text and web miningDataminingTools Inc
 
Data Streaming For Big Data
Data Streaming For Big DataData Streaming For Big Data
Data Streaming For Big DataSeval Çapraz
 
Big Data Analytics with R
Big Data Analytics with RBig Data Analytics with R
Big Data Analytics with RGreat Wide Open
 
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management ProtocolPrasenjit Gayen
 
5.1 mining data streams
5.1 mining data streams5.1 mining data streams
5.1 mining data streamsKrish_ver2
 
Overview of Storage and Indexing ...
Overview of Storage and Indexing                                             ...Overview of Storage and Indexing                                             ...
Overview of Storage and Indexing ...Javed Khan
 
Multi dimensional model vs (1)
Multi dimensional model vs (1)Multi dimensional model vs (1)
Multi dimensional model vs (1)JamesDempsey1
 
4.2 spatial data mining
4.2 spatial data mining4.2 spatial data mining
4.2 spatial data miningKrish_ver2
 
Data warehouse 21 snowflake schema
Data warehouse 21 snowflake schemaData warehouse 21 snowflake schema
Data warehouse 21 snowflake schemaVaibhav Khanna
 
Replication Techniques for Distributed Database Design
Replication Techniques for Distributed Database DesignReplication Techniques for Distributed Database Design
Replication Techniques for Distributed Database DesignMeghaj Mallick
 
Data mining-2
Data mining-2Data mining-2
Data mining-2Nit Hik
 
Multidimentional data model
Multidimentional data modelMultidimentional data model
Multidimentional data modeljagdish_93
 

Mais procurados (20)

Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
 
Lecture6 introduction to data streams
Lecture6 introduction to data streamsLecture6 introduction to data streams
Lecture6 introduction to data streams
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query Optimization
 
Concurrency control
Concurrency  controlConcurrency  control
Concurrency control
 
Data Mining: Text and web mining
Data Mining: Text and web miningData Mining: Text and web mining
Data Mining: Text and web mining
 
Data Streaming For Big Data
Data Streaming For Big DataData Streaming For Big Data
Data Streaming For Big Data
 
Big Data Analytics with R
Big Data Analytics with RBig Data Analytics with R
Big Data Analytics with R
 
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management Protocol
 
5.1 mining data streams
5.1 mining data streams5.1 mining data streams
5.1 mining data streams
 
Overview of Storage and Indexing ...
Overview of Storage and Indexing                                             ...Overview of Storage and Indexing                                             ...
Overview of Storage and Indexing ...
 
Denormalization
DenormalizationDenormalization
Denormalization
 
Multi dimensional model vs (1)
Multi dimensional model vs (1)Multi dimensional model vs (1)
Multi dimensional model vs (1)
 
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS ArchitectureDistributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
 
4.2 spatial data mining
4.2 spatial data mining4.2 spatial data mining
4.2 spatial data mining
 
Data warehouse 21 snowflake schema
Data warehouse 21 snowflake schemaData warehouse 21 snowflake schema
Data warehouse 21 snowflake schema
 
Ddbms1
Ddbms1Ddbms1
Ddbms1
 
Replication Techniques for Distributed Database Design
Replication Techniques for Distributed Database DesignReplication Techniques for Distributed Database Design
Replication Techniques for Distributed Database Design
 
11. dfs
11. dfs11. dfs
11. dfs
 
Data mining-2
Data mining-2Data mining-2
Data mining-2
 
Multidimentional data model
Multidimentional data modelMultidimentional data model
Multidimentional data model
 

Destaque

Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database SystemSulemang
 
Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed databaseHoneySah
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management SystemHardik Patil
 
Heterogeneous databases
Heterogeneous databasesHeterogeneous databases
Heterogeneous databasesravikamma26
 
Distributed databases,types of database
Distributed databases,types of databaseDistributed databases,types of database
Distributed databases,types of databaseBoomadevi Shanmugam
 
Heterogenous data base
Heterogenous data baseHeterogenous data base
Heterogenous data baseHaqnawaz 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 & disadvanIftikhar 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 1Aimal Syeda
 
Intro to Distributed Database Management System
Intro to Distributed Database Management SystemIntro to Distributed Database Management System
Intro to Distributed Database Management SystemAli Raza
 
Distributed database system
Distributed database systemDistributed database system
Distributed database systemM. Ahmad Mahmood
 
Distributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offsDistributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offsAhmed Magdy Ezzeldin, MSc.
 
Hetrogenous Vs Homogenous
Hetrogenous Vs HomogenousHetrogenous Vs Homogenous
Hetrogenous Vs Homogenoustrevor.fockler
 
The Cassandra Distributed Database
The Cassandra Distributed DatabaseThe Cassandra Distributed Database
The Cassandra Distributed DatabaseEric 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
 

Destaque (20)

Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database System
 
Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed database
 
Distributed dbms
Distributed dbmsDistributed dbms
Distributed dbms
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
Heterogeneous databases
Heterogeneous databasesHeterogeneous databases
Heterogeneous databases
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Distributed databases,types of database
Distributed databases,types of databaseDistributed databases,types of database
Distributed databases,types of database
 
Heterogenous data base
Heterogenous data baseHeterogenous data base
Heterogenous data base
 
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
 
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
 
Intro to Distributed Database Management System
Intro to Distributed Database Management SystemIntro to Distributed Database Management System
Intro to Distributed Database Management System
 
Distributed database system
Distributed database systemDistributed database system
Distributed database system
 
Distributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offsDistributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offs
 
2 ddb architecture
2 ddb architecture2 ddb architecture
2 ddb architecture
 
Distributed Database
Distributed DatabaseDistributed Database
Distributed Database
 
Hetrogenous Vs Homogenous
Hetrogenous Vs HomogenousHetrogenous Vs Homogenous
Hetrogenous Vs Homogenous
 
Lecture 1 ddbms
Lecture 1 ddbmsLecture 1 ddbms
Lecture 1 ddbms
 
1 ddbms jan 2011_u
1 ddbms jan 2011_u1 ddbms jan 2011_u
1 ddbms jan 2011_u
 
The Cassandra Distributed Database
The Cassandra Distributed DatabaseThe Cassandra Distributed Database
The Cassandra Distributed Database
 
Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)
 

Semelhante a Distributed database (20)

Distributed database
Distributed databaseDistributed database
Distributed database
 
DDBMS.pptx
DDBMS.pptxDDBMS.pptx
DDBMS.pptx
 
Distributed Database
Distributed DatabaseDistributed Database
Distributed Database
 
lecture-13.pptx
lecture-13.pptxlecture-13.pptx
lecture-13.pptx
 
nnnn.pptx
nnnn.pptxnnnn.pptx
nnnn.pptx
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
Distributed D B
Distributed  D BDistributed  D B
Distributed D B
 
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
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed database
 
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
 
Distribution transparency and Distributed transaction
Distribution transparency and Distributed transactionDistribution transparency and Distributed transaction
Distribution transparency and Distributed transaction
 
Distributed databases
Distributed databasesDistributed databases
Distributed databases
 
Lec 8 (distributed database)
Lec 8 (distributed database)Lec 8 (distributed database)
Lec 8 (distributed database)
 
DBMS - Distributed Databases
DBMS - Distributed DatabasesDBMS - Distributed Databases
DBMS - Distributed Databases
 
Distributed dbms (ddbms)
Distributed dbms (ddbms)Distributed dbms (ddbms)
Distributed dbms (ddbms)
 
Advance DBMS
Advance DBMSAdvance DBMS
Advance DBMS
 
Unit-1 Introduction to Big Data.pptx
Unit-1 Introduction to Big Data.pptxUnit-1 Introduction to Big Data.pptx
Unit-1 Introduction to Big Data.pptx
 
INJRV01I10005.pdf
INJRV01I10005.pdfINJRV01I10005.pdf
INJRV01I10005.pdf
 
Distributed database management system
Distributed database management systemDistributed database management system
Distributed database management system
 
DDBS PPT (1).pptx
DDBS PPT (1).pptxDDBS PPT (1).pptx
DDBS PPT (1).pptx
 

Mais de sanjay joshi

Array in c language
Array in c languageArray in c language
Array in c languagesanjay joshi
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming languagesanjay joshi
 
Static and dynamic polymorphism
Static and dynamic polymorphismStatic and dynamic polymorphism
Static and dynamic polymorphismsanjay joshi
 
introduction to c programming language
introduction to c programming languageintroduction to c programming language
introduction to c programming languagesanjay joshi
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheetssanjay 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 javasanjay joshi
 
Static and dynamic polymorphism
Static and dynamic polymorphismStatic and dynamic polymorphism
Static and dynamic polymorphismsanjay joshi
 

Mais de sanjay joshi (20)

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

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 

Último (20)

Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

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
  • 4.
  • 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.