©Silberschatz, Korth and Sudarshan18.1Database System Concepts Centralized Systems Run on a single computer system and do not interact with other computer.

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management
Advertisements

©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
Distributed Databases John Ortiz. Lecture 24Distributed Databases2  Distributed Database (DDB) is a collection of interrelated databases interconnected.
Distributed databases
Transaction.
José Alferes Versão modificada de Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan Chapters 20: Database System Architectures.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Distributed Database Management Systems
Overview Distributed vs. decentralized Why distributed databases
©Silberschatz, Korth and Sudarshan4.1Database System Concepts Modification of the Database – Deletion Delete all account records at the Perryridge branch.
Lecture-12 Concurrency Control in Distributed Databases
©Silberschatz, Korth and Sudarshan19.1Database System Concepts Distributed Transactions Transaction may access data at several sites. Each site has a local.
©Silberschatz, Korth and Sudarshan19.1Database System Concepts Lecture-10 Distributed Database System A distributed database system consists of loosely.
Chapter 12 Distributed Database Management Systems
Database System Concepts, 5th Ed. Chapter 20: Database System Architectures.
Database System Architectures  Client-server Database System  Parallel Database System  Distributed Database System Wei Jiang.
DATABASE MANAGEMENT SYSTEMS 2 ANGELITO I. CUNANAN JR.
Distributed Databases
Parallel & Distributed databases Agenda –The problem domain of design parallel & distributed databases (chp 18-20) –The data allocation problem –The data.
Distributed Databases Dr. Lee By Alex Genadinik. Distributed Databases? What is that!?? Distributed Database - a collection of multiple logically interrelated.
Shilpa Seth.  Centralized System Centralized System  Client Server System Client Server System  Parallel System Parallel System.
1 Distributed and Parallel Databases. 2 Distributed Databases Distributed Systems goal: –to offer local DB autonomy at geographically distributed locations.
12 1 Chapter 12 Distributed Database Management Systems Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Design – Lecture 16
17.1Database System Concepts - 6 th Edition Chapter 17: Database System Architectures Centralized and Client-Server Systems Server System Architectures.
Database System Architectures Content based on Chapter 17 in Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Book website:
Chapter 20: Database System Architectures Chapter 20: Database System Architectures Centralized and Client-Server Systems Server System Architectures.
Chapter 18: Database System Architectures
04/18/2005Yan Huang - CSCI5330 Database Implementation – Distributed Database Systems Distributed Database Systems.
DISTRIBUTED DATABASE SYSTEM.  A distributed database system consists of loosely coupled sites that share no physical component  Database systems that.
Database Administration Database Architecture. 2 Outlines Centralized Architectures Client-Server Architectures Parallel Systems Distributed Systems Network.
Chapter 18 Database System Architectures Debbie Hui CS 157B.
Lecture 16- Distributed Databases Advanced Databases Masood Niazi Torshiz Islamic Azad University- Mashhad Branch
10 1 Chapter 10 Distributed Database Management Systems Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 12 Distributed Database Management Systems.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 12 Distributed Database Management Systems.
Week 5 Lecture Distributed Database Management Systems Samuel ConnSamuel Conn, Asst Professor Suggestions for using the Lecture Slides.
©Silberschatz, Korth and Sudarshan4.1Database System Concepts Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET, Gazipur.
Distributed Databases Reference Books: An introduction to Database Systems - By C.J. Database Systems and Concepts – Silberchatz, Korth and Sudarshan Lecture.
Multiprossesors Systems.. What are Distributed Databases ? “ A Logically interrelated collection of shared data ( and a description of this data) physically.
Kjell Orsborn UU - DIS - UDBL DATABASE SYSTEMS - 10p Course No. 2AD235 Spring 2002 A second course on development of database systems Kjell.
ASMA AHMAD 28 TH APRIL, 2011 Database Systems Distributed Databases I.
Databases Illuminated
Distributed Database. Introduction A major motivation behind the development of database systems is the desire to integrate the operational data of an.
CS338Parallel and Distributed Databases11-1 Parallel and Distributed Databases Lecture Topics Multi-CPU and distributed systems Monolithic system Client–server.
Topic Distributed DBMS Database Management Systems Fall 2012 Presented by: Osama Ben Omran.
Chapter 19 Distributed Databases. 2 Distributed Database System n A distributed DBS consists of loosely coupled sites that share no physical component.
©Silberschatz, Korth and Sudarshan18.1Database System Concepts 3 rd Edition Module 18: Database System Architectures Centralized Systems Client--Server.
19.1Database System Concepts - 6 th Edition Chapter 19: Distributed Databases Heterogeneous and Homogeneous Databases Distributed Data Storage Distributed.
 Distributed Database Concepts  Parallel Vs Distributed Technology  Advantages  Additional Functions  Distribution Database Design  Data Fragmentation.
Database System Concepts - 6 th Edition  Centralized and Client-Server Systems  Server System Architectures  Parallel Systems  Distributed Systems.
©Silberschatz, Korth and Sudarshan16.1Database System Concepts 3 rd Edition Database System Architectures Centralized Systems Client--Server Systems Parallel.
1 Information Retrieval and Use De-normalisation and Distributed database systems Geoff Leese September 2008, revised October 2009.
Em Spatiotemporal Database Laboratory Pusan National University File Processing : Database Management System Architecture 2004, Spring Pusan National University.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 20: Database System.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Module 18: Database System.
1 Chapter 22 Distributed DBMSs - Concepts and Design Simplified Transparencies © Pearson Education Limited 1995, 2005.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 22: Distributed.
©Silberschatz, Korth and Sudarshan18.1Database System Concepts Week 7: Database System Architectures Centralized Systems Client--Server Systems Parallel.
Distributed Databases “Fundamentals”
Distributed Database Concepts
Chapter 20: Database System Architectures
Chapter 17: Database System Architectures
Parallel and Distributed Databases
Chapter 19: Distributed Databases
Chapter 17: Database System Architectures
Chapter 20: Database System Architectures
Chapter 17: Database System Architectures
Introduction of Week 14 Return assignment 12-1
Database System Architectures
Presentation transcript:

