SlideShare a Scribd company logo
8/26/2016
1
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Over view Of Presentation
Distributed Concurrency Control.
Distributed Concurrency control Algorithms.
Structure Of Distributed transection.
Distributed Two phase locking(2PL).
Wound wait(WW).
Basic timestamp Ordering(BTO).
Distributed Optimistic(OPT).
8/26/2016
2
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Distributed
 A distributed database is a single logical database
that is spread physically across computers in
multiple locations that are connected by data
communication links.
 Distributed database is a kind of virtual database
whose component parts are physically stored in a
number of distinct real databases at a number of
distinct locations
8/26/2016
3
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Concurrency
 A situation in which two or more persons access the
same record simultaneously is called
Concurrency.
 Concurrency control involves the synchronization of
accesses to the distributed database , such that the
integrity of the database is maintained.
8/26/2016
4
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Concurrency
 The concurrency control problem in a distributed
context is somewhat different than in a centralized
framework.
 One not only has to worry about the integrity of a
single database, but also about the consistency of
multiple copies of the database.
 The condition that requires all the values of multiple
copies of every data item to converge to the same
value is called Mutual consistency.
8/26/2016
5
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Distributed Concurrency
Control Algorithm
 we consider some of the distributed concurrency
control algorithms. We summarize the salient
aspects of these four algorithms in this section.
 In order to do this, we must first explain the
structure that we have assumed for distributed
transactions.
 Before discussing the algorithms, we need to get an
idea about the distributed transactions.
8/26/2016
6
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Structure Of Distributed
Transection(cont.)
 A distributed transaction is a transaction
that runs in multiple processes, usually on
several machines.
 Each process works for the transaction.
 Distributed transaction processing systems
are designed to facilitate transactions that
span heterogeneous, transaction-aware
resource managers in a distributed
environment .
8/26/2016
7
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Structure Of Distributed Transection
(cont.)
 The execution of a distributed transaction requires
coordination between a global transaction
management system and all the local resource
managers of all the involved systems.
 The resource manager and transaction processing
monitor are the two primary elements of any
distributed transactional system.
 Distributed transactions, like local transactions,
must observe the ACID properties. However,
maintenance of these properties is very
complicated for distributed transactions because a
failure can occur in any process
8/26/2016
8
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Structure Of Distributed Transection
(cont.)
 If such a failure occurs, each process must undo any
work that has already been done on behalf of the
transaction.
 A distributed transaction processing system maintains
the ACID properties in distributed transactions by using
two features:
 Recoverable processes: Recoverable processes log
their actions and therefore can restore earlier states if a
failure occurs.
 A commit protocol: A commit protocol allows
multiple processes to coordinate the committing or
aborting of a transaction. The most common commit
protocol is the two-phase commit protocol.
8/26/2016
9
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Distributed Two Phase
Locking(2PL)
 In order to ensure serializability of parallel executed
transactions elaborated different methods of
concurrency control.
 One of these methods is locking method. There are
different forms of locking method.
 Two phase locking protocol is one of the basic
concurrency control protocols in distributed
database systems.
 The main approach of this protocol is “read any,
write all”. 8/26/2016
10
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Distributed Two Phase
Locking
 Transactions set read locks on items that they read,
and they convert their read locks to write locks on
items that need to be updated.
 To read an item, it suffices to set a read lock on any
copy of the item, so the local copy is locked; to
update an item, write locks are required on all
copies.
 Write locks are obtained as the transaction
executes, with the transaction blocking on a write
request until all of the copies of the item to be
updated have been successfully locked
8/26/2016
11
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Distributed Two Phase
Locking(cont.)
 The 2PL Protocol oversees locks by determining when
transactions can acquire and release locks.
 The 2PL protocol forces each transaction to make a
lock or unlock request in two steps:
 Growing Phase: A transaction may obtain locks but may
not release any locks.
 Shrinking Phase: A transaction may release locks but not
obtain any new lock.
 The transaction first enters into the Growing Phase,
