Outline Introduction Background Distributed Database Design

Slides:



Advertisements
Similar presentations
Database Architectures and the Web
Advertisements

Basis for Distributed Database Technology
Distributed databases
Transaction.
Chapter 3 Database Architectures and the Web Pearson Education © 2009.
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 DBMS© 2001 M. Tamer Özsu & Patrick Valduriez Page 1.1 Outline  Introduction à What is a distributed DBMS à Problems à Current state-of-affairs.
Distributed Database Management Systems
Distributed DBMSPage 4. 1© 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background  Distributed DBMS Architecture  Datalogical Architecture.
Overview Distributed vs. decentralized Why distributed databases
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,
Distributed DBMS© 2001 M. Tamer Özsu & Patrick Valduriez Page 1.1 Outline  Introduction à What is a distributed DBMS à Problems à Current state-of-affairs.
Distributed databases
DISTRIBUTED DBMS ARCHITECTURE
Distributed Databases and DBMSs: Concepts and Design
PMIT-6103 Advanced Database Systems
Client-Server Processing and Distributed Databases
Chapter 3 Database Architectures and the Web Pearson Education © 2009.
Database Architectures and the Web
1 Distributed and Parallel Databases. 2 Distributed Databases Distributed Systems goal: –to offer local DB autonomy at geographically distributed locations.
Database Architectures and the Web Session 5
Database Design – Lecture 16
Distributed DBMS Architecture
III. Current Trends: 1 - Distributed DBMSsSlide 1/32 III. Current Trends Part 1: Distributed DBMSs: Concepts and Design Lecture 12 (2 hours) Lecturer:
9/5/2012ISC329 Isabelle Bichindaritz1 Web Database Environment.
Session-9 Data Management for Decision Support
Distributed DBMS Architecture
Session-8 Data Management for Decision Support
1 About the Instructor Name: Gong Zhiguo Office: N512 Phone: Remark: Some of the slides are tailored from.
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 Database Systems Overview
Distributed DBMS© 2001 M. Tamer Özsu & Patrick Valduriez Page 1.1 Outline  Introduction à What is a distributed DBMS à Problems à Current state-of-affairs.
Distributed Databases Midterm review. Lectures covered Everything until (including) March 2 nd Everything until (including) March 2 nd Focus on distributed.
DISTRIBUTED COMPUTING Introduction Dr. Yingwu Zhu.
DDBMS Distributed Database Management Systems Fragmentation
Distributed DBMSs- Concept and Design Jing Luo CS 157B Dr. Lee Fall, 2003.
Kjell Orsborn UU - DIS - UDBL DATABASE SYSTEMS - 10p Course No. 2AD235 Spring 2002 A second course on development of database systems Kjell.
Distributed Databases
Distributed Database Systems
ASMA AHMAD 28 TH APRIL, 2011 Database Systems Distributed Databases I.
1 Distributed Databases BUAD/American University Distributed Databases.
Databases Illuminated
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
CS742 – Distributed & Parallel DBMSM. Tamer Özsu Page 1.1 Outline Introduction & architectural issues What is a distributed DBMS Problems Current state-of-affairs.
Topic Distributed DBMS Database Management Systems Fall 2012 Presented by: Osama Ben Omran.
Distributed Database Management Systems. Reading Textbook: Ch. 1, Ch. 3 Textbook: Ch. 1, Ch. 3 For next class: Ch. 4 For next class: Ch. 4 FarkasCSCE.
 Distributed Database Concepts  Parallel Vs Distributed Technology  Advantages  Additional Functions  Distribution Database Design  Data Fragmentation.
