Distributed Databases

Similar documents
Distributed Databases. Concepts. Why distributed databases? Distributed Databases Basic Concepts

DISTRIBUTED AND PARALLELL DATABASE

Distributed Database Management Systems

Chapter 22: Distributed Databases

chapater 7 : Distributed Database Management Systems

Distributed Data Management

Objectives. Distributed Databases and Client/Server Architecture. Distributed Database. Data Fragmentation

Fragmentation and Data Allocation in the Distributed Environments

TOP-DOWN APPROACH PROCESS BUILT ON CONCEPTUAL DESIGN TO PHYSICAL DESIGN USING LIS, GCS SCHEMA

Distributed Databases

Concepts of Database Management Seventh Edition. Chapter 9 Database Management Approaches

Chapter 3. Database Environment - Objectives. Multi-user DBMS Architectures. Teleprocessing. File-Server

Physical Database Design and Tuning

1. Physical Database Design in Relational Databases (1)

Distributed Databases

Distributed Databases

Secure Data Transfer and Replication Mechanisms in Grid Environments p. 1

When an organization is geographically dispersed, it. Distributed Databases. Chapter 13-1 LEARNING OBJECTIVES INTRODUCTION

Introduction to Parallel and Distributed Databases

VII. Database System Architecture

Distributed Databases in a Nutshell

Distributed Database Management Systems for Information Management and Access

Chapter Outline. Chapter 2 Distributed Information Systems Architecture. Middleware for Heterogeneous and Distributed Information Systems

In Memory Accelerator for MongoDB

Distributed Architectures. Distributed Databases. Distributed Databases. Distributed Databases

An Overview of Distributed Databases

Chapter 1: Introduction

Software Life-Cycle Management

Functional Dependencies

The Sierra Clustered Database Engine, the technology at the heart of

Chapter 1: Introduction. Database Management System (DBMS)

Distributed System Principles

Distributed Databases. Fábio Porto LBD winter 2004/2005

H4 DATABASE DEVELOPMENT SOLUTIONS & MARKING SCHEME JUNE 2013

Data Management in the Cloud. Zhen Shi

LiTH, Tekniska högskolan vid Linköpings universitet 1(7) IDA, Institutionen för datavetenskap Juha Takkinen

IV Distributed Databases - Motivation & Introduction -

The Design of a Distributed Database for Doctoral Studies Management

Chapter 3: Distributed Database Design

Introduction to Databases

TECHNIQUES FOR DATA REPLICATION ON DISTRIBUTED DATABASES

Principles of Distributed Database Systems

Introduction to database management systems

Distributed Database Design (Chapter 5)

Topics. Distributed Databases. Desirable Properties. Introduction. Distributed DBMS Architectures. Types of Distributed Databases

Lesson 8: Introduction to Databases E-R Data Modeling

CS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University

CitusDB Architecture for Real-Time Big Data

Principles and characteristics of distributed systems and environments

Hadoop: A Framework for Data- Intensive Distributed Computing. CS561-Spring 2012 WPI, Mohamed Y. Eltabakh

CS2Bh: Current Technologies. Introduction to XML and Relational Databases. The Relational Model. The relational model

Database System Concepts

AN OVERVIEW OF DISTRIBUTED DATABASE MANAGEMENT

Steps to System Reconfiguration in a Distributed Database System: A Fault-tolerant Approach

Transaction Management in Distributed Database Systems: the Case of Oracle s Two-Phase Commit

Introduction to SQL ( )

Secure and Efficient Data Storage in Multi-clouds

AHAIWE Josiah Information Management Technology Department, Federal University of Technology, Owerri - Nigeria jahaiwe@yahoo.

Comparing Microsoft SQL Server 2005 Replication and DataXtend Remote Edition for Mobile and Distributed Applications

Chapter 1: Introduction

Optimizing Performance. Training Division New Delhi

Chapter 7: Relational Database Design

Data warehousing with PostgreSQL

Chapter 10: Scalability

The Data Grid: Towards an Architecture for Distributed Management and Analysis of Large Scientific Datasets

B2.2-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

DATABASE MANAGEMENT SYSTEMS. Question Bank:

Central vs. Distributed Systems

Chapter 6: Integrity Constraints

Intelligent Data Integration Middleware Based on Updateable Views

Learning Management Redefined. Acadox Infrastructure & Architecture

Introduction to CORBA. 1. Introduction 2. Distributed Systems: Notions 3. Middleware 4. CORBA Architecture

A Multidatabase System as 4-Tiered Client-Server Distributed Heterogeneous Database System

NoSQL in der Cloud Why? Andreas Hartmann

Distributed Database Design

DATA MODELING AND RELATIONAL DATABASE DESIGN IN ARCHAEOLOGY


Mobile and Heterogeneous databases Database System Architecture. A.R. Hurson Computer Science Missouri Science & Technology

SODDA A SERVICE-ORIENTED DISTRIBUTED DATABASE ARCHITECTURE

CSE 233. Database System Overview

Introdução às Bases de Dados

Parallel Databases. Parallel Architectures. Parallelism Terminology 1/4/2015. Increase performance by performing operations in parallel

