Distributed Databases and Its Twelve Objectives CS157B Name: Yingying Wu Professor: Sin-Min Lee Reference Book: An introduction to Database Systems By.

Slides:



Advertisements
Similar presentations
Distributed databases 1. 2 Outline introduction principles / objectives problems.
Advertisements

1 Term 2, 2004, Lecture 9, Distributed DatabasesMarian Ursu, Department of Computing, Goldsmiths College Distributed databases 3.
Database Systems: Design, Implementation, and Management
Database Architectures and the Web
V. Megalooikonomou Distributed Databases (based on notes by Silberchatz,Korth, and Sudarshan and notes by C. Faloutsos at CMU) Temple University – CIS.
Distributed DBMS© M. T. Özsu & P. Valduriez Ch.6/1 Outline Introduction Background Distributed Database Design Database Integration Semantic Data Control.
Enterprise Systems Distributed databases and systems - DT
Distributed Databases John Ortiz. Lecture 24Distributed Databases2  Distributed Database (DDB) is a collection of interrelated databases interconnected.
Distributed databases
Transaction.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 13 (Web): Distributed Databases
1 Minggu 12, Pertemuan 23 Introduction to Distributed DBMS (Chapter , 22.6, 3rd ed.) Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Distributed Database Management Systems
Overview Distributed vs. decentralized Why distributed databases
Manajemen Basis Data Pertemuan 11 Matakuliah: M0264/Manajemen Basis Data Tahun: 2008.
©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
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 17 Client-Server Processing, Parallel Database Processing,
©Silberschatz, Korth and Sudarshan18.1Database System Concepts Centralized Systems Run on a single computer system and do not interact with other computer.
Definition of terms Definition of terms Explain business conditions driving distributed databases Explain business conditions driving distributed databases.
Distributed Databases
Distributed databases
DATABASE MANAGEMENT SYSTEMS 2 ANGELITO I. CUNANAN JR.
Distributed Databases
Distributed Databases and DBMSs: Concepts and Design
Distributed Databases Dr. Lee By Alex Genadinik. Distributed Databases? What is that!?? Distributed Database - a collection of multiple logically interrelated.
Client/Server Databases and the Oracle 10g Relational Database
1 Distributed and Parallel Databases. 2 Distributed Databases Distributed Systems goal: –to offer local DB autonomy at geographically distributed locations.
IMS 4212: Distributed Databases 1 Dr. Lawrence West, Management Dept., University of Central Florida Distributed Databases Business needs.
12 1 Chapter 12 Distributed Database Management Systems Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
III. Current Trends: 1 - Distributed DBMSsSlide 1/32 III. Current Trends Part 1: Distributed DBMSs: Concepts and Design Lecture 12 (2 hours) Lecturer:
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
04/18/2005Yan Huang - CSCI5330 Database Implementation – Distributed Database Systems Distributed Database Systems.
Distributed Database UNIT 12 Distributed Database.
Session-8 Data Management for Decision Support
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.
Distributed Databases Reference Books: An introduction to Database Systems - By C.J. Database Systems and Concepts – Silberchatz, Korth and Sudarshan Lecture.
10 1 Chapter 10 Distributed Database Management Systems Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications LIS 384K.11 Database-Management Principles and Applications.
Oracle's Distributed Database Bora Yasa. Definition A Distributed Database is a set of databases stored on multiple computers at different locations and.
Distributed Databases DBMS Textbook, Chapter 22, Part II.
Distributed DBMSs- Concept and Design Jing Luo CS 157B Dr. Lee Fall, 2003.
Distributed Databases
ASMA AHMAD 28 TH APRIL, 2011 Database Systems Distributed Databases I.
1 Distributed Databases BUAD/American University Distributed Databases.
Databases Illuminated
Distributed Database. Introduction A major motivation behind the development of database systems is the desire to integrate the operational data of an.
Distributed Database System
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
Distributed database system
1 Distributed Databases Chapter 21, Part B. 2 Introduction v Data is stored at several sites, each managed by a DBMS that can run independently. v Distributed.
Topic Distributed DBMS Database Management Systems Fall 2012 Presented by: Osama Ben Omran.
R*: An overview of the Architecture By R. Williams et al. Presented by D. Kontos Instructor : Dr. Megalooikonomou.
Introduction to Distributed Databases Yiwei Wu. Introduction A distributed database is a database in which portions of the database are stored on multiple.
 Distributed Database Concepts  Parallel Vs Distributed Technology  Advantages  Additional Functions  Distribution Database Design  Data Fragmentation.