1 Chapter 22 Distributed DBMS Concepts and Design CS 157B Edward Chen.
Distributed DBMS Architecture Chapter 4 Principles Of Distributed Database Systems,2/e By Ozsu, Patrick Valduriez.
Distributed DBMS© 2001 M. Tamer Özsu & Patrick Valduriez Page 1.1 Outline n Introduction Background Distributed DBMS Architecture Distributed Database.
Ch.1/1 Outline Introduction – What is a distributed DBMS – Distributed DBMS Architecture Background Distributed Database Design Database Integration Semantic.
1 Chapter 22 Distributed DBMSs - Concepts and Design Simplified Transparencies © Pearson Education Limited 1995, 2005.
Chapter 01 Introduction to Distributed Database. Overview File System ◦ Menyediakan suatu prosedur bagi suatu program untuk menyimpan, melakukan update,
CHAPTER 25 - Distributed Databases and Client–Server Architectures
Distributed Database Concepts
Outline Background Introduction Distributed DBMS Architecture
Distributed Database Management Systems
DISTRIBUTED DATABASE ARCHITECTURE
Outline Introduction Background Distributed DBMS Architecture
Database Architectures and the Web
OVERVIEW OF RELATIONAL DBMS PERTEMUAN 1 IR. NIZIRWAN ANWAR, MT
Outline Introduction Background Distributed DBMS Architecture
Outline Introduction Background Distributed DBMS Architecture
Database Architecture
Presentation transcript:

Outline Introduction Background Distributed Database Design What is a distributed DBMS Distributed DBMS Architecture Background Distributed Database Design Database Integration Semantic Data Control Distributed Query Processing Multidatabase query processing Distributed Transaction Management Data Replication Parallel Database Systems Distributed Object DBMS Peer-to-Peer Data Management Web Data Management Current Issues

File Systems program 1 File 1 data description 1 program 2

Database Management description manipulation control Application DBMS Application program 1 (with data semantics) program 2 program 3 description manipulation control

integration ≠ centralization Motivation Database Technology Computer Networks integration distribution Distributed Database Systems integration integration ≠ centralization

Distributed Computing A number of autonomous processing elements (not necessarily homogeneous) that are interconnected by a computer network and that cooperate in performing their assigned tasks. What is being distributed? Processing logic Function Data Control

What is a Distributed Database System? A distributed database (DDB) is a collection of multiple, logically interrelated databases distributed over a computer network. A distributed database management system (D–DBMS) is the software that manages the DDB and provides an access mechanism that makes this distribution transparent to the users. Distributed database system (DDBS) = DDB + D–DBMS

What is not a DDBS? A timesharing computer system A loosely or tightly coupled multiprocessor system A database system which resides at one of the nodes of a network of computers - this is a centralized database on a network node

Centralized DBMS on a Network Site 1 Site 2 Site 5 Communication Network Site 4 Site 3

Distributed DBMS Environment Site 1 Site 2 Site 5 Communication Network Site 4 Site 3

Implicit Assumptions Data stored at a number of sites  each site logically consists of a single processor. Processors at different sites are interconnected by a computer network  not a multiprocessor system Parallel database systems Distributed database is a database, not a collection of files  data logically related as exhibited in the users’ access patterns Relational data model D-DBMS is a full-fledged DBMS Not remote file system, not a TP system

Data Delivery Alternatives Delivery modes Pull-only Push-only Hybrid Frequency Periodic Conditional Ad-hoc or irregular Communication Methods Unicast One-to-many Note: not all combinations make sense

Distributed DBMS Promises Transparent management of distributed, fragmented, and replicated data Improved reliability/availability through distributed transactions Improved performance Easier and more economical system expansion

Transparency Transparency is the separation of the higher level semantics of a system from the lower level implementation issues. Fundamental issue is to provide data independence in the distributed environment Network (distribution) transparency Replication transparency Fragmentation transparency horizontal fragmentation: selection vertical fragmentation: projection hybrid

Example

Transparent Access SELECT ENAME,SAL FROM EMP,ASG,PAY WHERE DUR > 12 AND EMP.ENO = ASG.ENO AND PAY.TITLE = EMP.TITLE Tokyo Paris Boston Animated slide Paris projects Paris employees Paris assignments Boston employees Communication Network Boston projects Boston employees Boston assignments Montreal New York Montreal projects Paris projects New York projects with budget > 200000 Montreal employees Montreal assignments Boston projects New York employees New York projects New York assignments

