SlideShare ist ein Scribd-Unternehmen logo
1 von 26
DISTRIBUTED DATA BASE :
Database:-
Logical interrelated collection of shared data, along with description of
data, physically distributed over a computer network
1
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 the DDB
and provides an access mechanism that makes this
distribution transparent to the users
2
3
A DDBMS mainly classified into two types:
◦ Homogeneous Distributed database management
systems
◦ Heterogeneous Distributed database management
systems
4
⚫ All sites are interconnected.
⚫ Fragments can be replicated.
⚫ Logically related shared data can be collected.
⚫ Data at each and every site is controlled by the DBMS.
⚫ Each Distributed Database Management System takes part
in at least one global application.
CHARACTERISTICS
5
⚫ Security
⚫ Keeping track of data
⚫ Replicated data management
⚫ System catalog management
⚫ Distributed transaction management
⚫ Distributed database recovery
FUNCTIONALITY:
6
⚫ In a homogeneous distributed database all sites
have identical software and are aware of each
other and agree to cooperate in processing user
requests.
⚫ The homogeneous system is much easier to
design and manage
⚫ The operating system used, at each
location must be same or compatible.
⚫ The database application (or DBMS) used at
each location must be same or compatible.
HOMOGENEOUS DDMS::
7
⚫ In a heterogeneous distributed database
different sites may use different schema
and software.
⚫ In heterogeneous systems, different nodes
may have different hardware & software
and data structures at various nodes or
locations are also incompatible.
⚫ Different computers and operating
systems, database applications or data
models may be used at each of the
locations
HETEROGENEOUS DDBMS:
8
⚫ On heterogeneous system, translations are
required to allow communication between
different sites (or DBMS).
⚫ The heterogeneous system is often not
technically or economically feasible. In
this system, a user at one location may be
able to read but not update the data at
another location.
9
⚫ Less danger of a single-point failure.
When one of the computers fails, the
workload is picked up by other
workstations.
⚫ Data are also distributed at multiple
sites.
⚫ The end user is able to access any
available copy of the data, and an end
user's request is processed by any
processor at the data location
ADVANTAGES:
10
ADVANTAGES(Cont..,)
⚫ Less danger of a single-point failure. When
one of the computers fails, the workload is
picked up by other workstations.
⚫ Data are also distributed at multiple sites.
⚫ The end user is able to access any available
copy of the data, and an end user's request is
processed by any processor at the data
location
11
⚫ Complexity of management and control.
⚫ Applications must recognize data location,
and they must be able to stitch together data
from various sites.
⚫ Security.
DISADVANTAGES
12
⚫ Increased storage and infrastructure
requirements.
⚫ Multiple copies of data has to be at different
sites, thus an additional disk
storage space will be required.
⚫ The probability of security lapses
increases when data are located at
multiple sites.
DISADVANTAGES(Cont..,)
13
LOCKS CONCEPTS:
⚫ A lock is used when multiple users need to access a
database concurrently. This prevents data from being
corrupted or invalidated when multiple users try to write to
the database.
⚫ Any single user can only modify those database records
(that is, items in the database) to which they have applied a
lock that gives them exclusive access to the record until the
lock is released. Locking not only provides exclusivity to
write but also prevents (or controls) reading of unfinished
modifications.
14
⚫ A parallel database system is to improve performance through
parallelization of various operations, such as loading data,
building indexes and evaluating queries.
⚫ The distribution is solely done on the bases of performance.
⚫ Parallel databases improve processing and input/output
speeds by using multiple CPUs and disks in parallel.
⚫ Many operations are performed
simultaneously
⚫ Data may be stored in a distributed fashion.
PARALLEL DATABASE
15
Change B/W Distributed
Database and Parallel Database
Characteristics Parallel Database Distributed database
Definition It is a software system
where multiple
processors or machines are
used to
execute and run queries in
parallel.
It is a software system that
manages multiple logically
interrelated databases
distributed over a computer
network.
Geographical
Location
The nodes are located at
geographically
same location.
The nodes are usually
located at geographically
different locations.
Execution
Speed
Quicker Slower
Overhead Less More
16
Node types Compulsorily Homogeneous Need not be homogeneous
Performance Lower reliability &
availability.
Higher reliability &
availability.
Scope of
Expansion
Difficult to expand Easier to expand
Backup Backup at one site only Backup at multiple sites
Consistency Maintaining consistency is
easier
Maintaining consistency is
difficult.
17
⚫ Fragmentation is a process of division or the
mapping of the tables based on the columns and
rows of data into the smallest unit of data.
⚫ Data that has broken down is still possible to be
combined again with the intention to complete the
data collection using fragmentation.
⚫ Fragmentation is a database server feature that allows
you to control where data is stored at the table level.
⚫ Fragmentation enables you to define groups of rows
or index keys within a table.
Data Fragmentation
18
⚫ Replication is that we store several copies of a relation
or relation fragment. An entire relation can be
replicated at one or more sites.
⚫ Similarly, one or more fragments of a relation can
be replicated at other sites.
⚫ For example, if a relation R is fragmented into R1,R2,
and R3, there might be just one copy of R1, whereas
R2 is replicated at two other sites and R3 is replicated
at all sites.
REPLICATION:
19
The motivation for replication is twofold:
1. Increased Availability of Data: If a site that
contains a replica goes down, we can find
the same data at other sites. Similarly, if
local copies of remote relations are
available, we are less vulnerable to failure
of communication links.
2. Faster Query Evaluation: Queries can
execute faster by using a local copy of a
relation instead of going to a remote site
TWO FOLD REPLICATION
20
⚫ In a distributed DBMS,a given transaction is
submitted at some one site, but it can access data
at other sites as well.
⚫ When a transaction is submitted at some site, the
transaction manager at that site breaks it up into
a collection of one or more sub-transactions that
execute at different sites, submits them to
transaction managers at the other sites, and
coordinates their activity.
DISTRIBUTED TRANSACTIONS:
21
⚫ Distributed Concurrency Control: Procedure in
which required for controlling concurrent execution
of operation that takes
⚫ Distributed Recovery: Transaction atomicity must
be ensured when a transaction commits, all its
actions, across all the sites at which it executes,
must persist. Similarly, when a transaction aborts,
none of its actions must be allowed to persist
22
⚫ The choice of technique determines which objects
are to be locked.
⚫ When locks are obtained and released is determined
by the concurrency control protocol.
⚫ We now consider how lock and unlock requests are
implemented in a distributed environment. Lock
management can be distributed across sites in many
ways:
23
⚫ Centralized : A single site is in charge of handling lock
and unlock requests for all objects.
⚫ Primary Copy: One copy of each object is designated the
primary copy.All requests to lock or unlock a copy of this
object are handled by the lock manager at the site where the
primary copy is stored, regardless of where the copy itself is
stored.
⚫ Fully Distributed : Requests to lock or unlock a copy of an
object stored at a site are handled by the lock manager at the
site where the copy is stored.
24
⚫ Recovery in a distributed DBMS is more complicated than in a
centralized DBMS for the following reasons:
◦ New kinds of failure can arise : Failure of communication links and
failure of a remote site at which a sub-transaction is executing.
◦ Either all sub-transactions of a given transaction must commit or none
must commit, and this property must be guaranteed despite any
combination of site and link failures. This guarantee is achieved using a
commit protocol.
DISTRIBUTED RECOVERY
25
26