Relational Database Basics Review

BigData. An Overview of Several Approaches. David Mera 16/12/2013. Masaryk University Brno, Czech Republic

MS Designing and Optimizing Database Solutions with Microsoft SQL Server 2008

Chapter 10 Practical Database Design Methodology and Use of UML Diagrams

Principles for Distributed Databases in Telecom Environment Imran Ashraf Amir Shahzed Khokhar

Data Management in the Cloud

ECS 165A: Introduction to Database Systems

CSE 132A. Database Systems Principles

recovery at a fraction of the cost of Oracle RAC

How to Choose Between Hadoop, NoSQL and RDBMS

Database Concepts. Database & Database Management System. Application examples. Application examples

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

Using distributed technologies to analyze Big Data

Implementing Web-Based Computing Services To Improve Performance And Assist Telemedicine Database Management System

How To Understand The Concept Of A Distributed System

Tier Architectures. Kathleen Durant CS 3200

Advanced Database Group Project - Distributed Database with SQL Server

PARALLELS CLOUD STORAGE

Transcription:

Distributed Databases

DISTRIBUTED DATABASES Definition of Distributed Databases DDBMS,its characteristics Topology of DDBMS Advantages and Disadvantages of DDBMS Heterogeneous and Homogeneous Databases Distributed Data Storage Architecture of DDBMS DDBMS Design

DISTRIBUTED DATABASES A logically interrelated collection of shared data physically distributed over a network. DDBMS DDBMS stands for Distributed Database Management System.

CHARACTERISTICS OF DDBMS A DDBMS has the following characteristics A collection of logically shared data The data is split into a number of fragments Fragments may be replicated Fragments/Replicas are allocated to sites The sites are linked by a communication network The data at each site is under the control of a DBMS The DBMS at each site can handle local applications autonomously NOTE:-It is not necessary for every site in the system to have its own local database.

TOPOLOGY OF DDBMS Site 1 Site 4 DB Computer Network Site 2 DB DB Site 3

ADVANTAGES OF DDBMS Reflects organizational structure Improved share ability and local autonomy Improved availability Improved reliability Improved Performance Economics Modular growth

DISADVANTAGES OF DDBMS Complexity Cost Security Integrity Control more difficult Lack of standards Lack of experience

HOMOGENEOUS DISTRIBUTED DATABASES In a homogeneous distributed database All sites have identical software Are aware of each other and agree to cooperate in processing user requests. Each site surrenders part of its autonomy in terms of right to change schemas or software Appears to user as a single system

HETEROGENEOUS DISTRIBUTED DATABASES In a heterogeneous distributed database Different sites may use different schemas and software Difference in schema is a major problem for query processing Difference in software is a major problem for transaction processing Sites may not be aware of each other and may provide only limited facilities for cooperation in transaction processing

DISTRIBUTED DATA STORAGE 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.

DATA REPLICATION 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 (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. One solution: choose one copy as primary copy and apply concurrency control operations on primary copy

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, accountnumber, balance)

HORIZONTAL FRAGMENTATION OF ACCOUNT RELATION branch-name acc-number balance Hillside Hillside Hillside A-305 A-226 A-155 500 336 62 account 1 = branch-name= Hillside (account) branch-name account-number balance Valleyview Valleyview Valleyview Valleyview A-177 A-402 A-408 A-639 205 10000 1123 750 account 2 = branch-name= Valley view (account)

VERTICAL FRAGMENTATION OF EMPLOYEE-INFO RELATION branch-name customer-name tuple-id Hillside Hillside Valleyview Valleyview Hillside Valleyview Valleyview Lowman Camp Camp Kahn Kahn Kahn Green 1 2 3 4 5 6 7 deposit 1 = branch-name, customer-name, tuple-id (employee-info) Acc-number balance tuple-id A-305 A-226 A-177 A-402 A-155 A-408 A-639 500 336 205 10000 62 1123 750 1 2 3 4 5 6 7 deposit 2 = account-number, balance, tuple-id (employee-info)

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.

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

ARCHITECTURE OF DDBMS The reference architecture of DDBMS includes A set of global external schema A global conceptual schema A fragmentation schema and allocation schema A set of schemas for each local DBMS Global Conceptual Schema Is a logical description of the whole database (as if it were not distributed) Contains entities, relationships, constraints, security and integrity information.

Fragmentation and Allocation schemas fragmentation is how data is logically partitioned. Allocation schema is where data is to be located Local Schemas each local schema has its own set of schemas.

DDBMS Global external Schema Global Conceptual Schema Fragmentatio n Schema Local mapping schema Local Conceptual schema Allocation Schema Local mapping schema Local Conceptual Schema Local mapping schema Local Conceptual Schema Local Internal Schema Local Internal Schema Local Internal Schema Database

DISTRIBUTED DATABASE DESIGN The factors to be considered for the design are: Fragmentation Horizontal Fragmentation Vertical Fragmentation Allocation Replication

Design should meet the following objectives Locality of reference Improved reliability and availability Acceptable performance Balanced storage capacities and costs Minimal Communication costs