Distributed DBMS, Query Processing and Optimization
1 Information Retrieval and Use De-normalisation and Distributed database systems Geoff Leese September 2008, revised October 2009.
Distributed DBMSs – Concepts and Design Chapter 24 in Textbook.
Distributed Databases
1 Chapter 22 Distributed DBMSs - Concepts and Design Simplified Transparencies © Pearson Education Limited 1995, 2005.
Parallel and Distributed Databases
Chapter 19: Distributed Databases
UNIT 12 Distributed Database
Outline Announcements Fault Tolerance.
Distributed Databases
Distributed Databases
Presentation transcript:

Distributed Databases and Its Twelve Objectives CS157B Name: Yingying Wu Professor: Sin-Min Lee Reference Book: An introduction to Database Systems By C.J.Date

Definition of Distributed Database: A distributed database system consists of a collection of sites, connected together via some kind of communication network, in which: A distributed database system consists of a collection of sites, connected together via some kind of communication network, in which: a. Each site is a full database system site in its own right. a. Each site is a full database system site in its own right. b. The sites have agreed to work together so that a user at any site can access data anywhere in the network exactly as if the data were all stored at the user’s own site. b. The sites have agreed to work together so that a user at any site can access data anywhere in the network exactly as if the data were all stored at the user’s own site.

Communication network New York Shanghai London San Francisco A typical distributed database system:

The Fundamental Principle of Distributed Database “To the user, a distributed system should look exactly like a nondistributed system.”

What is the 12 objectives? Local autonomy Local autonomy No reliance on a central site No reliance on a central site Continuous operation Continuous operation Location independence Location independence Fragmentation independence Fragmentation independence Replication independence Replication independence Distributed query processing Distributed query processing Distributed transaction management Distributed transaction management Hardware independence Hardware independence Operating system independence Operating system independence Network independence Network independence DBMS independence DBMS independence

Why study the 12 objectives? --Useful as --Useful as A basis for understanding distributed technology in general A basis for understanding distributed technology in general A framework for characterizing the functionality of specific distributed systems. A framework for characterizing the functionality of specific distributed systems.

Objective 1 Local Autonomy All operations at a given site are controlled by that site. All operations at a given site are controlled by that site. No site X should depend on some other site Y for its successful operation. No site X should depend on some other site Y for its successful operation. -- Otherwise site Y is down might mean that site X is unable to run even if there is nothing wrong with site X itself. -- Otherwise site Y is down might mean that site X is unable to run even if there is nothing wrong with site X itself.

Objective 2 No Reliance on a Central Site All sites must be treated as equals. All sites must be treated as equals. There must not be any reliance on a central “master” site for some central service—for example, centralized transaction management. There must not be any reliance on a central “master” site for some central service—for example, centralized transaction management. Two reasons: 1. The central site might be a bottleneck. 2. If the central site went down, the whole system would be down.

Objective 3 Continuous Operation Provide greater reliability and greater availability – it is the advantage of distributed systems in general. Provide greater reliability and greater availability – it is the advantage of distributed systems in general. Unplanned shutdowns are undesirable, but hard to prevent entirely. Unplanned shutdowns are undesirable, but hard to prevent entirely. Planned shutdowns should never be required. Planned shutdowns should never be required.

Objective 4 Location Independence Also known as location transparency. Also known as location transparency. Users should not have to know where data is physically stored, but rather should be able to behave -- as if the data were all stored at their own local site. Users should not have to know where data is physically stored, but rather should be able to behave -- as if the data were all stored at their own local site.

Objective 5 Fragmentation Independence A system supports data fragmentation if a given base relation can be divided into pieces or fragments for physical storage purposes. A system supports data fragmentation if a given base relation can be divided into pieces or fragments for physical storage purposes. Two benefits: Two benefits: 1. most operations are local 1. most operations are local 2. reduce network traffic 2. reduce network traffic

An example of fragmentation Define two fragments: Define two fragments: FRAGMENT EMP AS FRAGMENT EMP AS N_EMP AT SITE ‘New York’ WHERE DEPT# = DEPT#(‘D1’) N_EMP AT SITE ‘New York’ WHERE DEPT# = DEPT#(‘D1’) OR DEPT# = DEPT#(‘D3’) OR DEPT# = DEPT#(‘D3’) S_EMP AT SITE ‘Shanghai’ WHERE DEPT# = DEPT#(‘D2’) S_EMP AT SITE ‘Shanghai’ WHERE DEPT# = DEPT#(‘D2’) EMP#DEPT#SALARY E1D140K E2D142K E3D230K E4D235K E5D348K User perception EMPEMP#DEPT#SALARYE1D140K E2D142K E5D348K EMP#DEPT#SALARYE3D230K E4D245K New York N_EMP Shanghai S_EMP

Objective 6 Replication Independence A system supports data replication if a given base relation or fragment can be represented in storage by many distinct copies or replicas, stored at many distinct sites. A system supports data replication if a given base relation or fragment can be represented in storage by many distinct copies or replicas, stored at many distinct sites. Ideally should be “transparent to the user”. Ideally should be “transparent to the user”. Desirable for two reasons: Desirable for two reasons: 1. Applications can operate on local copies instead of remote sites. 1. Applications can operate on local copies instead of remote sites. 2. At least one copy available 2. At least one copy available