Weitere ähnliche Inhalte

Ähnlich wie nnnn.pptx

Chapter-6 Distribute Database system (3).ppt
Chapter-6 Distribute Database system (3).pptChapter-6 Distribute Database system (3).ppt
Chapter-6 Distribute Database system (3).pptlatigudata
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed databaseSonia Panesar
 
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptxSantosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptxSANTOSH KUMAR MEHER
 
Distribution transparency and Distributed transaction
Distribution transparency and Distributed transactionDistribution transparency and Distributed transaction
Distribution transparency and Distributed transactionshraddha mane
 
1 introduction DDBS
1 introduction DDBS1 introduction DDBS
1 introduction DDBSnaimanighat
 
Database , 1 Introduction
 Database , 1 Introduction Database , 1 Introduction
Database , 1 IntroductionAli Usman
 
Distributed databases
Distributed databasesDistributed databases
Distributed databasesSuneel Dogra
 
Database 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanDatabase 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanIftikhar Ahmad
 
Unit-1 Introduction to Big Data.pptx
Unit-1 Introduction to Big Data.pptxUnit-1 Introduction to Big Data.pptx
Unit-1 Introduction to Big Data.pptxAnkitChauhan817826
 
Csld phan tan va song song
Csld phan tan va song songCsld phan tan va song song
Csld phan tan va song songLê Anh Trung
 
