Docsity

databases distributed, Schemes and Mind Maps of Software Development

Partial preview of the text

Download databases distributed and more Schemes and Mind Maps Software Development in PDF only on Docsity!

Chapter 1: IntroductionDistributed Databases

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

Syllabus

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

Data Independence...

  • (^) The development of

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

  • (^) Provide (^) centralized (^) and controlled data maintenance and access

4 •^ Application is immune to physical and logical file organization

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

(^5) transparency

www.edutechlearners.com

Distributed Computing/Data Processing...

∗^ –^ Degree of coupling, i.e., how closely the processing elements are connected^ •^ Classification of distributed systems with respect to various criteria^ –^ Control^ –^ Data^ –^ Functions^ –^ Processing logic^ •^ What can be distributed?

7 ∗ 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 processing

Definition of DDB and DDBMS

  • (^) A (^) distributed database

(^) (DDB) is a collection of multiple, logically interrelated databases

  • (^) A (^) distributed database management system distributed over a computer network

(^) (DDBMS) is the software that manages

8 – DDBMS is a collections of DBMSs (not a remote file system)and query of data is impacted by the access patterns of the user – DDBS is a database, not a collection of files (cf. relational data model). Placementconsider multiprocessors in DDBMS, cf. parallel systems) – Processors at different sites are interconnected by a computer network (we do not – Data stored at a number of sites each site logically consists of a single processor^ •^ Implicit assumptions^ •^ The terms DDBMS and DDBS are often used interchangeablythe usersthe DDB and provides an access mechanism that makes this distribution transparent to

Definition of DDB and DDBMS...

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

employees

, projects

, and

assignment

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

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

www.edutechlearners.com

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

11

Promises of DDBSs

13 •^ Transparency of distributed and replicated data^ •^ Easier system expansion^ •^ Improved performance^ •^ Higher reliability^ Distributed Database Systems deliver the following advantages:

Promises of DDBSs...

14 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

Promises of DDBSs...

-^ •^ Emergence of microprocessor and workstation technologies^ •^ Issue is database scaling^ Easier system expansion

16 •^ Increasing database size^ •^ Data communication cost versus telecommunication cost Network of workstations much cheaper than a single mainframe computer

Promises of DDBSs...

(a) User wants to see one database 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

(b) Programmer sees many databases

17

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

)

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

www.edutechlearners.com

Promises of DDBSs...

-^ •^ Solution 1: Create a central name server; however, this results in^ Different ways to ensure naming transparency:

20 – 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