An example of replication EMP#DEPT#SALARY E1D140K E2D142K E5D348K EMP#DEPT#SALARYE3D230K E4D235K EMP#DEPT#SALARYE3D230K E4D235K EMP#DEPT#SALARYE1D140K E2D142K E5D348K REPLICATE N_EMP AS REPLICATE N_EMP AS SN_EMP AT SITE ‘Shanghai’; SN_EMP AT SITE ‘Shanghai’; REPLICATE S_EMP AS REPLICATE S_EMP AS NS_EMP AT SITE ‘New York’; NS_EMP AT SITE ‘New York’; New York N_EMP Shanghai NS_EMP (S_EMP Replica) S_EMP SN_EMP (N_EMP Replica)

Objective 7 Distributed Query Processing A relational distributed system is likely to outperform a nonrelational one by orders of magnitude. A relational distributed system is likely to outperform a nonrelational one by orders of magnitude. The query that involves several sites, there will be many possible ways of moving data around the system. The query that involves several sites, there will be many possible ways of moving data around the system.

Example: Consider Query “Get supplier numbers for London suppliers of red parts” Database (suppliers-and-parts, simplified): S {S#, CITY} 10,000 stored tuples at site A P {P#, COLOR} 100,000 stored tuples at site B SP {S#, P#} 1,000,000 stored tuples at site A Assume every stored tuple is 25 bytes(200 bits)long. Query (“Get supplier numbers for London suppliers of red parts”): ( ( S JOIN SP JOIN P )WHERE CITY = ‘London’ AND COLOR = COLOR (‘Red’) ) { S# } Estimated cardinalities of certain intermediate results: Number of red parts = 10 Number of shipments by London suppliers = 100,000 Communication assumptions: Data rate = 50,000 bits per second Access delay = 0.1 second

We now briefly examine three possible strategies for processing this query, and for each strategy calculate the total communication time T from the formula: ( total access delay ) + (total data volume / data rate) 1.Move parts to site A and process the query at A. T1 = ( * 200 ) / = 400 seconds approx. (6.67minutes) 2. Move suppliers and shipments to site B and process the query at B. T2 = ( ( ) * 200 ) / = 4040 seconds approx. (1.12 hours) 3. Restrict parts at site B to those that are red and move the result to site A. Complete the processing at site A. T3 = (10 * 200 ) / = 0.1 second approx.

Objective 8 Distributed Transaction Management Recovery Recovery The system must ensure that the set of agents for that transaction either all commit in unison or all roll back in unison. The system must ensure that the set of agents for that transaction either all commit in unison or all roll back in unison. Achieved by two-phase commit protocol. Achieved by two-phase commit protocol. Concurrency Concurrency Typically based on locking. Typically based on locking.

t1t4t5t6 t2 t3t7t8 t9 GETREADYGETREADY OKOK DOITDOIT DONEITDONEIT Coordinator Participant Two-phase commit: Force decision Log entry-end ph.1,start ph.2 “In doubt” Forces a log entry for agent

Objective 9 Hardware Independence Real world involves a multiplicity of different machines—IBM machines, HP machines, PCs and workstations of various kinds. Real world involves a multiplicity of different machines—IBM machines, HP machines, PCs and workstations of various kinds. Need to be able to integrate the data on all of those systems. Need to be able to integrate the data on all of those systems. Desirable to be able to run the same DBMS on different hardware platform. Desirable to be able to run the same DBMS on different hardware platform.

Objective 10 Operating System Independence Be able to run the same DBMS on different operating system platforms. Be able to run the same DBMS on different operating system platforms. Have (e.g.) an OS/390 version and a UNIX version and a Windows version all participate in the same distributed system. Have (e.g.) an OS/390 version and a UNIX version and a Windows version all participate in the same distributed system.

Objective 11 Network Indepence Desirable to be able to support a variety of disparate communication networks also. Desirable to be able to support a variety of disparate communication networks also.

Objective 12 DBMS Independence All needed is that the DBMS instances at different sites all support the same interface– they don’t necessarily all of the same DBMS software. All needed is that the DBMS instances at different sites all support the same interface– they don’t necessarily all of the same DBMS software. For example, if Ingres and Oracle both supported the official SQL standard, the Ingres site and the Oracle site might be able to talk to each other in a distributed database system. For example, if Ingres and Oracle both supported the official SQL standard, the Ingres site and the Oracle site might be able to talk to each other in a distributed database system.

GATEWAY Ingres (SQL) Oracle (SQL) Ingres database Oracle database Ingres user Distributed Ingres database A hypothetical Ingres–provided gateway to Oracle: Site XSite Y

Thank you!