makes requests for required locks, then gets into the
Shrinking phase where it releases all locks and cannot
make any more requests 8/26/2016
12
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Wound wait
 The second algorithm is the distributed wound-wait
locking algorithm.
 It follows the same approach as the 2 PL protocol. The
difference lies in the fact that it differs from 2PL in its
handling of the deadlock problem: unlike 2PL protocol,
rather than maintaining waits-for information and then
checking for local and global deadlocks, deadlocks are
prevented via the use of timestamps in this algorithm.
8/26/2016
13
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Example Of Wound Wait
Example-:Wound wait algorithm
T1 is allowed to
T(T1)>t(T2) Wait
T(T1<t(T2) Abort and rolled back
8/26/2016
14
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
Wound wait(ww)
 Each transaction is numbered according to its initial
startup time, and younger transactions are
prevented from making older ones wait.
 If an older transaction requests a lock, and if the
request would lead to the older transaction waiting
for a younger transaction, the younger transaction
is “wounded” – it is restarted unless it is already in
the second phase of its commit protocol.
 Younger transactions can wait for older transactions
so that the possibility of deadlocks is eliminated [2].
8/26/2016
15
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
16
BASIC TIMESTAMP ORDENING (BTO)
 A timestamp is a unique identifier created by DDBMS to identify
a transaction.
 BTO associates timestamps with all recently accessed
data items and requires that conflicting data accesses by
transactions be performed in timestamp order .
 Typically, timestamp values are assigned in the order in which
the transactions are submitted to the system.
The idea for this scheme is to order the transactions based on
their timestamps.
 A schedule in which the transactions participate
is then serialize able, and the equivalent serial schedule has
the transactions in order of their timestamp values. This is called
timestamp ordering (TO).
8/26/2016
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
17
BASIC TRANSITION ORDENING(cont.)
 When a read request is received for an item, it is permitted if the
timestamp of the requester exceeds the item’s write timestamp.
 When a write request is received, it is permitted if the requester’s
timestamp exceeds the read timestamp of the item; in the event
that the timestamp of the requester is less than the write
timestamp of the item, the update is simply ignored.
 For replicated data, the “read any, write all” approach is used, so
a read request may be sent to any copy while a write request
must be sent to all copies.
 Integration of the algorithm with two phase commit is
accomplished as follows:
Writers keep their updates in a private workspace until commit
time. 8/26/2016
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
18 DISTRIBUTED OPTIMISTIC (OPT)
 The fourth algorithm is the distributed, timestamp-based,
optimistic concurrency control algorithm. which operates by
exchanging certification information during the commit protocol.
 For each data item, a read timestamp and a write timestamp
are maintained. Transactions may read and update data items
freely, storing any updates into a local workspace until commit
time.
 For each read, the transaction must remember the version
identifier (i.e., write timestamp) associated with the item
when it was read.
8/26/2016
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
19
DISTRIBUTED OPTIMISTIC (cont.)
 Then, when all of the transaction’s cohorts have completed their
work, and have reported back to the master, the transaction is
assigned a globally unique timestamp.
 This time stamp is sent to each cohort in the “prepare to
commit” message ,and it is used to locally certify all of its reads and
writes as follows [2]:
 A read request is certified if-:
(i) The version that was read is still the current version of the item,
and
(ii) No write with a newer timestamp has already been locally
certified.
 A write request is certified if-:
(i) No later reads have been certified and subsequently committed,
and
(ii) No later reads have been locally certified already [2]. 8/26/2016
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
20
CONCLUSIONS
 The distributed database system that is considered to be more
reliable than centralized database system.
 We also describe the concurrency control algorithms-:
distributed 2PL, wound-wait, basic timestamp
ordering and distributed optimistic algorithm.
 It is really important for database to have the ACID properties
to perform.
8/26/2016
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
21
REFRENCES
PRINCIPLES OF DISTRIBUTED SYSTEM
by:
M. Tamer Ozsu and Patric Valduriez
8/26/2016
DISTRIBUTED DATABASE MENAGEMENT SYSTEM
22
8/26/2016
Ad

More Related Content

What's hot (20)

Distributed Transaction
Distributed TransactionDistributed Transaction
Distributed Transaction
Pratik Tambekar
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
Nilu Desai
 
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUESDISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
AAKANKSHA JAIN
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
udaya khanal
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
Haitham Ahmed
 
Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systems
Viet-Trung TRAN
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 Reliability
Ali Usman
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
Ashish Kumar
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
Anamika Singh
 
Distributed and clustered systems
Distributed and clustered systemsDistributed and clustered systems
Distributed and clustered systems
V.V.Vanniaperumal College for Women
 
Synchronization in distributed computing
Synchronization in distributed computingSynchronization in distributed computing
Synchronization in distributed computing
SVijaylakshmi
 
Lecture 3 threads
Lecture 3   threadsLecture 3   threads
Lecture 3 threads
Kumbirai Junior Muzavazi
 
Process synchronization
Process synchronizationProcess synchronization
Process synchronization
Ali Ahmad
 
Load Balancing in Parallel and Distributed Database
Load Balancing in Parallel and Distributed DatabaseLoad Balancing in Parallel and Distributed Database
Load Balancing in Parallel and Distributed Database
Md. Shamsur Rahim
 
Distributed system Tanenbaum chapter 1,2,3,4 notes
Distributed system Tanenbaum chapter 1,2,3,4 notes Distributed system Tanenbaum chapter 1,2,3,4 notes
Distributed system Tanenbaum chapter 1,2,3,4 notes
SAhammedShakil
 
Distributed design alternatives
Distributed design alternativesDistributed design alternatives
Distributed design alternatives
Pooja Dixit
 
Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.
Meghaj Mallick
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
Sunita Sahu
 
Distributed Coordination-Based Systems
Distributed Coordination-Based SystemsDistributed Coordination-Based Systems
Distributed Coordination-Based Systems
Ahmed Magdy Ezzeldin, MSc.
 
deadlock handling
deadlock handlingdeadlock handling
deadlock handling
Suraj Kumar
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
Nilu Desai
 
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUESDISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
AAKANKSHA JAIN
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
udaya khanal
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
Haitham Ahmed
 
Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systems
Viet-Trung TRAN
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 Reliability
Ali Usman
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
Ashish Kumar
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
Anamika Singh
 
Synchronization in distributed computing
Synchronization in distributed computingSynchronization in distributed computing
Synchronization in distributed computing
SVijaylakshmi
 
Process synchronization
Process synchronizationProcess synchronization
Process synchronization
Ali Ahmad
 
Load Balancing in Parallel and Distributed Database
Load Balancing in Parallel and Distributed DatabaseLoad Balancing in Parallel and Distributed Database
Load Balancing in Parallel and Distributed Database
Md. Shamsur Rahim
 
Distributed system Tanenbaum chapter 1,2,3,4 notes
Distributed system Tanenbaum chapter 1,2,3,4 notes Distributed system Tanenbaum chapter 1,2,3,4 notes
Distributed system Tanenbaum chapter 1,2,3,4 notes
SAhammedShakil
 
Distributed design alternatives
Distributed design alternativesDistributed design alternatives
Distributed design alternatives
Pooja Dixit
 
Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.
Meghaj Mallick
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
Sunita Sahu
 
deadlock handling
deadlock handlingdeadlock handling
deadlock handling
Suraj Kumar
 

Viewers also liked (19)

16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMS
koolkampus
 
Validation based protocol
Validation based protocolValidation based protocol
Validation based protocol
BBDITM LUCKNOW
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
Virender Kumar
 
Main synopsis
Main synopsisMain synopsis
Main synopsis
Happy Rajput
 
Optimistic Algorithm and Concurrency Control Algorithm
Optimistic Algorithm and Concurrency Control AlgorithmOptimistic Algorithm and Concurrency Control Algorithm
Optimistic Algorithm and Concurrency Control Algorithm
Shounak Katyayan
 
Locking unit 1 topic 3
Locking unit 1 topic 3Locking unit 1 topic 3
Locking unit 1 topic 3
avniS
 
Tesina Sobri
Tesina SobriTesina Sobri
Tesina Sobri
Abraham Domínguez Cuña
 
DDoS Attack on DNS using infected IoT Devices
DDoS Attack on DNS using infected IoT DevicesDDoS Attack on DNS using infected IoT Devices
DDoS Attack on DNS using infected IoT Devices
Seungjoo Kim
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
Jacob Zvirikuzhe
 
Transaction and concurrency control
Transaction and concurrency controlTransaction and concurrency control
Transaction and concurrency control
Anil Shrestha
 
Concurrency (Distributed computing)
Concurrency (Distributed computing)Concurrency (Distributed computing)
Concurrency (Distributed computing)
Sri Prasanna
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
Kathirvel Ayyaswamy
 
Validation Protocol
Validation ProtocolValidation Protocol
Validation Protocol
Sagar K Savale
 
intelligent street light system using gsm ppt
intelligent street light system using gsm pptintelligent street light system using gsm ppt
intelligent street light system using gsm ppt
darshangowda679
 
IOT and smart city in India
IOT and smart city in India IOT and smart city in India
IOT and smart city in India
Soumya Gupta
 
Iot for smart city
Iot for smart cityIot for smart city
Iot for smart city
sanalkumar k
 
DBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency ControlDBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency Control
Mukesh Tekwani
 
Databases: Concurrency Control
Databases: Concurrency ControlDatabases: Concurrency Control
Databases: Concurrency Control
Damian T. Gordon
 
4. concurrency control
4. concurrency control4. concurrency control
4. concurrency control
AbDul ThaYyal
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMS
koolkampus
 
Validation based protocol
Validation based protocolValidation based protocol
Validation based protocol
BBDITM LUCKNOW
 
Optimistic Algorithm and Concurrency Control Algorithm
Optimistic Algorithm and Concurrency Control AlgorithmOptimistic Algorithm and Concurrency Control Algorithm
Optimistic Algorithm and Concurrency Control Algorithm
Shounak Katyayan
 
Locking unit 1 topic 3
Locking unit 1 topic 3Locking unit 1 topic 3
Locking unit 1 topic 3
avniS
 
DDoS Attack on DNS using infected IoT Devices
DDoS Attack on DNS using infected IoT DevicesDDoS Attack on DNS using infected IoT Devices
DDoS Attack on DNS using infected IoT Devices
Seungjoo Kim
 
Transaction and concurrency control
Transaction and concurrency controlTransaction and concurrency control
Transaction and concurrency control
Anil Shrestha
 
Concurrency (Distributed computing)
Concurrency (Distributed computing)Concurrency (Distributed computing)
Concurrency (Distributed computing)
Sri Prasanna
 
intelligent street light system using gsm ppt
intelligent street light system using gsm pptintelligent street light system using gsm ppt
intelligent street light system using gsm ppt
darshangowda679
 
IOT and smart city in India
IOT and smart city in India IOT and smart city in India
IOT and smart city in India
Soumya Gupta
 
Iot for smart city
Iot for smart cityIot for smart city
Iot for smart city
sanalkumar k
 
DBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency ControlDBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency Control
Mukesh Tekwani
 
Databases: Concurrency Control
Databases: Concurrency ControlDatabases: Concurrency Control
Databases: Concurrency Control
Damian T. Gordon
 
4. concurrency control
4. concurrency control4. concurrency control
4. concurrency control
AbDul ThaYyal
 
Ad

Similar to Distributed concurrency control (20)

Overview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesOverview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed Databases
Meghaj Mallick
 
On deferred constraints in distributed database systems
On deferred constraints in distributed database systemsOn deferred constraints in distributed database systems
On deferred constraints in distributed database systems
ijma
 
DBF-Lecture11-Chapter12.pptDatabase Principles Fundam.docx
DBF-Lecture11-Chapter12.pptDatabase Principles Fundam.docxDBF-Lecture11-Chapter12.pptDatabase Principles Fundam.docx
DBF-Lecture11-Chapter12.pptDatabase Principles Fundam.docx
randyburney60861
 
Vol 4 No 1 - August 2013
Vol 4 No 1 - August 2013Vol 4 No 1 - August 2013
Vol 4 No 1 - August 2013
ijcsbi
 
Dbms voc 5 unit
Dbms voc 5 unitDbms voc 5 unit
Dbms voc 5 unit
gurjotkawatra
 
Transaction management
Transaction managementTransaction management
Transaction management
ArchanaMani2
 
chp13.pdf
chp13.pdfchp13.pdf
chp13.pdf
cscmsai54
 
presentationprintTemp presentationorint.pdf
presentationprintTemp presentationorint.pdfpresentationprintTemp presentationorint.pdf
presentationprintTemp presentationorint.pdf
WabiTiki
 
IRJET- Study of Blockchain and its Concepts
IRJET-  	  Study of Blockchain and its ConceptsIRJET-  	  Study of Blockchain and its Concepts
IRJET- Study of Blockchain and its Concepts
IRJET Journal
 
60141457-Oracle-Golden-Gate-Presentation.ppt
60141457-Oracle-Golden-Gate-Presentation.ppt60141457-Oracle-Golden-Gate-Presentation.ppt
60141457-Oracle-Golden-Gate-Presentation.ppt
padalamail
 
Operating system Interview Questions
Operating system Interview QuestionsOperating system Interview Questions
Operating system Interview Questions
Kuntal Bhowmick
 
Real time eventual consistency
Real time eventual consistencyReal time eventual consistency
Real time eventual consistency
ijfcstjournal
 
Whitepaper TRANSCONNECT - EN | SQL Projekt AG
Whitepaper TRANSCONNECT - EN | SQL Projekt AG Whitepaper TRANSCONNECT - EN | SQL Projekt AG
Whitepaper TRANSCONNECT - EN | SQL Projekt AG
SQL Projekt AG
 
Vani dbms
Vani dbmsVani dbms
Vani dbms
SangeethaSasi1
 
reliability techniques (data mining) course CS&IT
reliability techniques (data mining) course CS&ITreliability techniques (data mining) course CS&IT
reliability techniques (data mining) course CS&IT
princesskojjo
 
concurrency control.ppt
concurrency control.pptconcurrency control.ppt
concurrency control.ppt
BikalAdhikari4
 
Glap a global loopback anomaly prevention mechanism for multi level distribu...
Glap  a global loopback anomaly prevention mechanism for multi level distribu...Glap  a global loopback anomaly prevention mechanism for multi level distribu...
Glap a global loopback anomaly prevention mechanism for multi level distribu...
IJDMS
 
Blockchain Technology Review and Its Scope
Blockchain Technology Review and Its ScopeBlockchain Technology Review and Its Scope
Blockchain Technology Review and Its Scope
IRJET Journal
 
Secure Mining of Association Rules in Horizontally Distributed Databases
Secure Mining of Association Rules in Horizontally Distributed DatabasesSecure Mining of Association Rules in Horizontally Distributed Databases
Secure Mining of Association Rules in Horizontally Distributed Databases
IJSRD
 
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithmFair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
TELKOMNIKA JOURNAL
 
Overview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesOverview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed Databases
Meghaj Mallick
 
On deferred constraints in distributed database systems
On deferred constraints in distributed database systemsOn deferred constraints in distributed database systems
On deferred constraints in distributed database systems
ijma
 
DBF-Lecture11-Chapter12.pptDatabase Principles Fundam.docx
DBF-Lecture11-Chapter12.pptDatabase Principles Fundam.docxDBF-Lecture11-Chapter12.pptDatabase Principles Fundam.docx
DBF-Lecture11-Chapter12.pptDatabase Principles Fundam.docx
randyburney60861
 
Vol 4 No 1 - August 2013
Vol 4 No 1 - August 2013Vol 4 No 1 - August 2013
Vol 4 No 1 - August 2013
ijcsbi
 
Transaction management
Transaction managementTransaction management
Transaction management
ArchanaMani2
 
presentationprintTemp presentationorint.pdf
presentationprintTemp presentationorint.pdfpresentationprintTemp presentationorint.pdf
presentationprintTemp presentationorint.pdf
WabiTiki
 
IRJET- Study of Blockchain and its Concepts
IRJET-  	  Study of Blockchain and its ConceptsIRJET-  	  Study of Blockchain and its Concepts
IRJET- Study of Blockchain and its Concepts
IRJET Journal
 
60141457-Oracle-Golden-Gate-Presentation.ppt
60141457-Oracle-Golden-Gate-Presentation.ppt60141457-Oracle-Golden-Gate-Presentation.ppt
60141457-Oracle-Golden-Gate-Presentation.ppt
padalamail
 
Operating system Interview Questions
Operating system Interview QuestionsOperating system Interview Questions
Operating system Interview Questions
Kuntal Bhowmick
 
Real time eventual consistency
Real time eventual consistencyReal time eventual consistency
Real time eventual consistency
ijfcstjournal
 
Whitepaper TRANSCONNECT - EN | SQL Projekt AG
Whitepaper TRANSCONNECT - EN | SQL Projekt AG Whitepaper TRANSCONNECT - EN | SQL Projekt AG
Whitepaper TRANSCONNECT - EN | SQL Projekt AG
SQL Projekt AG
 
reliability techniques (data mining) course CS&IT
reliability techniques (data mining) course CS&ITreliability techniques (data mining) course CS&IT
reliability techniques (data mining) course CS&IT
princesskojjo
 
concurrency control.ppt
concurrency control.pptconcurrency control.ppt
concurrency control.ppt
BikalAdhikari4
 
Glap a global loopback anomaly prevention mechanism for multi level distribu...
Glap  a global loopback anomaly prevention mechanism for multi level distribu...Glap  a global loopback anomaly prevention mechanism for multi level distribu...
Glap a global loopback anomaly prevention mechanism for multi level distribu...
IJDMS
 
Blockchain Technology Review and Its Scope
Blockchain Technology Review and Its ScopeBlockchain Technology Review and Its Scope
Blockchain Technology Review and Its Scope
IRJET Journal
 
Secure Mining of Association Rules in Horizontally Distributed Databases
Secure Mining of Association Rules in Horizontally Distributed DatabasesSecure Mining of Association Rules in Horizontally Distributed Databases
Secure Mining of Association Rules in Horizontally Distributed Databases
IJSRD
 
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithmFair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
TELKOMNIKA JOURNAL
 
Ad

Recently uploaded (20)

The History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptxThe History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
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
 
puzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tensepuzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tense
OlgaLeonorTorresSnch
 
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
 
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
 
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
 
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
 
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
 
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
 
Pope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptxPope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptx
Martin M Flynn
 
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
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Leonel Morgado
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View 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
 
*"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"**"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"*
Arshad Shaikh
 
Overview Well-Being and Creative Careers
Overview Well-Being and Creative CareersOverview Well-Being and Creative Careers
Overview Well-Being and Creative Careers
University of Amsterdam
 
Final Evaluation.docx...........................
Final Evaluation.docx...........................Final Evaluation.docx...........................
Final Evaluation.docx...........................
l1bbyburrell
 
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
Celine George
 
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
 
puzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tensepuzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tense
OlgaLeonorTorresSnch
 
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
 
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
 
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
 
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
 
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
 
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
 
Pope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptxPope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptx
Martin M Flynn
 
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
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Leonel Morgado
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View 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
 
*"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"**"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"*
Arshad Shaikh
 
Overview Well-Being and Creative Careers
Overview Well-Being and Creative CareersOverview Well-Being and Creative Careers
Overview Well-Being and Creative Careers
University of Amsterdam
 
Final Evaluation.docx...........................
Final Evaluation.docx...........................Final Evaluation.docx...........................
Final Evaluation.docx...........................
l1bbyburrell
 
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
Celine George
 

Distributed concurrency control

  • 2. Over view Of Presentation Distributed Concurrency Control. Distributed Concurrency control Algorithms. Structure Of Distributed transection. Distributed Two phase locking(2PL). Wound wait(WW). Basic timestamp Ordering(BTO). Distributed Optimistic(OPT). 8/26/2016 2 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 3. Distributed  A distributed database is a single logical database that is spread physically across computers in multiple locations that are connected by data communication links.  Distributed database is a kind of virtual database whose component parts are physically stored in a number of distinct real databases at a number of distinct locations 8/26/2016 3 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 4. Concurrency  A situation in which two or more persons access the same record simultaneously is called Concurrency.  Concurrency control involves the synchronization of accesses to the distributed database , such that the integrity of the database is maintained. 8/26/2016 4 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 5. Concurrency  The concurrency control problem in a distributed context is somewhat different than in a centralized framework.  One not only has to worry about the integrity of a single database, but also about the consistency of multiple copies of the database.  The condition that requires all the values of multiple copies of every data item to converge to the same value is called Mutual consistency. 8/26/2016 5 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 6. Distributed Concurrency Control Algorithm  we consider some of the distributed concurrency control algorithms. We summarize the salient aspects of these four algorithms in this section.  In order to do this, we must first explain the structure that we have assumed for distributed transactions.  Before discussing the algorithms, we need to get an idea about the distributed transactions. 8/26/2016 6 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 7. Structure Of Distributed Transection(cont.)  A distributed transaction is a transaction that runs in multiple processes, usually on several machines.  Each process works for the transaction.  Distributed transaction processing systems are designed to facilitate transactions that span heterogeneous, transaction-aware resource managers in a distributed environment . 8/26/2016 7 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 8. Structure Of Distributed Transection (cont.)  The execution of a distributed transaction requires coordination between a global transaction management system and all the local resource managers of all the involved systems.  The resource manager and transaction processing monitor are the two primary elements of any distributed transactional system.  Distributed transactions, like local transactions, must observe the ACID properties. However, maintenance of these properties is very complicated for distributed transactions because a failure can occur in any process 8/26/2016 8 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 9. Structure Of Distributed Transection (cont.)  If such a failure occurs, each process must undo any work that has already been done on behalf of the transaction.  A distributed transaction processing system maintains the ACID properties in distributed transactions by using two features:  Recoverable processes: Recoverable processes log their actions and therefore can restore earlier states if a failure occurs.  A commit protocol: A commit protocol allows multiple processes to coordinate the committing or aborting of a transaction. The most common commit protocol is the two-phase commit protocol. 8/26/2016 9 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 10. Distributed Two Phase Locking(2PL)  In order to ensure serializability of parallel executed transactions elaborated different methods of concurrency control.  One of these methods is locking method. There are different forms of locking method.  Two phase locking protocol is one of the basic concurrency control protocols in distributed database systems.  The main approach of this protocol is “read any, write all”. 8/26/2016 10 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 11. Distributed Two Phase Locking  Transactions set read locks on items that they read, and they convert their read locks to write locks on items that need to be updated.  To read an item, it suffices to set a read lock on any copy of the item, so the local copy is locked; to update an item, write locks are required on all copies.  Write locks are obtained as the transaction executes, with the transaction blocking on a write request until all of the copies of the item to be updated have been successfully locked 8/26/2016 11 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 12. Distributed Two Phase Locking(cont.)  The 2PL Protocol oversees locks by determining when transactions can acquire and release locks.  The 2PL protocol forces each transaction to make a lock or unlock request in two steps:  Growing Phase: A transaction may obtain locks but may not release any locks.  Shrinking Phase: A transaction may release locks but not obtain any new lock.  The transaction first enters into the Growing Phase, makes requests for required locks, then gets into the Shrinking phase where it releases all locks and cannot make any more requests 8/26/2016 12 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 13. Wound wait  The second algorithm is the distributed wound-wait locking algorithm.  It follows the same approach as the 2 PL protocol. The difference lies in the fact that it differs from 2PL in its handling of the deadlock problem: unlike 2PL protocol, rather than maintaining waits-for information and then checking for local and global deadlocks, deadlocks are prevented via the use of timestamps in this algorithm. 8/26/2016 13 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 14. Example Of Wound Wait Example-:Wound wait algorithm T1 is allowed to T(T1)>t(T2) Wait T(T1<t(T2) Abort and rolled back 8/26/2016 14 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 15. Wound wait(ww)  Each transaction is numbered according to its initial startup time, and younger transactions are prevented from making older ones wait.  If an older transaction requests a lock, and if the request would lead to the older transaction waiting for a younger transaction, the younger transaction is “wounded” – it is restarted unless it is already in the second phase of its commit protocol.  Younger transactions can wait for older transactions so that the possibility of deadlocks is eliminated [2]. 8/26/2016 15 DISTRIBUTED DATABASE MENAGEMENT SYSTEM
  • 16. DISTRIBUTED DATABASE MENAGEMENT SYSTEM 16 BASIC TIMESTAMP ORDENING (BTO)  A timestamp is a unique identifier created by DDBMS to identify a transaction.  BTO associates timestamps with all recently accessed data items and requires that conflicting data accesses by transactions be performed in timestamp order .  Typically, timestamp values are assigned in the order in which the transactions are submitted to the system. The idea for this scheme is to order the transactions based on their timestamps.  A schedule in which the transactions participate is then serialize able, and the equivalent serial schedule has the transactions in order of their timestamp values. This is called timestamp ordering (TO). 8/26/2016
  • 17. DISTRIBUTED DATABASE MENAGEMENT SYSTEM 17 BASIC TRANSITION ORDENING(cont.)  When a read request is received for an item, it is permitted if the timestamp of the requester exceeds the item’s write timestamp.  When a write request is received, it is permitted if the requester’s timestamp exceeds the read timestamp of the item; in the event that the timestamp of the requester is less than the write timestamp of the item, the update is simply ignored.  For replicated data, the “read any, write all” approach is used, so a read request may be sent to any copy while a write request must be sent to all copies.  Integration of the algorithm with two phase commit is accomplished as follows: Writers keep their updates in a private workspace until commit time. 8/26/2016
  • 18. DISTRIBUTED DATABASE MENAGEMENT SYSTEM 18 DISTRIBUTED OPTIMISTIC (OPT)  The fourth algorithm is the distributed, timestamp-based, optimistic concurrency control algorithm. which operates by exchanging certification information during the commit protocol.  For each data item, a read timestamp and a write timestamp are maintained. Transactions may read and update data items freely, storing any updates into a local workspace until commit time.  For each read, the transaction must remember the version identifier (i.e., write timestamp) associated with the item when it was read. 8/26/2016
  • 19. DISTRIBUTED DATABASE MENAGEMENT SYSTEM 19 DISTRIBUTED OPTIMISTIC (cont.)  Then, when all of the transaction’s cohorts have completed their work, and have reported back to the master, the transaction is assigned a globally unique timestamp.  This time stamp is sent to each cohort in the “prepare to commit” message ,and it is used to locally certify all of its reads and writes as follows [2]:  A read request is certified if-: (i) The version that was read is still the current version of the item, and (ii) No write with a newer timestamp has already been locally certified.  A write request is certified if-: (i) No later reads have been certified and subsequently committed, and (ii) No later reads have been locally certified already [2]. 8/26/2016
  • 20. DISTRIBUTED DATABASE MENAGEMENT SYSTEM 20 CONCLUSIONS  The distributed database system that is considered to be more reliable than centralized database system.  We also describe the concurrency control algorithms-: distributed 2PL, wound-wait, basic timestamp ordering and distributed optimistic algorithm.  It is really important for database to have the ACID properties to perform. 8/26/2016
  • 21. DISTRIBUTED DATABASE MENAGEMENT SYSTEM 21 REFRENCES PRINCIPLES OF DISTRIBUTED SYSTEM by: M. Tamer Ozsu and Patric Valduriez 8/26/2016
  • 22. DISTRIBUTED DATABASE MENAGEMENT SYSTEM 22 8/26/2016
  翻译: