Docsity

DBMS-Distributed Database-Lecture 01 Slides-Computer Science, Appunti di Basi di Dati

Toggle sidebar
bg1
Distributed Databases
Chapter 1: Introduction
Johann Gamper
•Syllabus
•Data Independence and Distributed Data Processing
•Definition of Distributed databases
•Promises of Distributed Databases
•Technical Problems to be Studied
•Conclusion
Acknowledgements: I am indebted to Arturas Mazeika for providing me his slides of this course.
DDB 2008/09 J. Gamper Page 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Anteprima parziale del testo

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

Chapter 1: IntroductionDistributed Databases

Johann Gamper

Acknowledgements: • Conclusion • Technical Problems to be Studied • Promises of Distributed Databases • Definition of Distributed databases • Data Independence and Distributed Data Processing • Syllabus

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

J. Gamper

Syllabus

  • (^) Parallel Database Systems • (^) Distributed DBMS Reliability • (^) Distributed Concurrency Control • (^) Transaction Management • (^) Query Processing • (^) Distributed Database Design • (^) Distributed DBMS Architecture • (^) Introduction

J. Gamper

Data Independence...

  • (^) The development of
DBMS

(^) helped to fully achieve data independence (transparency)

  • (^) Provide (^) centralized (^) and controlled data maintenance and access
  • (^) Application is immune to physical and logical file organization

J. Gamper

Data Independence...

approaches to data processing:^ •^ Distributed database system is the union of what appear to be two diametrically opposed

(^) database systems

(^) and computer network

- (^) The most important objective of DB technology is^ •^ Key issues to understand this combination – (^) Computer networks promote a mode of work that goes against centralization

(^) integration (^) not centralization

  • (^) Goal of distributed database systems: achieve data integrationnetworking does not mean centralization (in fact quite opposite) – (^) Integration is possible without centralization, i.e., integration of databases and

(^) and data distribution

transparency

J. Gamper

Distributed Computing/Data Processing...

-^ •^ What can be distributed? - (^) Control – (^) Data – (^) FunctionsProcessing logic -^ •^ Classification of distributed systems with respect to various criteria

∗ asynchronous ∗ synchronous^ –^ Synchronization ∗ common interconnection channel ∗ point-to-point connection between processing elements^ –^ Interconnection structure ∗ weak coupling, strong coupling ∗ e.g., measured as ratio of amount of data exchanged to amount of local processingDegree of coupling, i.e., how closely the processing elements are connected

J. Gamper

Definition of DDB and DDBMS

  • (^) A (^) distributed database

(^) (DDB) is a collection of multiple,

(^) logically interrelated databases

distributed over a

(^) computer network

  • (^) A (^) distributed database management system

(^) (DDBMS) is the software that manages

- (^) Data stored at a^ •^ Implicit assumptions^ •^ The terms DDBMS and DDBS are often used interchangeablythe usersthe DDB and provides an access mechanism that makes this distribution transparent to

(^) number of sites

(^) each site logically consists of a single processor

- (^) Processors at different sites are interconnected by a

(^) computer network

(^) (we do not

- (^) DDBS is aconsider multiprocessors in DDBMS, cf. parallel systems) (^) database , not a collection of files (cf. relational data model). Placement - (^) DDBMS is a collections ofand query of data is impacted by the access patterns of the user

(^) DBMSs (^) (not a remote file system) J. Gamper

Definition of DDB and DDBMS...

  • (^) Example: (^) Database consists of 3 relations

employees

, projects

, and

assignment

(^) which are partitioned and stored at different sites (fragmentation).

  • (^) What are the problems with queries, transactions, concurrency, and reliability?

J. Gamper

What is not a DDBS?

related to) distributed DB systems^ •^ The following systems are parallel database systems and are quite different from (though

Shared Memory

Shared Disk

Shared Nothing

Central Databases

J. Gamper

Promises of DDBSs

DDB 2008/09 • Transparency of distributed and replicated data • Easier system expansion • Improved performance • Higher reliability Distributed Database Systems deliver the following advantages:

J. Gamper

Promises of DDBSs...

DDB 2008/09 concurrency • Distributed transaction processing guarantees the consistency of the database andsystem • e.g., a broken communication link or processing element does not bring down the entire • No single points of failure • Replication of components Higher reliability

J. Gamper

Promises of DDBSs...

  • (^) Emergence of microprocessor and workstation technologies • (^) Issue is database scaling^ Easier system expansion
  • (^) Increasing database size • (^) Data communication cost versus telecommunication cost – (^) Network of workstations much cheaper than a single mainframe computer

J. Gamper

Promises of DDBSs...

applications.^ •^ A fully transparent DBMS provides high-level support for the development of complex^ •^ A transparent system “hides” the implementation details from the users.implementation issues^ •^ Refers to the separation of the higher-level semantics of the system from the lower-level^ Transparency

(a) User wants to see one database

(b) Programmer sees many databases

J. Gamper

Promises of DDBSs...

  • (^) Network/Distribution transparency

(^) allows a user to perceive a DDBS as a single,

performed (perform a task is independent from the location of the data and the site the task is^ •^ The user does not need to know the location of data items and a command used toabout the existence of the network)^ •^ The user is protected from the operational details of the network (or even does not knowlogical entity

location transparency

  • (^) A unique name is provided for each object in the database (

naming transparency

identifier^ –^ In absence of this, users are required to embed the location name as part of an

J. Gamper

Promises of DDBSs...

  • (^) Solution 1: Create a central name server; however, this results in^ Different ways to ensure naming transparency: - (^) DDBMS has task of mapping an alias to appropriate database object – (^) Thus, S1.BRANCH.F3.C2 might be known as local branch by user at site S1^ •^ An approach that resolves these problems uses aliases for each database objectS1.BRANCH.F3.C2 – (^) e.g., copy 2 of fragment 3 of Branch created at site S1 might be referred to as – (^) Also need to identify each fragment and its copies – (^) e.g., branch created at site S1 might be named S1.BRANCH^ •^ Solution 2: Prefix object with identifier of site that created it – (^) low availability (if the central site fails remaining sites cannot create new objects) – (^) central site may become a bottleneck – (^) loss of some local autonomy

J. Gamper