Distributed DBMSPage 4. 1© 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background  Distributed DBMS Architecture  Datalogical Architecture.

Slides:



Advertisements
Similar presentations
Database System Concepts and Architecture
Advertisements

Distributed DBMSPage 6. 1© 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background Distributed DBMS Architecture Distributed Database Design.
Distributed DBMSPage © 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background Distributed DBMS Architecture Distributed Database.
Distributed DBMSPage © 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background Distributed DBMS Architecture Distributed Database.
Distributed DBMS© M. T. Özsu & P. Valduriez Ch.6/1 Outline Introduction Background Distributed Database Design Database Integration Semantic Data Control.
Distributed DBMS © M. T. Özsu & P. Valduriez Ch.7/1 Outline Introduction Background Distributed Database Design Database Integration Semantic Data Control.
Basis for Distributed Database Technology
Distributed databases
Distributed DBMS© M. T. Özsu & P. Valduriez Ch.4/1 Outline Introduction Background Distributed Database Design Database Integration ➡ Schema Matching ➡
City University London
Distributed DBMS© 2001 M. Tamer Özsu & Patrick Valduriez Page 1.1 Outline  Introduction à What is a distributed DBMS à Problems à Current state-of-affairs.
Distributed DBMSPage © 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background Distributed DBMS Architecture Distributed Database.
Distributed Database Management Systems
Overview Distributed vs. decentralized Why distributed databases
Session – 5 DISTRIBUTED DATABASE ARCHITECTURE Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
Distributed DBMSPage 5. 1 © 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background Distributed DBMS Architecture  Distributed Database.
Reference Book Principles of Distributed Database System Chapters 4. Distributed DBMS Architecture 5. Distributed Database Design 7.5 Layers of Query Processing.
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.
©Silberschatz, Korth and Sudarshan18.1Database System Concepts Centralized Systems Run on a single computer system and do not interact with other computer.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Overview of Database Languages and Architectures.
Distributed Databases
Database System Architectures  Client-server Database System  Parallel Database System  Distributed Database System Wei Jiang.
Outline Introduction Background Distributed Database Design
Distributed databases
DATABASE MANAGEMENT SYSTEMS 2 ANGELITO I. CUNANAN JR.
DISTRIBUTED DBMS ARCHITECTURE
Distributed DBMSPage © 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background Distributed DBMS Architecture Distributed Database.
1 Distributed and Parallel Databases. 2 Distributed Databases Distributed Systems goal: –to offer local DB autonomy at geographically distributed locations.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Database Design – Lecture 16
Distributed DBMS Architecture
Session-9 Data Management for Decision Support
Distributed DBMS Architecture
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.
Week 5 Lecture Distributed Database Management Systems Samuel ConnSamuel Conn, Asst Professor Suggestions for using the Lecture Slides.
Distributed Database Systems Overview
Intro – Part 2 Introduction to Database Management: Ch 1 & 2.
Distributed DBMS© 2001 M. Tamer Özsu & Patrick Valduriez Page 1.1 Outline  Introduction à What is a distributed DBMS à Problems à Current state-of-affairs.
Chapter 2 Database Systems Architecture. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.2-2 Topics in this Chapter Three levels of architecture.
DDBMS Distributed Database Management Systems Fragmentation
Kjell Orsborn UU - DIS - UDBL DATABASE SYSTEMS - 10p Course No. 2AD235 Spring 2002 A second course on development of database systems Kjell.
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 2-1 Data Models Data Model: A set.
Distributed DBMSPage © 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background Distributed DBMS Architecture Distributed Database.
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.
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.
Chapter 17: Additional Slides February 6, Outline Physical Data Management  Fragments  Distributed Query Processing  Transactions Logical Data.
Distributed DBMS Architecture Chapter 4 Principles Of Distributed Database Systems,2/e By Ozsu, Patrick Valduriez.
1 Information Retrieval and Use De-normalisation and Distributed database systems Geoff Leese September 2008, revised October 2009.
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.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
CS742 – Distributed & Parallel DBMSPage 3. 1M. Tamer Özsu Outline Introduction & architectural issues Data distribution  Distributed query processing.
CHAPTER 25 - Distributed Databases and Client–Server Architectures
Outline Background Introduction Distributed DBMS Architecture
DISTRIBUTED DATABASE ARCHITECTURE
Distributed Databases
Outline Introduction Background Distributed DBMS Architecture
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Outline Introduction Background Distributed DBMS Architecture
Outline Introduction Background Distributed DBMS Architecture
Distributed DBMS Architecture
Database Architecture
Database System Architectures
Distributed Database Management System
Presentation transcript:

