Distributed Data Base Management System: Unit 3
Distributed Data Base Management System: Unit 3
Unit 3
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Vaibhav Singhal, Asst. Professor
U2.1
UNIT 3
Management of Distributed Transactions 2 phase unit protocols, Architectural aspects, Node and link failure recoveries, Distributed data dictionary management, Distributed database administration.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2.2 U3.2
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2.4 U3.4
Phase 1: Coordinator gets the participants ready to write the results into the database Phase 2: Everybody writes the results into the database Coordinator: The process at the site where the transaction originates and which controls the execution Participants: Processes at the other sites that participate in executing the transaction.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2.5 U3.5
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2.6 U3.6
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2.8 U3.8
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2.9 U3.9
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 10 10
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 11 11
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 12 12
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 13 13
Site failure in 2 PC
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 14 14
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 15 15
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 16 16
Architectural Aspects
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 17 17
Centralized
Centralized 2 1 3 4
(Prepare) (Ready or Abort)
2 1 3 4 1
(Commit or Abort)
ACk
U2. U3. 18 18
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
Hierarchical
3 2 1 4 2 1 5
(Prepare)
3 2 4 1 2
5
ACK
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 19 19
Linear
(Prepare and Ready) 1 2 (Commit or Abort) 3
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 20 20
Distributed
1 1
2 3
3
(Prepare) (Commit or Abort)
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 21 21
Distributed Databases suffer from Communication Failure The failure that are observed in Centralized data bases.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 22 22
To handle communication failures a time out mechanism can be used for the detection of the failure, and some networking protocols can be deployed for further resolving the failures. The other failures which may arises in a distributed data base are Transaction failure System failure Media failure
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 23 23
Failure and recoveries in Distributed Databases Transaction failure: This is said to be occur when transaction is made to abort while it was still under progress. System failure: This is said to be occur when, while a transaction is being saved, before all the changes were successfully transferred to the secondary storage the system crash. Media Failure: A media failure is said to occur when the secondary storage being used for the storage of data under goes failure.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 24 24
The transaction failures do not lead a database towards any in consistency if a deferred update scheme is used. The changed made by the transaction were still in the buffer and there fore aborting the transaction would not in any way affect the physical data base. On the other hand media failures can only be handled using some efficient and reliable back up schedules or implementation of stable storage.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 25 25
Handling system failure can be carried out using some logging technique. A transaction logs is a history of events that occurred on a data base, While the transaction is making changes to the data base it stores a log record in the transaction log. Physically the logs are maintained as files on the secondary storage the active log is brought in to the buffer and it is the active log which keeps a track of the changes attempted to by the transaction.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 26 26
Under distributed databases transaction logs are maintained locally on each site, If the site are fully autonomous then the log of the site which initiate some Query is considered as the master log and for the purpose of recovery this master log will be used.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 27 27
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 28 28
Database administration refers to a variety of activities for the development, control, maintenance of the database application.
The task of global database administrator are not different from those of the administrator of a centralized database, performing these tasks involves more complication as compare to centralized databases.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 29 29
Distributed Data Base Administration Tasks of distributed database administrator are very limited, since every site is independently administrated. Functions of Distributed DBA are: Catalog Management Object Naming Authorization and Protection
U2. U3. 30 30
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 31 31
This mechanism deal with authorization and the amount of stored information, individual users are typically grouped into classes, which are all granted the same privileges. For instances, all employees of the administration department constitute a class, and all employees of the manufacturing department constitute a different class. Users of the first class can access information about employee salaries, while those of the second class. t can access information about project management.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 34 34
Short Questions
Write some points to manage distributed transactions? Give different type of Architectural aspects in DDBMS? Explain the cases where DDBMS has failure possibility . How Distributed database administrator is different from database administrator. Explain the term Distributed data base dictionary management?
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 36 36
Long Questions
Explain the functions of Distributed data base Administrator? Explain the functioning of two phase and three phase commit protocols in distributed databases. What are different kind of architectural aspects in distributed data base management system ? Explain the different type of failures which can occur in a distributed system. How 2 phase commit protocols handle these failures?
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, byVaibhav Singhal, Asst. Professor Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Divya Goel, Lecturer
U2. U3. 37 37