Docsity

The best material note, Study notes of Advanced Education

Toggle sidebar
bg1
HARAMAYA UNIVERSITY
College of Computing and Informatics
Department of Computer Science
GROUP ASSIGNMENT OF ADVANCED DATABASE
SECTION ONE
NAME ID_NO
1. ABDULHAKIM MICHAEL 0466/16
2 AREGAA MELION 0739/16
3. AFENDI MOHAMMED 0597/16
4. GURMESA ADUGNA 1443/16
SUBMITTED TO: MR. BAHAR
SUBMISSION DATE: MAY 25, 2025
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download The best material note and more Study notes Advanced Education in PDF only on Docsity!

HARAMAYA UNIVERSITY College of Computing and Informatics Department of Computer Science GROUP ASSIGNMENT OF ADVANCED DATABASE SECTION ONE NAME ID_NO

**1. ABDULHAKIM MICHAEL 0466/ 2 AREGAA MELION 0739/

  1. AFENDI MOHAMMED 0597/
  2. GURMESA ADUGNA 1443/** SUBMITTED TO: MR. BAHAR SUBMISSION DATE: MAY 25, 2025

Chapter Seven

Distributed Database System

7.1. Distributed Database Concepts 7.2. Data Fragmentation, Replication, and Allocation Techniques for Distributed Database Design 7.3. Types of Distributed Database Systems

Distributed Database Concepts

  • A distributed database (DDB) is a collection of multiple logically related database distributed over a computer network.
  • is a collection of multiple interconnected databases spread across different locations.
  • Distributed DBMS is the software system that permits the management of a Distributed DB while making the distribution transparent to the user.
  • It allows data to be stored and accessed from multiple sites.
  • It acts like one big database for users, even though the data is spread out.
  • Distributed DB logically related shared data and metadata at several physically independent sites connected via network. A DDBS has the following components &types: 1.Local DBMS: Manages data at each individual location.
  • Think of it as a branch manager in a large bank.
  • The local DBMS manages its own assigned portion of the entire database. It handles tasks like: - Storing and retrieving data specific to its location. - Enforcing data integrity and security rules for its data. - Processing queries for data residing locally.
  • Example: A university DDBMS might have a local DBMS on each department server. The Computer Science department's local DBMS would manage student data related to CS courses and grades. #Types of Distributed Database Systems Homogeneous DDBS : all the LDBMSs use the same type of software (e.g., all Oracle databases); Simpler & lack flexibility. Heterogeneous DDBS : A mix of different products and platforms at different sites (e.g., one site uses Oracle, another uses MySQL, both). Is more flexibility and more complex to manage
  1. Distributed DDBMS: oversees the entire distributed database system.
  • It can be Central Controller, Master DDBMS, Distributed Database Manager, etc. It's responsible for : - Managing communication - Ensuring everything runs smoothly between the individual databases (Local DBMS). - Ensuring data consistency across all locations - Processing queries that involve data from multiple

locations.

  • Think of the Distributed DDBMS like a large corporation with several regional offices.
  • Each office (local DBMS) manages its own data and tasks.
  • But there's also a headquarters (Distributed DDBMS) that oversees the entire operation, coordinates communication between the offices, and ensures everything is consistent across the company.
  1. Global System Catalog (GSC): The central library, keeping track of where all the data resides.
  • It stores information about the entire distributed database. This includes:
    • The GSC acts like a directory, telling the Distributed DDBMS

where specific pieces of data reside on different local DBMSs.

  • It stores information about the data itself, like data types

and constraints

  • The GSC may hold details on user permissions to access different

parts of the distributed database.

  • Specific to the fragmentation, replication, and allocation schemas
  • In simpler terms, the GSC provides a reference book for the distributed database, while the Distributed DDBMS acts as the conductor managing the overall operations.
  1. Data Communication (DC): The messengers, allowing data to be exchanged between locations; is the exchange of data between different parts of a DDBS.
  • is the software that enables all sites to communicate with each other.
  • The DC component contains information about the sites and the links.
  • Think of DC the secure communication network connecting all.

Data Fragmentation:

  • Dividing the data into smaller, manageable chunks is called fragmentation.
  • This makes it easier to store and access data on different machines.
  • Imagine splitting a giant book into chapters and storing them on separate shelves.
  • Types of Fragmentation:
  • Horizontal: Splitting data based on rows (e.g., customer records for specific regions).
  • Vertical: Splitting data based on columns (e.g., customer name and address in one fragment, order history in another).

Replication

  • Keeping copies of the same data fragment on multiple machines is called replication.
  • Replication involves creating copies of data fragments and storing them on multiple machines in a DDBS.
  • Example: A company replicates customer data on servers in different countries for global access during emergencies.
  • In full replication the entire database is replicated and in partial replication some selected part is replicated to some of the sites.
  • Benefits:
  • Improved Availability: If one server fails, users can access data from a replica.
  • Enhanced Performance: Users can access data from the closest replica, reducing network traffic.

-. -.

Multi-User DBMS

  • A multi-user DBMS (Database Management System) is designed multiple users to access and manipulate the database simultaneously.
  • File-Server^ vs. Client-Server Architectures:
  • In^ a file-server architecture, the DBMS is centralized on a server, and clients access the database through file sharing.
  • The^ server handles data storage, retrieval, and processing, while clients send requests for data operations.
  • In^ a client-server architecture, the DBMS functionality is divided between the client and server components.
  • Clients^ are responsible for the user interface and application logic, while the server handles data storage and processing.
  • Example:^ A web-based email service where the client (web browser) interacts with the server to send, receive, and store emails. to (^) allow

Two-Tier Client-Server Architecture:

  • In a two-tier client- server architecture, the system consists of two layers: the client layer and the server layer.
  • The client layer handles the user interface and application logic, while the server layer manages data storage and processing.

Three-Tier Client-Server Architecture :

  • In a three-tier client-server architecture, the system has three layers : the presentation layer, application layer, and data layer.
  • The presentation layer handles the user interface, the application layer contains the business lo ADVANTAGES of DDBS
  • Reflects organizational
  • structure
  • Improved shareable and local autonomy