Distributed database management system
Distributed database management systemDistributed database management system
Distributed database management systemVinay D. Patel
 
1 introduction ddbms
1 introduction ddbms1 introduction ddbms
1 introduction ddbmsamna izzat
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database SystemSulemang
 

Ähnlich wie nnnn.pptx (20)

Chapter-6 Distribute Database system (3).ppt
Chapter-6 Distribute Database system (3).pptChapter-6 Distribute Database system (3).ppt
Chapter-6 Distribute Database system (3).ppt
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed database
 
Advance DBMS
Advance DBMSAdvance DBMS
Advance DBMS
 
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptxSantosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
Santosh Kumar Meher(2105040008) DISTRIBUTED DATABASE.pptx
 
Distribution transparency and Distributed transaction
Distribution transparency and Distributed transactionDistribution transparency and Distributed transaction
Distribution transparency and Distributed transaction
 
1 ddbms jan 2011_u
1 ddbms jan 2011_u1 ddbms jan 2011_u
1 ddbms jan 2011_u
 
Distributed dbms (ddbms)
Distributed dbms (ddbms)Distributed dbms (ddbms)
Distributed dbms (ddbms)
 
1 introduction DDBS
1 introduction DDBS1 introduction DDBS
1 introduction DDBS
 
Database , 1 Introduction
 Database , 1 Introduction Database , 1 Introduction
Database , 1 Introduction
 
Distributed databases
Distributed databasesDistributed databases
Distributed databases
 
Database 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanDatabase 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvan
 
Unit-1 Introduction to Big Data.pptx
Unit-1 Introduction to Big Data.pptxUnit-1 Introduction to Big Data.pptx
Unit-1 Introduction to Big Data.pptx
 
Csld phan tan va song song
Csld phan tan va song songCsld phan tan va song song
Csld phan tan va song song
 
DDBMS
DDBMSDDBMS
DDBMS
 
Distributed database management system
Distributed database management systemDistributed database management system
Distributed database management system
 
1 introduction ddbms
1 introduction ddbms1 introduction ddbms
1 introduction ddbms
 
Computer Science Homework Help
Computer Science Homework HelpComputer Science Homework Help
Computer Science Homework Help
 
Distributed D B
Distributed  D BDistributed  D B
Distributed D B
 
Chapter 4 u
Chapter 4 uChapter 4 u
Chapter 4 u
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database System
 

Mehr von NANDHINIS900805

3b318431-df9f-4a2c-9909-61ecb6af8444.pptx
3b318431-df9f-4a2c-9909-61ecb6af8444.pptx3b318431-df9f-4a2c-9909-61ecb6af8444.pptx
3b318431-df9f-4a2c-9909-61ecb6af8444.pptxNANDHINIS900805
 
wepik-breaking-down-spam-detection-a-deep-learning-approach-with-tensorflow-a...
wepik-breaking-down-spam-detection-a-deep-learning-approach-with-tensorflow-a...wepik-breaking-down-spam-detection-a-deep-learning-approach-with-tensorflow-a...
wepik-breaking-down-spam-detection-a-deep-learning-approach-with-tensorflow-a...NANDHINIS900805
 
Alligation OR mixture.pptx
Alligation OR mixture.pptxAlligation OR mixture.pptx
Alligation OR mixture.pptxNANDHINIS900805
 
PERMUTATION AND COMBINATION.pptx
PERMUTATION AND COMBINATION.pptxPERMUTATION AND COMBINATION.pptx
PERMUTATION AND COMBINATION.pptxNANDHINIS900805
 

Mehr von NANDHINIS900805 (9)

3b318431-df9f-4a2c-9909-61ecb6af8444.pptx
3b318431-df9f-4a2c-9909-61ecb6af8444.pptx3b318431-df9f-4a2c-9909-61ecb6af8444.pptx
3b318431-df9f-4a2c-9909-61ecb6af8444.pptx
 
