+ All Categories
Home > Technology > ditributed databases

ditributed databases

Date post: 13-Apr-2017
Category:
Upload: hira-awan
View: 317 times
Download: 0 times
Share this document with a friend
42
Transcript
Page 1: ditributed databases
Page 2: ditributed databases

BrAinY 4Presented to:- Ma’am Asima Jamil & Class

GROUP MEMBERSZupashSanaMarhabaGROUP LEADER Hira Anwar

Page 3: ditributed databases

DISTRIBUTED DATABASES

OUR TOPIC OF PRESENTATION IS

Page 4: ditributed databases

Topics to be discussed are Centralized database system Distributed database Decentralized database Distributed DBMS Advantages and disadvantages of DDBMS Distributed database design Function of DDBMS Types of DDBMS DBMS transparency & gateways

Page 5: ditributed databases

Centralized DB system Distributed DB system Decentralized DB system Distributed DBMS

Presented by

ZUPASH KIRAMAT

Page 6: ditributed databases

Centralized Database systemA centralized database sometimes abbreviated CDB) is a database that is located, stored, and maintained in a single location. This location is most often a central computer or database system, for example a desktop or server CPU, or a mainframe computer

Page 7: ditributed databases

Distributed DB system

database In a Distributed Database System the database is stored/spread physically across computers or sites in different locations that are connected together by some form of data communication network.

Page 8: ditributed databases

Distributed DB system

Page 9: ditributed databases

Difference

Page 10: ditributed databases

Decentralized DB systemDatabase is stored on computers or sites on different location but the computers are not interconnected via a network.

Page 11: ditributed databases

Distributed DBMS

A DDBMS is a centralized application that manages a distributed database as if it were all stored on the same computer.

Synchronizes all the data periodically, and in cases where multiple users must access the same data.

Page 12: ditributed databases

ADVANTAGES AND DISADVANTAGES

SANA AYUB

Page 13: ditributed databases

ADVANTAGES

Local control Reliability and availability Efficient querying process Modular growth Economics

Page 14: ditributed databases

Advantages…

Page 15: ditributed databases

Disadvantages

Software complexity and high costs

Processing overheads Data integrity Complex DB design Slow response

Page 16: ditributed databases

DISTRIBUTED DB DESIGN

HIRA ANWAR

Page 17: ditributed databases

Distributed DB designThree additional factors are involved

1.Data Fragmentation2.Data replication3.Data allocation

Page 18: ditributed databases

Distributed Database Design

Fragmentation Relation may be divided into a number of

sub-relations, which are then distributed.

Allocation Each fragment has to be allocated to one or

more sites.

Replication Copy of fragment may be maintained at

several sites.

Page 19: ditributed databases

Fragmentation

The DB may be broken into logical units.

Types Horizontal fragmentation• table broken into two or more set of

rows.

Vertical fragmentation• table broken into two or more set of

columns

Page 20: ditributed databases

41

Horizontal and Vertical Fragmentation

Page 21: ditributed databases

Data replication

A copy of each fragment may be stored at several sites.

Data replication is the design process of deciding which fragment will be replicated.

Page 22: ditributed databases

Data Allocation

Each fragment have to be allocated to one or more sites, where it will be stored.

Three strategies used for this purpose:1. Fragmented data allocation.2. Complete replication3. Selective replication

Page 23: ditributed databases

Fragmented data allocation. Database partitioned into disjoint fragments,

each fragment assigned to one site. Also called non-redundant allocation or

partitioned allocation.

Advantages:1. Efficiency2. SecurityDisadvantages3. Inconsistent access speeds4. Backup vulnerability

Page 24: ditributed databases

Complete replication A complete copy of DB is maintained at

each site. No replication.

ADVANTAGES:1. Faster and consistent access speeds2. Reliability3. Node decouplingDISADVANTAGES:4. Update complexity5. Increased storage requirements

Page 25: ditributed databases

Selective Replication Combination of partitioning, replication,

and centralization.

Page 26: ditributed databases

Functions of DDBMS

EXTENDED COMMUNIICATION SERVICES: provides access to remote sites and allow transfer of queries.

EXTENDED SYSTEM CATALOG: (Global system catalog) to store data distribution details,

DUSTRIBUTED QUERY PROCESSING: Translate request at one site using local DBMS into proper request to another site using a different DBMS and data model.

EXTENDED CONCURRENCY CONTROL: to maintain concurrency of the replicated data.

EXTENDED RECOVERY SERVICES: to be able to recover from individual site crashes and failure of communication links.

Page 27: ditributed databases

TYPES OF DDBMS

marhaba wazir

Page 28: ditributed databases

What is it?

Cheerios

Page 29: ditributed databases

What is it?

Trail Mix

Page 30: ditributed databases

Types of Distributed Database System

Homogeneous Heterogeneous

DDBMS

Homogenous

Heterogeneous

Page 31: ditributed databases

Homogenous Distributed Database Systems

In this type of database has all data center have same software

Much easier to design and manage.

It appears to user as a single system

Page 32: ditributed databases

characteristics

Data are distributed Same DBMS is used Data managed by distributed DBMS Users access database through one

schema Global schema is the union of all

local DB schemas

Page 33: ditributed databases

Homogeneous Database

Same software

Page 34: ditributed databases

Heterogeneous Distributed Database Systems

In this type of database , Different data center may run different DBMS products, with possibly different underlying data models.

CHARACTERISICS• Data is distributed across nodes.• Different DBMS is used• Only local access databases can be accomplished using

only local DBMS and schema.• A global schema exists.

Page 35: ditributed databases

Heterogeneous Distributed database

Sql oracle

Page 36: ditributed databases

DBMS transparency & Gateways Transparency refers to ability to hide

the knowledge that local DBMSs may be different.

Applies to heterogeneous environment.

To achieve transparency, DBMSs at different sites should support the same interface.

Page 37: ditributed databases
Page 38: ditributed databases

Gateways

Gateway provides following functions. Protocol for exchange of information between two

DBMSs. Mapping between two DBMSs data types. Mapping the SQL of the X system to that of Y. Mapping feedback information if the Y system to

that of the X. an effective mechanism to synchronize locking

and commit mechanism of Y system with those requested by X system.

Provide relational server function for the Y DBMS.

Page 39: ditributed databases
Page 40: ditributed databases
Page 41: ditributed databases

Recommended