Distributed DBMSPage 4. 1© 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background  Distributed DBMS Architecture  Datalogical Architecture  Implementation Alternatives  Component Architecture  Distributed DBMS Architecture  Distributed Database Design  Semantic Data Control  Distributed Query Processing  Distributed Transaction Management o Parallel Database Systems o Distributed Object DBMS o Database Interoperability o Current Issues

Distributed DBMSPage 4. 2© 1998 M. Tamer Özsu & Patrick Valduriez  Defines the structure of the system  components identified  functions of each component defined  interrelationships and interactions between components defined Architecture

Distributed DBMSPage 4. 3© 1998 M. Tamer Özsu & Patrick Valduriez ANSI/SPARC Architecture External Schema Conceptual Schema Internal Schema Internal view Users External view Conceptual view External view External view

Distributed DBMSPage 4. 4© 1998 M. Tamer Özsu & Patrick Valduriez Reference Model  A conceptual framework whose purpose is to divide standardization work into manageable pieces and to show at a general level how these pieces are related to one another. Approaches  Component-based  Components of the system are defined together with the interrelationships between components.  Good for design and implementation of the system.  Function-based  Classes of users are identified together with the functionality that the system will provide for each class.  The objectives of the system are clearly identified. But how do you achieve these objectives?  Data-based  Identify the different types of describing data and specify the functional units that will realize and/or use data according to these views. Standardization

Distributed DBMSPage 4. 5© 1998 M. Tamer Özsu & Patrick Valduriez RELATION EMP [ KEY = {ENO} ATTRIBUTES = { ENO :CHARACTER (9) ENAME : CHARACTER (15) TITLE :CHARACTER (10) } ] RELATION PAY [ KEY = {TITLE} ATTRIBUTES = { TITLE :CHARACTER (10) SAL :NUMERIC (6) } ] Conceptual Schema Definition

Distributed DBMSPage 4. 6© 1998 M. Tamer Özsu & Patrick Valduriez RELATION PROJ [ KEY = {PNO} ATTRIBUTES = { PNO :CHARACTER (7) PNAME :CHARACTER (20) BUDGET :NUMERIC (7) } ] RELATION ASG [ KEY = {ENO,PNO} ATTRIBUTES = { ENO :CHARACTER (9) PNO :CHARACTER (7) RESP :CHARACTER (10) DUR :NUMERIC (3) } ] Conceptual Schema Definition

