• No results found

Outline. Distributed DBMSPage 4. 1

N/A
N/A
Protected

Academic year: 2021

Share "Outline. Distributed DBMSPage 4. 1"

Copied!
23
0
0

Loading.... (view fulltext now)

Full text

(1)

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

Parallel Database Systems

Distributed Object DBMS

(2)

Defines the structure of the system

➠components identified

➠functions of each component defined

➠interrelationships and interactions between components defined

(3)

ANSI/SPARC Architecture

External Schema

Conceptual Schema

Internal Internal view

Users External view Conceptual view External

(4)

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

(5)

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)

(6)

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) }

(7)

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) }

(8)

Create a BUDGET view from the PROJ relation

CREATE VIEW BUDGET(PNAME, BUD)

AS SELECT PNAME, BUDGET

FROM PROJ

External View Definition –

Example 1

(9)

Create a Payroll view from relations EMP and

TITLE_SALARY

CREATE VIEW 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

(10)

DBMS Implementation

Alternatives

Distribution Autonomy Client/server Peer-to-peer Distributed DBMS Distributed multi-DBMS Multi-DBMS

(11)

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.

(12)

Datalogical Distributed

DBMS Architecture

...

...

...

ES1 ES2 ESn GCS LCS1 LCS2 LCSn

(13)

Datalogical Multi-DBMS

Architecture

...

GCS

GES1 LCS2

LCSn

LIS2 LISn

LES11 LES1n LESn1 LESnm

GES2 GESn

LIS1 LCS1

(14)

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

(15)

Multiple Clients/Single Server

Communications Client Services Applications Communications DBMS Services LAN High-level

requests Filtereddata only Communications Client Services Applications Communications Client Services Applications

(16)

Task Distribution

Application Communications Manager Communications Manager Lock Manager Storage Manager Page & Cache Manager

Query Optimizer QL

Interface ProgrammaticInterface SQL

(17)

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

(18)

Problems With

Multiple-Client/Single Server

Server forms bottleneck

Server forms single point of failure

Database scaling difficult

(19)

Multiple Clients/Multiple Servers

Communications Client Services Applications LAN

directory

caching

query decomposition

commit protocols

Communications DBMS Services Communications DBMS Services

(20)

Server-to-Server

Communications DBMS Services LAN Communications DBMS Services

SQL interface

programmatic

interface

other application

support

environments

Communications Client Services Applications

(21)

Peer-to-Peer

Component Architecture

Database DATA PROCESSOR USER PROCESSOR USER User requests System responses External Schema Use r Interf ace Handle r Global Conceptual Schema Semantic D a ta Contr ol le r Gl oba l Exe cution Monitor System Log L o ca l Re co ve ry Man a g er Local Internal Schema

Runtime Support Pro

cess o r Loc a l Qu er y Pro cess o r Local Conceptual Schema Gl oba l Quer y Optimizer GD/D

(22)

Components of a Multi-DBMS

Global Requests Responses

D

B

M

S

User Interface Query Processor Query Transaction Manager Scheduler Recovery USER GTP GQP GQO GS GRM GUI Local Requests

Component Interface Processor (CIP)

D

B

M

S

User Interface Query Processor Query Transaction Manager Scheduler Recovery Local Requests Component Interface Processor

(23)

Directory Issues

Type

Location

Global & central & non-replicated

Local & central

& non-replicated (?)

Global & distributed & non-replicated (?)

Local & distributed & non-replicated

Global & central & replicated (?)

Local & distributed & replicated

Local & central & replicated (?)

References

Related documents

of differentiated thyroid cancer include those related to surveillance for recurrent disease using imaging and serum thyroglobulin, thyroid hormone therapy, management of recurrent

We demonstrate the effectiveness of the proposed approach on two data sets of handwritten digits: Western Ara- bic (MNIST) and Farsi for which we achieve high recognition rates of

First discussed by representatives of Saudi Arabia, Djibouti, Egypt, Jordan, Somalia, Sudan and Ye - men during meetings in Cairo and Riyadh in 2017 and 2018, the entity was founded

2_o5 SCHEDULE scuevuum; CONSTRAINTS / SEARCH ENGINE 2_o§ , POTENTIAL SCHEDULES ANALYSIS OF scneouuss ESTIMATED SERVICE LEVELS AGENT REQUIREMENTS SCORING FUNCTION 210

In high-quality online courses, students learn as much as in face-to-face courses (Meyer, Human Factors • Instructor/professor • Instructional Associate/Graduate Assistant

• UPDATE FEM-DESIGN MODEL IF ANY CHANGES APPEAR IN REVIT MODEL WITHOUT LOOSING.

The emergence of positron emission tomography-magnetic resonance (PET-MR) scanners offers an elegant solution to PET motion correction. A number of MR-based cardiac/ respiratory

Enclosed is the report on significant audit findings for single audits of school districts and charter schools for the year ended June 30, 2014.. If you have any questions,