Concurrency Control in Distributed Database Systems

Concurrency Control in Distributed Database Systems

International Journal for Research in Engineering Application & Management (IJREAM) 1 ISSN : 2494-9150 Vol-01, Issue 10, JAN 2016. CONCURRENCY CONTROL IN DISTRIBUTED DATABASE SYSTEMS 1Prof. Vinayak Sinde, 2Preeti A. Aware 1Asst. Professor, 2ME Student, 1,2SLRTCE, Mira Road, Mumbai, Maharashtra, India. [email protected], [email protected] Abstract — Concurrency control in Distributed database system is analyzed in this paper. The need and improvement in distributed database system is of utmost importance in today’s world. The difficulties mostly faced in distributed database system is Protecting the ACID property i.e. when concurrent transactions perform read and write atomicity, consistency, integrity and durability of the database should be preserved and Recovery method to be used when distributed database crashes. Keywords— Allocation, concurrency control, Distributed database, Distributed design, fragmentation, replication, transaction. kinds of transparencies like: Transaction transparency, I. INTRODUCTION performance transparency, location transparency, Today’s business needs secure, reliable and easily fragmentation transparency, schema change transparency, accessible information. One of the examples of distributed and local DBMS transparency. The most vital issue in database is of Aadhar card database. If the data is located in distributed database system is concurrency control. the central database, it will be slow to retrieve the data. Also Concurrency control is the method of synchronizing the central server could become bottleneck due to thousands simultaneous access to a database in a multiuser database of request. The distributed database system can be used in management system. There are different techniques that this case to enhance the retrieval and the query can be deliver concurrency control. Some of the techniques are: processed concurrently at different sites. Due to this fact Time stamping, two phase locking and Multiversion time there is an increasing demand for client/server applications stamp. and distributed database system. A distributed database can II. MOTIVATION be viewed as a single logical database that is made up of The use of distributed database has been encourage due to several physical database from different computers that are several business situations connected through interconnection network. This logical Data communications costs and reliability: In the database can also be called as a virtual database. The real distributed system when the data is geographically database is physically stored at different locations. Data can dispersed, application that required the data can be be accessed by users at any location as if the data was stored partitioned for processing at each site. The above method is at the user’s own location. The access mechanism of economical as it reduces the communication cost. The distributed database is made transparent to the users by second advantage is that it is cost effective to have smaller using a special software called distributed database computing power that to have a large computing power of a management system. The main aim of distributed database single super computer. management system software is to provide a mechanism by Database recovery: Data can be replicated on several which the distributed database appears to be as centralized computers. If the primary copy is damaged, data can be still database to the users. This appearance of centralized accessed due to replication and at the same time the primary database can be achieved with the help of several different copy can be restored. One of the normal forms of distributed INJRV01I10005 www.ijream.org © 2016, IJREAM All Rights Reserved. International Journal for Research in Engineering Application & Management (IJREAM) 2 ISSN : 2494-9150 Vol-01, Issue 10, JAN 2016. database recovery is replication of the data across several to be stored at separate sites. The tables are the simplest sites. logical units. Data sharing: Every business decision requires sharing of Data fragmentation are of three types: data across different business unit. Data can be merged on Horizontal fragmentation: demand. The subset of rows in a table form the horizontal fragment. Distribution and autonomy of business unit: In modern The table is divided into fragment by selecting specific row organizations departments and divisions are mostly and then distributing this fragment to several sites in geographically dispersed and cross national boundaries. distributed system. [1] Mostly each division has power to build its own information system. This divisions frequently want the native data on Consider a relation employee (Emp_id, Emp_name, which they have control. Acquisition and business mergers Emp_designation, and Emp_salary) produce this kind of environment. Emp_id Emp_name Emp_designation Emp_salary Improved performance: Several sites can store the data 001 Mr. Mark clerk 10000 retrieved from transactions. This helps in executing the transaction in parallel. The performance of the system is 002 Ms.Jane clerk 10000 enhanced by using several resources in parallel. 003 MrWolworth manager 30000 Increased availability and reliability: The database becomes unavailable to the users if the centralized system 004 Mr. oxford account 25000 fails. On the other hand in a distributed system if a component fails the database is still available to the users. Condition: Emp1: fragmented with Emp_salary<= 10000 Faster response: The data needed by the users at a particular site can be fulfilled by the data stored at the site, Emp1 and it depends upon the way the data is distributed. The Emp_id Emp_name Emp_designation Emp_salary query processing can be sped up as delays due to 001 Mr. Mark clerk 10000 communication and central processing is minimized. The complex queries can be split up into simple sub queries and 002 Ms.Jane clerk 10000 processed in parallel at different sites for faster response. [6] III. DISTRIBUTED DATABASE DESIGN Condition: Emp2: fragmented with Emp_salary>10000 Distributed database system are needed for applications that Emp2 Emp_id Emp_name Emp_designation Emp_salary require distributed access and high availability in case of failures. The examples of system that require distributed 003 MrWolworth manager 30000 database are automated system, financial institution and 004 Mr. oxford account 25000 airline reservation system. The technique used for distributed system is same as that of centralized system in addition to few factors. Vertical fragmentation: In vertical fragmentation table is Data fragmentation: We need to define logical unit for divided into attribute. Each vertical fragment should contain data distribution and allocation in a distributed system. The the primary attribute, so that the entire table can be built. database can be fragmented into logical units call fragment INJRV01I10005 www.ijream.org © 2016, IJREAM All Rights Reserved. International Journal for Research in Engineering Application & Management (IJREAM) 3 ISSN : 2494-9150 Vol-01, Issue 10, JAN 2016. Consider a relation Emp (Emp_id, Emp_name, Atomicity: In this transaction is considered as a unit of Emp_designation, Emp_salary) operation. It directs that the operations related to a Emp1 transaction should be complete or should not take place. Consistency: The correctness of a transaction is its Emp_id Emp_name Emp_designation consistency 001 Mr. Mark clerk Isolation: At all times the transactions should see consistent 002 Ms.Jane clerk database. When one transaction is modifying the database other transactions should not be able to read or modify the 003 MrWolworth manager database. 004 Mr. oxford account Durability: This feature guarantees that when a transaction commits its outcomes are permanently stored in the Emp2 database. Hence after a commit of transaction, even if the system crashes, the outcomes after commit are not modified. Emp_id Emp_salary Concurrency control: In distributed database system many 001 10000 users are concurrently accessing the database. The 002 10000 mechanism of coordinating concurrent access to a distributed database is called concurrency control. The user 003 30000 is under the impression that he is working on a dedicated 004 25000 database. The central objective for attaining this goal is to prevent one database update interfere with another database Hybrid fragmentation: The combination of both horizontal update. and vertical fragmentation is called hybrid fragmentation. With the help of join and union operator the original table V. DISTRIBUTED CONCURRENCY CONTROL can be reconstructed. ALGORITHM Data replication: To achieve fault tolerance the data is In this paper, we study some of the distributed concurrency replicated at two or more sites. Several sites can contain the control algorithm. We review some of the prominent copy of each fragment.[1] features of the four algorithms. First we will explain the concept of distributed transaction. IV. FUNDAMENTAL OF TRANSACTION Distributed transaction: In this the transaction executes on PROCESSING AND CONCURRENCY CONTROL multiple processes on different machines. Distributed Transaction: A series of operations performed on database is transaction processing system are intended for called transaction. The vital concern regarding transaction heterogeneous systems having transaction-aware resource management is if the database is consistent before the managers. Distributed transaction execution requires initiation of transaction, then it has to be consistent

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    5 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us