wepik-breaking-down-spam-detection-a-deep-learning-approach-with-tensorflow-a...
wepik-breaking-down-spam-detection-a-deep-learning-approach-with-tensorflow-a...wepik-breaking-down-spam-detection-a-deep-learning-approach-with-tensorflow-a...
wepik-breaking-down-spam-detection-a-deep-learning-approach-with-tensorflow-a...
 
Alligation OR mixture.pptx
Alligation OR mixture.pptxAlligation OR mixture.pptx
Alligation OR mixture.pptx
 
AP&GP.pptx
AP&GP.pptxAP&GP.pptx
AP&GP.pptx
 
PERMUTATION AND COMBINATION.pptx
PERMUTATION AND COMBINATION.pptxPERMUTATION AND COMBINATION.pptx
PERMUTATION AND COMBINATION.pptx
 
ARCHITECTURE.pptx
ARCHITECTURE.pptxARCHITECTURE.pptx
ARCHITECTURE.pptx
 
after 10th (1).pptx
after 10th (1).pptxafter 10th (1).pptx
after 10th (1).pptx
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
.n.pptx
.n.pptx.n.pptx
.n.pptx
 

Kürzlich hochgeladen

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Kürzlich hochgeladen (20)

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

nnnn.pptx

  • 1. DISTRIBUTED DATA BASE : Database:- Logical interrelated collection of shared data, along with description of data, physically distributed over a computer network 1
  • 2. 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 the DDB and provides an access mechanism that makes this distribution transparent to the users 2
  • 3. 3
  • 4. A DDBMS mainly classified into two types: ◦ Homogeneous Distributed database management systems ◦ Heterogeneous Distributed database management systems 4
  • 5. ⚫ All sites are interconnected. ⚫ Fragments can be replicated. ⚫ Logically related shared data can be collected. ⚫ Data at each and every site is controlled by the DBMS. ⚫ Each Distributed Database Management System takes part in at least one global application. CHARACTERISTICS 5
  • 6. ⚫ Security ⚫ Keeping track of data ⚫ Replicated data management ⚫ System catalog management ⚫ Distributed transaction management ⚫ Distributed database recovery FUNCTIONALITY: 6
  • 7. ⚫ In a homogeneous distributed database all sites have identical software and are aware of each other and agree to cooperate in processing user requests. ⚫ The homogeneous system is much easier to design and manage ⚫ The operating system used, at each location must be same or compatible. ⚫ The database application (or DBMS) used at each location must be same or compatible. HOMOGENEOUS DDMS:: 7
  • 8. ⚫ In a heterogeneous distributed database different sites may use different schema and software. ⚫ In heterogeneous systems, different nodes may have different hardware & software and data structures at various nodes or locations are also incompatible. ⚫ Different computers and operating systems, database applications or data models may be used at each of the locations HETEROGENEOUS DDBMS: 8
  • 9. ⚫ On heterogeneous system, translations are required to allow communication between different sites (or DBMS). ⚫ The heterogeneous system is often not technically or economically feasible. In this system, a user at one location may be able to read but not update the data at another location. 9
  • 10. ⚫ Less danger of a single-point failure. When one of the computers fails, the workload is picked up by other workstations. ⚫ Data are also distributed at multiple sites. ⚫ The end user is able to access any available copy of the data, and an end user's request is processed by any processor at the data location ADVANTAGES: 10
  • 11. ADVANTAGES(Cont..,) ⚫ Less danger of a single-point failure. When one of the computers fails, the workload is picked up by other workstations. ⚫ Data are also distributed at multiple sites. ⚫ The end user is able to access any available copy of the data, and an end user's request is processed by any processor at the data location 11
  • 12. ⚫ Complexity of management and control. ⚫ Applications must recognize data location, and they must be able to stitch together data from various sites. ⚫ Security. DISADVANTAGES 12
  • 13. ⚫ Increased storage and infrastructure requirements. ⚫ Multiple copies of data has to be at different sites, thus an additional disk storage space will be required. ⚫ The probability of security lapses increases when data are located at multiple sites. DISADVANTAGES(Cont..,) 13
  • 14. LOCKS CONCEPTS: ⚫ A lock is used when multiple users need to access a database concurrently. This prevents data from being corrupted or invalidated when multiple users try to write to the database. ⚫ Any single user can only modify those database records (that is, items in the database) to which they have applied a lock that gives them exclusive access to the record until the lock is released. Locking not only provides exclusivity to write but also prevents (or controls) reading of unfinished modifications. 14
  • 15. ⚫ A parallel database system is to improve performance through parallelization of various operations, such as loading data, building indexes and evaluating queries. ⚫ The distribution is solely done on the bases of performance. ⚫ Parallel databases improve processing and input/output speeds by using multiple CPUs and disks in parallel. ⚫ Many operations are performed simultaneously ⚫ Data may be stored in a distributed fashion. PARALLEL DATABASE 15
  • 16. Change B/W Distributed Database and Parallel Database Characteristics Parallel Database Distributed database Definition It is a software system where multiple processors or machines are used to execute and run queries in parallel. It is a software system that manages multiple logically interrelated databases distributed over a computer network. Geographical Location The nodes are located at geographically same location. The nodes are usually located at geographically different locations. Execution Speed Quicker Slower Overhead Less More 16
  • 17. Node types Compulsorily Homogeneous Need not be homogeneous Performance Lower reliability & availability. Higher reliability & availability. Scope of Expansion Difficult to expand Easier to expand Backup Backup at one site only Backup at multiple sites Consistency Maintaining consistency is easier Maintaining consistency is difficult. 17
  • 18. ⚫ Fragmentation is a process of division or the mapping of the tables based on the columns and rows of data into the smallest unit of data. ⚫ Data that has broken down is still possible to be combined again with the intention to complete the data collection using fragmentation. ⚫ Fragmentation is a database server feature that allows you to control where data is stored at the table level. ⚫ Fragmentation enables you to define groups of rows or index keys within a table. Data Fragmentation 18
  • 19. ⚫ Replication is that we store several copies of a relation or relation fragment. An entire relation can be replicated at one or more sites. ⚫ Similarly, one or more fragments of a relation can be replicated at other sites. ⚫ For example, if a relation R is fragmented into R1,R2, and R3, there might be just one copy of R1, whereas R2 is replicated at two other sites and R3 is replicated at all sites. REPLICATION: 19
  • 20. The motivation for replication is twofold: 1. Increased Availability of Data: If a site that contains a replica goes down, we can find the same data at other sites. Similarly, if local copies of remote relations are available, we are less vulnerable to failure of communication links. 2. Faster Query Evaluation: Queries can execute faster by using a local copy of a relation instead of going to a remote site TWO FOLD REPLICATION 20
  • 21. ⚫ In a distributed DBMS,a given transaction is submitted at some one site, but it can access data at other sites as well. ⚫ When a transaction is submitted at some site, the transaction manager at that site breaks it up into a collection of one or more sub-transactions that execute at different sites, submits them to transaction managers at the other sites, and coordinates their activity. DISTRIBUTED TRANSACTIONS: 21
  • 22. ⚫ Distributed Concurrency Control: Procedure in which required for controlling concurrent execution of operation that takes ⚫ Distributed Recovery: Transaction atomicity must be ensured when a transaction commits, all its actions, across all the sites at which it executes, must persist. Similarly, when a transaction aborts, none of its actions must be allowed to persist 22
  • 23. ⚫ The choice of technique determines which objects are to be locked. ⚫ When locks are obtained and released is determined by the concurrency control protocol. ⚫ We now consider how lock and unlock requests are implemented in a distributed environment. Lock management can be distributed across sites in many ways: 23
  • 24. ⚫ Centralized : A single site is in charge of handling lock and unlock requests for all objects. ⚫ Primary Copy: One copy of each object is designated the primary copy.All requests to lock or unlock a copy of this object are handled by the lock manager at the site where the primary copy is stored, regardless of where the copy itself is stored. ⚫ Fully Distributed : Requests to lock or unlock a copy of an object stored at a site are handled by the lock manager at the site where the copy is stored. 24
  • 25. ⚫ Recovery in a distributed DBMS is more complicated than in a centralized DBMS for the following reasons: ◦ New kinds of failure can arise : Failure of communication links and failure of a remote site at which a sub-transaction is executing. ◦ Either all sub-transactions of a given transaction must commit or none must commit, and this property must be guaranteed despite any combination of site and link failures. This guarantee is achieved using a commit protocol. DISTRIBUTED RECOVERY 25
  • 26. 26