Distributed DBMSPage 4. 7© 1998 M. Tamer Özsu & Patrick Valduriez RELATION EMP [ KEY = {ENO} ATTRIBUTES = { ENO :CHARACTER (9) ENAME :CHARACTER (15) TITLE :CHARACTER (10) } ]   INTERNAL_REL EMPL [ INDEX ON E# CALL EMINX FIELD = { HEADER : BYTE (1) E# : BYTE (9) ENAME : BYTE (15) TIT : BYTE (10) } ] Internal Schema Definition

Distributed DBMSPage 4. 8© 1998 M. Tamer Özsu & Patrick Valduriez Create a BUDGET view from the PROJ relation CREATE VIEW BUDGET(PNAME, BUD) AS SELECT PNAME, BUDGET FROM PROJ External View Definition – Example 1

Distributed DBMSPage 4. 9© 1998 M. Tamer Özsu & Patrick Valduriez Create a Payroll view from relations EMP and TITLE_SALARY CREATEVIEW PAYROLL (ENO, ENAME, SAL) AS SELECT EMP.ENO,EMP.ENAME,PAY.SAL FROM EMP, PAY WHERE EMP.TITLE = PAY.TITLE External View Definition – Example 2

Distributed DBMSPage 4. 10© 1998 M. Tamer Özsu & Patrick Valduriez DBMS Implementation Alternatives Distribution Heterogeneity Autonomy Client/server Peer-to-peer Distributed DBMS Federated DBMS Distributed multi-DBMS Multi-DBMS

Distributed DBMSPage 4. 11© 1998 M. Tamer Özsu & Patrick Valduriez 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.

Distributed DBMSPage 4. 12© 1998 M. Tamer Özsu & Patrick Valduriez Datalogical Distributed DBMS Architecture... ES 1 ES 2 ES n GCS LCS 1 LCS 2 LCS n LIS 1 LIS 2 LIS n

Distributed DBMSPage 4. 13© 1998 M. Tamer Özsu & Patrick Valduriez Datalogical Multi-DBMS Architecture... GCS … … GES 1 LCS 2 LCS n … … LIS 2 LIS n LES 11 LES 1 n LES n 1 LES nm GES 2 GES n LIS 1 LCS 1

Distributed DBMSPage 4. 14© 1998 M. Tamer Özsu & Patrick Valduriez Timesharing Access to a Central Database Communications DBMS Services Network Terminals or PC terminal emulators Batch requests Response No data storage Host running all software Application Software Database

Distributed DBMSPage 4. 15© 1998 M. Tamer Özsu & Patrick Valduriez Multiple Clients/Single Server Communications Client Services Applications Communications DBMS Services LAN High-level requests Filtered data only Communications Client Services Applications Communications Client Services Applications Database

Distributed DBMSPage 4. 16© 1998 M. Tamer Özsu & Patrick Valduriez Task Distribution Application Communications Manager Lock Manager Storage Manager Page & Cache Manager Query Optimizer QL Interface Programmatic Interface … SQL query result table Database

Distributed DBMSPage 4. 17© 1998 M. Tamer Özsu & Patrick Valduriez 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

Distributed DBMSPage 4. 18© 1998 M. Tamer Özsu & Patrick Valduriez Problems With Multiple- Client/Single Server Server forms bottleneck Server forms single point of failure Database scaling difficult

Distributed DBMSPage 4. 19© 1998 M. Tamer Özsu & Patrick Valduriez Multiple Clients/Multiple Servers Communications Client Services Applications LAN directory caching query decomposition commit protocols Communications DBMS Services Database Communications DBMS Services Database

Distributed DBMSPage 4. 20© 1998 M. Tamer Özsu & Patrick Valduriez Server-to-Server Communications DBMS Services LAN Communications DBMS Services SQL interface programmatic interface other application support environments Communications Client Services Applications Database

Distributed DBMSPage 4. 21© 1998 M. Tamer Özsu & Patrick Valduriez Peer-to-Peer Component Architecture Database DATA PROCESSORUSER PROCESSOR USER User requests System responses External Schema User Interface Handler Global Conceptual Schema Semantic Data Controller Global Execution Monitor System Log Local Recovery Manager Local Internal Schema Runtime Support Processor Local Query Processor Local Conceptual Schema Global Query Optimizer GD/D

Distributed DBMSPage 4. 22© 1998 M. Tamer Özsu & Patrick Valduriez Components of a Multi-DBMS Global Requests Responses … DBMSDBMS User Interface Query Processor Query Optimizer Transaction Manager Scheduler Recovery Manager Runtime Sup. Processor USER GTPGQP GQOGSGRM GUI Local Requests Component Interface Processor (CIP) DBMSDBMS User Interface Query Processor Query Optimizer Transaction Manager Scheduler Recovery Manager Runtime Sup. Processor Local Requests Component Interface Processor (CIP)

Distributed DBMSPage 4. 23© 1998 M. Tamer Özsu & Patrick Valduriez Directory Issues Type Location Replication Global & central & non-replicated Local & central & non-replicated (?) Global & distributed & non-replicated (?) Local & distributed & non-replicated Global & central & replicated (?) Global & distributed & replicated Local & distributed & replicated Local & central & replicated (?)