Distributed Relational Database Systems Dr Janusz R. Getta School - - PowerPoint PPT Presentation

distributed relational database systems
SMART_READER_LITE
LIVE PREVIEW

Distributed Relational Database Systems Dr Janusz R. Getta School - - PowerPoint PPT Presentation

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 CSCI235 Database Systems Distributed Relational Database Systems Dr Janusz R. Getta School of Computing


slide-1
SLIDE 1

CSCI235 Database Systems

Distributed Relational Database Systems

Dr Janusz R. Getta

School of Computing and Information Technology - University of Wollongong

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 1 of 31 11/9/20, 7:08 pm

slide-2
SLIDE 2

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 2/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 2 of 31 11/9/20, 7:08 pm

slide-3
SLIDE 3

Distributed database ? What is it ?

Distributed database system (DDBS) is a collection of multiple logically related databases distributed over a computer network Distributed database management system (DDBMS) is a collection of database systems together with software providing a required set of

  • perations on data and management features

Homogeneous DDBS is a collection of identical database systems distributed over a computer network, e.g. a collection of Oracle database systems Heterogeneous DDBS is a collection of different database systems distributed over a computer network, e.g. a collection of Oracle + MySQL + DB/2 + MongoDB + XML native database systems + Excel spreadsheets + ... , systems

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 3/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 3 of 31 11/9/20, 7:08 pm

slide-4
SLIDE 4

Distributed database ? What is it ?

A sample organization of heterogeneous distributed database system

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 4/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 4 of 31 11/9/20, 7:08 pm

slide-5
SLIDE 5

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 5/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 5 of 31 11/9/20, 7:08 pm

slide-6
SLIDE 6

Centralized database schema model

In a centralized database schema model the users are provided their personal external schemas (views) of data The external schemas are integrated into a single conceptual schema later on transformed into a logical schema and implemented as physical schema

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 6/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 6 of 31 11/9/20, 7:08 pm

slide-7
SLIDE 7

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 7/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 7 of 31 11/9/20, 7:08 pm

slide-8
SLIDE 8

Mainframe application architecture

In mainframe application architecture "dumb" terminals are connected to a single database server

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 8/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 8 of 31 11/9/20, 7:08 pm

slide-9
SLIDE 9

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 9/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 9 of 31 11/9/20, 7:08 pm

slide-10
SLIDE 10

Client-server architecture

In client-server architecture personal systems communicate with a single database server

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 10/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 10 of 31 11/9/20, 7:08 pm

slide-11
SLIDE 11

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 11/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 11 of 31 11/9/20, 7:08 pm

slide-12
SLIDE 12

Distributed client-server architecture

In distributed client-server architecture personal systems communicate with many database servers

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 12/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 12 of 31 11/9/20, 7:08 pm

slide-13
SLIDE 13

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 13/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 13 of 31 11/9/20, 7:08 pm

slide-14
SLIDE 14

Web based architecture

In Web based architecture personal systems communicate with the Web servers that communicate with a single database server

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 14/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 14 of 31 11/9/20, 7:08 pm

slide-15
SLIDE 15

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 15/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 15 of 31 11/9/20, 7:08 pm

slide-16
SLIDE 16

Distributed Web based architecture

In Distributed Web based architecture personal systems communicate with the Web servers that communicate with many database servers

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 16/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 16 of 31 11/9/20, 7:08 pm

slide-17
SLIDE 17

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 17/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 17 of 31 11/9/20, 7:08 pm

slide-18
SLIDE 18

Distributed database schema architecture

In distributed database schema architecture a global conceptual schema hides distribution from the users The users can see a distributed database system as a single monolithic database system

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 18/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 18 of 31 11/9/20, 7:08 pm

slide-19
SLIDE 19

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 19/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 19 of 31 11/9/20, 7:08 pm

slide-20
SLIDE 20

Transparency

Transparency means hiding information from end users Data organization (distribution or network) transparency means hiding network related information and data placement information; it is either location or naming transparency Naming transparency allows for global naming of data objects Location transparency allows the operations to be independent on the locations of data objects Replication transparency means that users are unaware of the existence

  • f multiple copies of the same data objects

Fragmentation transparency means that users are unaware of data fragmentation over many sites; it includes vertical and horizontal fragmentation

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 20/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 20 of 31 11/9/20, 7:08 pm