Distributed Database - User View

Distributed DBMS - Reality User Query DBMS Software User Application DBMS Software DBMS Software Communication Subsystem User Application DBMS Software User Query DBMS Software User Query

Types of Transparency Data independence Network transparency (or distribution transparency) Location transparency Fragmentation transparency Replication transparency

Reliability Through Transactions Replicated components and data should make distributed DBMS more reliable. Distributed transactions provide Concurrency transparency Failure atomicity Distributed transaction support requires implementation of Distributed concurrency control protocols Commit protocols Data replication Great for read-intensive workloads, problematic for updates Replication protocols

Potentially Improved Performance Proximity of data to its points of use Requires some support for fragmentation and replication Parallelism in execution Inter-query parallelism Intra-query parallelism

Parallelism Requirements Have as much of the data required by each application at the site where the application executes Full replication How about updates? Mutual consistency Freshness of copies

System Expansion Issue is database scaling Emergence of microprocessor and workstation technologies Demise of Grosh's law Client-server model of computing Data communication cost vs telecommunication cost

Distributed DBMS Issues Distributed Database Design How to distribute the database Replicated & non-replicated database distribution A related problem in directory management Query Processing Convert user transactions to data manipulation instructions Optimization problem min{cost = data transmission + local processing} General formulation is NP-hard

Distributed DBMS Issues Concurrency Control Synchronization of concurrent accesses Consistency and isolation of transactions' effects Deadlock management Reliability How to make the system resilient to failures Atomicity and durability

Relationship Between Issues Directory Management Query Processing Distribution Design Reliability Concurrency Control Deadlock Management

Related Issues Operating System Support Operating system with proper support for database operations Dichotomy between general purpose processing requirements and database processing requirements Open Systems and Interoperability Distributed Multidatabase Systems More probable scenario Parallel issues

Architecture Defines the structure of the system components identified functions of each component defined interrelationships and interactions between components defined

ANSI/SPARC Architecture Users External Schema External view External view External view Conceptual view Conceptual Schema Internal Schema Internal view

Generic DBMS Architecture

DBMS Implementation Alternatives

Dimensions of the Problem Distribution Whether the components of the system are located on the same machine or not Heterogeneity Various levels (hardware, communications, operating system) DBMS important one data model, query language,transaction management algorithms Autonomy Not well understood and most troublesome Various versions Design autonomy: Ability of a component DBMS to decide on issues related to its own design. Communication autonomy: Ability of a component DBMS to decide whether and how to communicate with other DBMSs. Execution autonomy: Ability of a component DBMS to execute local operations in any manner it wants to.

Client/Server Architecture

Advantages of Client-Server Architectures More efficient division of labor Horizontal and vertical scaling of resources Better price/performance on client machines Ability to use familiar tools on client machines Client access to remote data (via standards) Full DBMS functionality provided to client workstations Overall better system price/performance

Database Server

Distributed Database Servers

Datalogical Distributed DBMS Architecture ... ES1 ES2 ESn GCS ... LCS1 LCS2 LCSn ... LIS1 LIS2 LISn

Peer-to-Peer Component Architecture USER PROCESSOR USER User requests System responses Database DATA PROCESSOR System Log External Schema Global Conceptual Schema Local Conceptual Schema Local Internal Schema GD/D User Interface Handler Semantic Data Controller Execution Global Monitor Runtime Support Processor Global Query Optimizer Local Query Processor Local Recovery Manager

Datalogical Multi-DBMS Architecture ... GES1 GES2 GESn … … LES11 LES1n GCS LESn1 LESnm … LCS1 LCS2 LCSn … LIS1 LIS2 LISn

MDBS Components & Execution Global User Request Local User Request Local User Request Multi-DBMS Layer Global Subrequest Global Subrequest Global Subrequest DBMS1 DBMS2 DBMS3

Mediator/Wrapper Architecture