Docsity

DDBMS Architecture-Distributed Database-Lecture 02 Slides-Computer Science, Appunti di Basi di Dati

Anteprima parziale del testo

Scarica DDBMS Architecture-Distributed Database-Lecture 02 Slides-Computer Science e più Appunti in PDF di Basi di Dati solo su Docsity!

Chapter 2: DDBMS Architecture

Definition of the DDBMS Architecture

ANSI/SPARC Standard

Global, Local, External, and Internal Schemas, Example

DDBMS Architectures

Components of the DDBMS

Acknowledgements:

I am indebted to Arturas Mazeika for providing me his slides of this course.

J. Gamper

Definition

Architecture:

The architecture of a system defines its structure:

the components of the system are identified;

the function of each component is specified;

the interrelationships and interactions among the components are defined.

Applies both for computer systems as well as for software systems, e.g,

division into modules, description of modules, etc.

architecture of a computer

efforts, and a reference model.There is a close relationship between the architecture of a system, standardisation

J. Gamper

Standardization

The standardization efforts in databases developed reference models of DBMS.

Reference Model

: A conceptual framework whose purpose is to divide standardization

related to each other.work into manageable pieces and to show at a general level how these pieces are

A reference model can be thought of as an

idealized architectural model

of the system.

standardization processCommercial systems might deviate from reference model, still they are useful for the

A reference model can be described according to 3 different approaches:

component-based

function-based

data-based

J. Gamper

Standardization...

Components-based

the componentsComponents of the system are defined together with the interrelationships between

Good for design and implementation of the system

It might be difficult to determine the functionality of the system from its components

J. Gamper

Standardization...

Data-based

and/or use data according to these viewsIdentify the different types of the data and specify the functional units that will realize

→Gives central importance to data (which is also the central resource of any DBMS)

Claimed to be the preferable choice for standardization of DBMS

modules.The full architecture of the system is not clear without the description of functional

Example: ANSI/SPARC architecture of DBMS

J. Gamper

Standardization...

The interplay among the 3 approaches is important:

Need to be used together to define an architectural model

modelEach brings a different point of view and serves to focus on different aspects of the

J. Gamper

Example

Conceptual schema: Provides enterprise view of entire database

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)

]

RELATION

PROJ [

KEY

=

PNO

ATTRIBUTES

=

PNO

:

CHARACTER

(7)

PNAME

:

CHARACTER

(20)

BUDGET:

NUMERIC

(7)

LOC

:

CHARACTER

(15)

] RELATION

ASG [

KEY

=

ENO,PNO

ATTRIBUTES

=

ENO :

CHARACTER

(9)

PNO :

CHARACTER

(7)

RESP:

CHARACTER

(10)

DUR :

NUMERIC

(3)

]

J. Gamper

Example...

Internal schema: Describes the storage details of the relations.

Relation EMP is stored on an indexed file

Index is defined on the key attribute ENO and is called EMINX

INTERNALA HEADER field is used that might contain flags (delete, update, etc.)

REL

EMPL

[

INDEX ON

E#

CALL

EMINX

FIELD

=

HEADER:

BYTE

(1)

E#

:

BYTE

(9)

ENAME

:

BYTE

(15)

TIT

:

BYTE

(10)

]

Conceptual schema:

RELATION

EMP

[

KEY

=

{ ENO

}

ATTRIBUTES

=

{

ENO

:

CHARACTER

(9)

ENAME:

CHARACTER

(15)

TITLE:

CHARACTER

(10)

}

]

J. Gamper

Architectural Models for DDBMSs

classified along three dimensions:Architectural Models for DDBMSs (or more generally for multiple DBMSs) can be

Autonomy

Distribution

Heterogeneity

J. Gamper

Architectural Models for DDBMSs...

Autonomy

: Refers to the distribution of control (not of data) and indicates the degree to

which individual DBMSs can operate independently.

Tight integration

: a single-image of the entire database is available to any user who

one data manager is in control of the processing of each user request.wants to share the information (which may reside in multiple DBs); realized such that

Semiautonomous

systems: individual DBMSs can operate independently, but have

decided to participate in a federation to make some of their local data sharable.

Total isolation

: the individual systems are stand-alone DBMSs, which know neither of

control.the existence of other DBMSs nor how to comunicate with them; there is no global

Autonomy has different dimensions

Design autonomy

: each individual DBMS is free to use the data models and

transaction management techniques that it prefers.

Communication autonomy

: each individual DBMS is free to decide what information

to provide to the other DBMSs

Execution autonomy

: each individual DBMS can execture the transactions that are

submitted to it in any way that it wants to.

J. Gamper

Architectural Models for DDBMSs...

Heterogeneity

: Refers to heterogeneity of the components at various levels

hardware

communications

operating system

algorithms)DB components (e.g., data model, query language, transaction management

J. Gamper

Architectural Models for DDBMSs...

J. Gamper

Peer-to-Peer Architecture for DDBMS (Data-based)

Local internal schema

(LIS)

on each machine)ganization (which might be differentDescribes the local physical data or-

Local conceptual schema

(LCS)

at each siteDescribes logical data organization

mented and replicatedRequired since the data are frag-

Global conceptual schema (GCS)

the dataDescribes the global logical view of

Union of the LCSs

External schema

(ES)

on the dataDescribes the user/application view

J. Gamper

Multi-DBMS Architecture (Data-based)

conceptual schema (GCS)Fundamental difference to peer-to-peer DBMS is in the definition of the global

In a MDBMS the GCS represents only the collection of

some

of the local databases

that each local DBMS want to share.

This leads to the question, whether the GCS should even exist in a MDBMS?

Two different architecutre models:

Models with a GCS

Models without GCS

J. Gamper