slide-21
SLIDE 21

Transparency

Design transparency means that users are unaware of how distributed database was designed Execution transparency means that users are unaware of how database transactions are processed

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 21/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 21 of 31 11/9/20, 7:08 pm

slide-22
SLIDE 22

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 22/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 22 of 31 11/9/20, 7:08 pm

slide-23
SLIDE 23

Autonomy

Autonomy determines a level of independence of individual nodes in distributed database system High degree autonomy is required for flexibility and customized maintenance of distributed database system Design autonomy means a level of independence of data model usage and transaction management technique between the nodes Communication autonomy means a level of independence to which a node can share information with other nodes Execution autonomy means a level of independence to which users act as they please

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 23/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 23 of 31 11/9/20, 7:08 pm

slide-24
SLIDE 24

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 24/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 24 of 31 11/9/20, 7:08 pm

slide-25
SLIDE 25

Advantages and disadvantages of DDBS

Higher level of reliability and availability Improved ease and flexibility of application development Improved performance Easier expansion

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 25/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 25 of 31 11/9/20, 7:08 pm

slide-26
SLIDE 26

Advantages and disadvantages of DDBS

Keeping track of data distribution Distributed query processing Distributed transaction management Replicated data management Distributed database recovery Security Distributed directory (catalog) management

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 26/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 26 of 31 11/9/20, 7:08 pm

slide-27
SLIDE 27

Distributed Relational Database Systems

Outline

Distributed database ? What is it ? Centralized database schema model Mainframe application architecture Client-server architecture Distributed client-server architecture Web based architecture Distributed Web based architecture Distributed database schema architecture Transparency Autonomy Advantages and disadvantages of DDBS Distributed database system Oracle 12c

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 27/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 27 of 31 11/9/20, 7:08 pm

slide-28
SLIDE 28

Distributed Database System Oracle 12c

Global database name uniquely identifies a database in the system It is possible to change a global database name when connected as a database administrator

SELECT * FROM GLOBAL_NAME;

Listing the contents of a system view GLOBAL_NAME

GLOBAL_NAME

  • DB.DATA-PC07

ALTER DATABASE RENAME GLOBAL_NAME TO jrg.f8y792s.informatics.uow.edu.au;

Renaming global database name TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 28/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 28 of 31 11/9/20, 7:08 pm

slide-29
SLIDE 29

Distributed Database System Oracle 12c

Database link is a connection between two physical database servers that allow a user to access them as one logical database Assume, that we are connected as a user scott to a database server DATA-PC01. Then, it is possible to create a database link to a user jrg located at a database server DATA-PC07 in the following way A name of database link ( "DB.DATA-PC07" ) to a database must be the same as a global database name of the database linked to

SELECT * FROM USER_DB_LINKS;

Listing the existing database links

no rows selected

Message

CREATE DATABASE LINK "DB.DATA-PC07" CONNECT TO jrg IDENTIFIED BY rat USING 'data-pc07.adeis.uow.edu.au:1521/db';

Creating a database link TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 29/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 29 of 31 11/9/20, 7:08 pm

slide-30
SLIDE 30

Distributed Database System Oracle 12c

A connection string ( 'data-pc07.adeis.uow.edu.au:1521/db' ) determines a physical location of the database linked to When a database link is created it is possible to access a relational table located in a database system linked to Relational table name used: EMP Database link: "DB.DATA-PC07" A synonym can be used to implement location transparency

SELECT * FROM EMP@"DB.DATA-PC07";

Accessing a relational table over a database link

CREATE SYNONYM EMP07 FOR EMP@"DB.DATA-PC07";

Creating a synonym

SELECT * FROM EMP07;

Using a synonym TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 30/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 30 of 31 11/9/20, 7:08 pm

slide-31
SLIDE 31

References

  • T. Connoly, C. Begg, Database Systems, A Practical Approach to Design,

Implementation, and Management, Chapter 24 Distributed DBMs - Concepts and Design, Chapter 25.7 Distribution in Oracle, Pearson Education Ltd, 2015

TOP Created by Janusz R. Getta, CSCI235 Database Systems, Spring 2020 31/31

Distributed Relational Database Systems file:///Users/jrg/235-2020-SPRING/SLIDES/WEEK07/15distributeddatbase/15distributeddatabase.html#1 31 of 31 11/9/20, 7:08 pm