©Silberschatz, Korth and Sudarshan18.1Database System Concepts Centralized Systems Run on a single computer system and do not interact with other computer systems. General-purpose computer system: one to a few CPUs and a number of device controllers that are connected through a common bus that provides access to shared memory. Single-user system (e.g., personal computer or workstation): desk-top unit, single user, usually has only one CPU and one or two hard disks; the OS may support only one user. Multi-user system: more disks, more memory, multiple CPUs, and a multi-user OS. Serve a large number of users who are connected to the system vie terminals. Often called server systems. Database System Architectures Database System Architectures Centralized Systems Client--Server Systems Parallel Systems Distributed Systems Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur. LECTURE-9

©Silberschatz, Korth and Sudarshan18.2Database System Concepts A Centralized Computer System Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.3Database System Concepts Client-Server Systems Server systems satisfy requests generated at m client systems, whose general structure is shown below: Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.4Database System Concepts Client-Server Systems (Cont.) Database functionality can be divided into:  Back-end: manages access structures, query evaluation and optimization, concurrency control and recovery.  Front-end: consists of tools such as forms, report-writers, and graphical user interface facilities. The interface between the front-end and the back-end is through SQL or through an application program interface. Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.5Database System Concepts Interconnection Network Architectures Bus. System components send data on and receive data from a single communication bus;  Does not scale well with increasing parallelism. Mesh. Components are arranged as nodes in a grid, and each component is connected to all adjacent components  Communication links grow with growing number of components, and so scales better.  But may require 2  n hops to send message to a node (or  n with wraparound connections at edge of grid). Hypercube. Components are numbered in binary; components are connected to one another if their binary representations differ in exactly one bit.  n components are connected to log(n) other components and can reach each other via at most log(n) links; reduces communication delays. Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.6Database System Concepts Interconnection Architectures Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.7Database System Concepts Parallel Database Architectures Shared memory -- processors share a common memory Shared disk -- processors share a common disk Shared nothing -- processors share neither a common memory nor common disk Hierarchical -- hybrid of the above architectures Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.8Database System Concepts Parallel Database Architectures Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.9Database System Concepts Distributed Systems Data spread over multiple machines (also referred to as sites or nodes. Network interconnects the machines Data shared by users on multiple machines Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.10Database System Concepts Distributed Databases Homogeneous distributed databases  Same software/schema on all sites, data may be partitioned among sites  Goal: provide a view of a single database, hiding details of distribution Heterogeneous distributed databases  Different software/schema on different sites  Goal: integrate existing databases to provide useful functionality Differentiate between local and global transactions  A local transaction accesses data in the single site at which the transaction was initiated.  A global transaction either accesses data in a site different from the one at which the transaction was initiated or accesses data in several different sites. Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.11Database System Concepts Distributed Data Storage Assume relational data model Replication  System maintains multiple copies of data, stored in different sites, for faster retrieval and fault tolerance. Fragmentation  Relation is partitioned into several fragments stored in distinct sites Replication and fragmentation can be combined  Relation is partitioned into several fragments: system maintains several identical replicas of each such fragment. A relation or fragment of a relation is replicated if it is stored redundantly in two or more sites. Full replication of a relation is the case where the relation is stored at all sites. Fully redundant databases are those in which every site contains a copy of the entire database. Data Replication Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.12Database System Concepts Data Replication (Cont.) Advantages of Replication  Availability: failure of site containing relation r does not result in unavailability of r is replicas exist.  Parallelism: queries on r may be processed by several nodes in parallel.  Reduced data transfer: relation r is available locally at each site containing a replica of r. Disadvantages of Replication  Increased cost of updates: each replica of relation r must be updated.  Increased complexity of concurrency control: concurrent updates to distinct replicas may lead to inconsistent data unless special concurrency control mechanisms are implemented. Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.13Database System Concepts Data Fragmentation Division of relation r into fragments r 1, r 2, …, r n which contain sufficient information to reconstruct relation r. Horizontal fragmentation: each tuple of r is assigned to one or more fragments Vertical fragmentation: the schema for relation r is split into several smaller schemas  All schemas must contain a common candidate key (or superkey) to ensure lossless join property.  A special attribute, the tuple-id attribute may be added to each schema to serve as a candidate key. Example : relation account with following schema Account-schema = (branch-name, account-number, balance) Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.14Database System Concepts Advantages of Fragmentation Horizontal:  allows parallel processing on fragments of a relation  allows a relation to be split so that tuples are located where they are most frequently accessed Vertical:  allows tuples to be split so that each part of the tuple is stored where it is most frequently accessed  tuple-id attribute allows efficient joining of vertical fragments  allows parallel processing on a relation Vertical and horizontal fragmentation can be mixed.  Fragments may be successively fragmented to an arbitrary depth. Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.

©Silberschatz, Korth and Sudarshan18.15Database System Concepts Data Transparency Data transparency: Degree to which system user may remain unaware of the details of how and where the data items are stored in a distributed system Consider transparency issues in relation to:  Fragmentation transparency  Replication transparency  Location transparency Naming of Data Items - Criteria 1. Every data item must have a system-wide unique name. 2. It should be possible to find the location of data items efficiently. 3. It should be possible to change the location of data items transparently. 4. Each site should be able to create new data items autonomously. Database system,CSE-313, P.B. Dr. M. A. Kashem Asst. Professor. CSE, DUET, Gazipur.