SlideShare a Scribd company logo
1 of 58
Department of Information Technology 1Data base Technologies (ITB4201)
Distributed Databases
Dr. C.V. Suresh Babu
Professor
Department of IT
Hindustan Institute of Science & Technology
Department of Information Technology 2Data base Technologies (ITB4201)
Action Plan
• Concepts
• Component Architecture for a DDBMS
• Distributed Processing
• Parallel DBMS
• Advantages of DDBMSs
• Disadvantages of DDBMSs
• Homogeneous DDBMS
• Heterogeneous DDBMS
• Open Database Access and Interoperability
• Multidatabase System
• Functions of a DDBMS
• Reference Architecture for DDBMS
• Components of a DDBMS
• Fragmentation
• Transparencies in a DDBMS
• Date’s 12 Rules for a DDBMS
• Quiz
Department of Information Technology 3Data base Technologies (ITB4201)
Concepts
Distributed Database.
A logically interrelated collection of shared data (and a description
of this data), physically distributed over a computer network.
Distributed DBMS.
Software system that permits the management of the distributed
database and makes the distribution transparent to users.
Department of Information Technology 4Data base Technologies (ITB4201)
Concepts
• Collection of logically-related shared data.
• Data split into fragments.
• Fragments may be replicated.
• Fragments/replicas allocated to sites.
• Sites linked by a communications network.
• Data at each site is under control of a DBMS.
• DBMSs handle local applications autonomously.
• Each DBMS participates in at least one global application.
Department of Information Technology 5Data base Technologies (ITB4201)
Component Architecture for a DDBMS
GDD
DDBMS
DC
Computer Network
DDBMS
DC LDBMS
LDBMS : Local DBMS component
DC : Data communication component
GDD : Global Data Dictionary
site 1
site 2 DB
GDD
Department of Information Technology 6Data base Technologies (ITB4201)
The Ideal Situation
• A single application should be able to operate transparently on
data that is:
– spread across a variety of different DBMS's
– running on a variety of different machines
– supported by a variety of different operating systems
– connected together by a variety of different communication networks
• The distribution can be geographical or local
Department of Information Technology 7Data base Technologies (ITB4201)
Workable definitionA distributed database system consists of a collection of sites
connected together via some kind of communications network, in
which :
– each site is a database system site in its own right;
– the sites agree to work together, so that a user at any
site can access data anywhere in the network exactly
as if the data were all stored at the user's own site
It is a logical union of real databases
• It can be seen as a kind of partnership among individual local
DBMS's
• Difference with remote access or distributed processing systems
• Temporary assumption: strict homogeneity
Department of Information Technology 8Data base Technologies (ITB4201)
5
Distributed DBMS
Department of Information Technology 9Data base Technologies (ITB4201)
6
Distributed Processing
• A centralized database that can be accessed over a computer
network.
Department of Information Technology 10Data base Technologies (ITB4201)
Parallel DBMS
• A DBMS running across multiple processors and disks designed
to execute operations in parallel, whenever possible, to
improve performance.
• Based on premise that single processor systems can no longer
meet requirements for cost-effective scalability, reliability, and
performance.
• Parallel DBMSs link multiple, smaller machines to achieve same
throughput as single, larger machine, with greater scalability
and reliability.
Department of Information Technology 11Data base Technologies (ITB4201)
Parallel DBMS
• Main architectures for parallel DBMSs are:
– a: Shared memory.
– b: Shared disk.
– c: Shared nothing.
Department of Information Technology 12Data base Technologies (ITB4201)
9
Parallel DBMS
Department of Information Technology 13Data base Technologies (ITB4201)
Advantages of DDBMSs
• Organizational Structure
• Shareability and Local Autonomy
• Improved Availability
• Improved Reliability
• Improved Performance
• Economics
• Modular Growth
Department of Information Technology 14Data base Technologies (ITB4201)
Disadvantages of DDBMSs
• Complexity
• Cost
• Security
• Integrity Control More Difficult
• Lack of Standards
• Lack of Experience
• Database Design More Complex
Department of Information Technology 15Data base Technologies (ITB4201)
Types of DDBMS
• Homogeneous DDBMS
• Heterogeneous DDBMS
Department of Information Technology 16Data base Technologies (ITB4201)
Homogeneous DDBMS
• All sites use same DBMS product.
• Much easier to design and manage.
• Approach provides incremental growth and allows increased
performance.
Department of Information Technology 17Data base Technologies (ITB4201)
Heterogeneous DDBMS
• Sites may run different DBMS products, with possibly different
underlying data models.
• Occurs when sites have implemented their own databases and
integration is considered later.
• Translations required to allow for:
– Different hardware.
– Different DBMS products.
– Different hardware and different DBMS products.
• Typical solution is to use gateways.
Department of Information Technology 18Data base Technologies (ITB4201)
Open Database Access and Interoperability
• Open Group has formed a Working Group to provide specifications that will create
database infrastructure environment where there is:
• Common SQL API that allows client applications to be written that do not need to
know vendor of DBMS they are accessing.
– Common database protocol that enables DBMS from one vendor to communicate directly with
DBMS from another vendor without the need for a gateway.
– A common network protocol that allows communications between different DBMSs.
• Most ambitious goal is to find a way to enable transaction to span DBMSs from
different vendors without use of a gateway.
Department of Information Technology 19Data base Technologies (ITB4201)
Multidatabase System (MDBS)
• DDBMS in which each site maintains complete autonomy.
• DBMS that resides transparently on top of existing database
and file systems and presents a single database to its users.
• Allows users to access and share data without requiring
physical database integration.
• Non-federated MDBS (no local users) and federated MDBS
(FMDBS).
Department of Information Technology 20Data base Technologies (ITB4201)
Functions of a DDBMS
• Expect DDBMS to have at least the functionality of a DBMS.
• Also to have following functionality:
– Extended communication services.
– Extended Data Dictionary.
– Distributed query processing.
– Extended concurrency control.
– Extended recovery services.
Department of Information Technology 21Data base Technologies (ITB4201)
Reference Architecture for DDBMS
• Due to diversity, no universally accepted architecture such as the
ANSI/SPARC 3-level architecture.
• A reference architecture consists of:
– Set of global external schemas.
– Global conceptual schema (GCS).
– Fragmentation schema and allocation schema.
– Set of schemas for each local DBMS conforming to 3-level ANSI/SPARC .
• Some levels may be missing, depending on levels of transparency
supported.
Department of Information Technology 22Data base Technologies (ITB4201)
Reference Architecture for DDBMS
Department of Information Technology 23Data base Technologies (ITB4201)
Reference Architecture for MDBS
• In DDBMS, GCS is union of all local conceptual schemas.
• In FMDBS, GCS is subset of local conceptual schemas (LCS),
consisting of data that each local system agrees to share.
• GCS of tightly coupled system involves integration of either
parts of LCSs or local external schemas.
• FMDBS with no GCS is called loosely coupled.
Department of Information Technology 24Data base Technologies (ITB4201)
Reference Architecture for Tightly-Coupled Federated MDBS
Department of Information Technology 25Data base Technologies (ITB4201)
25
Components of a DDBMS
Department of Information Technology 26Data base Technologies (ITB4201)
Distributed Database Design
• Three key issues:
– Fragmentation.
– Allocation
– Replication
Department of Information Technology 27Data base Technologies (ITB4201)
Distributed Database Design
• Fragmentation
– Relation may be divided into a number of sub-relations, which are
then distributed.
• Allocation
– Each fragment is stored at site with "optimal" distribution.
• Replication
– Copy of fragment may be maintained at several sites.
Department of Information Technology 28Data base Technologies (ITB4201)
Fragmentation
• Definition and allocation of fragments carried out strategically
to achieve:
– Locality of Reference
– Improved Reliability and Availability
– Improved Performance
– Balanced Storage Capacities and Costs
– Minimal Communication Costs.
• Involves analyzing most important applications, based on
quantitative/qualitative information.
Department of Information Technology 29Data base Technologies (ITB4201)
Fragmentation
• Quantitative information may include:
– frequency with which an application is run;
– site from which an application is run;
– performance criteria for transactions and applications.
• Qualitative information may include transactions that are
executed by application, type of access (read or write), and
predicates of read operations.
Department of Information Technology 30Data base Technologies (ITB4201)
Data Allocation
• Four alternative strategies regarding placement of data:
– Centralized
– Partitioned (or Fragmented)
– Complete Replication
– Selective Replication
Department of Information Technology 31Data base Technologies (ITB4201)
Data Allocation
• Centralized
– Consists of single database and DBMS stored at one site with users
distributed across the network.
• Partitioned
– Database partitioned into disjoint fragments, each fragment assigned
to one site.
Department of Information Technology 32Data base Technologies (ITB4201)
Data Allocation
• Complete Replication
– Consists of maintaining complete copy of database at each site.
• Selective Replication
– Combination of partitioning, replication, and centralization.
Department of Information Technology 33Data base Technologies (ITB4201)
33
Comparison of Strategies for Data Distribution
Department of Information Technology 34Data base Technologies (ITB4201)
Why Fragment?
• Usage
– Applications work with views rather than entire relations.
• Efficiency
– Data is stored close to where it is most frequently used.
– Data that is not needed by local applications is not stored.
Department of Information Technology 35Data base Technologies (ITB4201)
Why Fragment?
• Parallelism
– With fragments as unit of distribution, transaction can be divided into
several subqueries that operate on fragments.
• Security
– Data not required by local applications is not stored and so not available to
unauthorized users.
• Disadvantages
– Performance
– Integrity.
Department of Information Technology 36Data base Technologies (ITB4201)
Correctness of Fragmentation
• Three correctness rules:
– Completeness
– Reconstruction
– Disjointness.
Department of Information Technology 37Data base Technologies (ITB4201)
Correctness of Fragmentation
• Completeness
– If relation R is decomposed into fragments R1, R2, ... Rn, each data
item that can be found in R must appear in at least one fragment.
• Reconstruction
• Must be possible to define a relational operation that will
reconstruct R from the fragments.
• Reconstruction for horizontal fragmentation is Union operation
and Join for vertical .
Department of Information Technology 38Data base Technologies (ITB4201)
Correctness of Fragmentation
• Disjointness
• If data item di appears in fragment Ri, then it should not
appear in any other fragment.
• Exception: vertical fragmentation, where primary key
attributes must be repeated to allow reconstruction.
• For horizontal fragmentation, data item is a tuple
• For vertical fragmentation, data item is an attribute.
Department of Information Technology 39Data base Technologies (ITB4201)
Types of Fragmentation
• Four types of fragmentation:
– Horizontal
– Vertical
– Mixed
– Derived.
• Other possibility is no fragmentation:
– If relation is small and not updated frequently, may be better not to
fragment relation.
Department of Information Technology 40Data base Technologies (ITB4201)
41
Horizontal and Vertical Fragmentation
Department of Information Technology 41Data base Technologies (ITB4201)
Mixed Fragmentation
Department of Information Technology 42Data base Technologies (ITB4201)
Horizontal Fragmentation
• This strategy is determined by looking at predicates used by
transactions.
• Involves finding set of minimal (complete and relevant)
predicates.
• Set of predicates is complete, if and only if, any two tuples in
same fragment are referenced with same probability by any
application.
• Predicate is relevant if there is at least one application that
accesses fragments differently.
Department of Information Technology 43Data base Technologies (ITB4201)
Transparencies in a DDBMS
• Distribution Transparency
– Fragmentation Transparency
– Location Transparency
– Replication Transparency
– Local Mapping Transparency
– Naming Transparency
Department of Information Technology 44Data base Technologies (ITB4201)
Transparencies in a DDBMS
• Transaction Transparency
– Concurrency Transparency
– Failure Transparency
• Performance Transparency
• DBMS Transparency
Department of Information Technology 45Data base Technologies (ITB4201)
Distribution Transparency
• Distribution transparency allows user to perceive database as
single, logical entity.
• If DDBMS exhibits distribution transparency, user does not
need to know:
– data is fragmented (fragmentation transparency),
– location of data items (location transparency),
– otherwise call this local mapping transparency.
• With replication transparency, user is unaware of replication of
fragments .
Department of Information Technology 46Data base Technologies (ITB4201)
Naming Transparency
• Each item in a DDB must have a unique name.
• DDBMS must ensure that no two sites create a database object
with same name.
• One solution is to create central name server. However, this
results in:
– loss of some local autonomy;
– central site may become a bottleneck;
– low availability; if the central site fails, remaining sites cannot create
any new objects.
Department of Information Technology 47Data base Technologies (ITB4201)
Transaction Transparency
• Ensures that all distributed transactions maintain distributed
database’s integrity and consistency.
• Distributed transaction accesses data stored at more than one
location.
• Each transaction is divided into number of sub-transactions,
one for each site that has to be accessed.
• DDBMS must ensure the indivisibility of both the global
transaction and each subtransactions.
Department of Information Technology 48Data base Technologies (ITB4201)
Concurrency Transparency
• All transactions must execute independently and be logically
consistent with results obtained if transactions executed one at
a time, in some arbitrary serial order.
• Same fundamental principles as for centralized DBMS.
• DDBMS must ensure both global and local transactions do not
interfere with each other.
• Similarly, DDBMS must ensure consistency of all sub-
transactions of global transaction.
Department of Information Technology 49Data base Technologies (ITB4201)
Concurrency Transparency
• Replication makes concurrency more complex.
• If a copy of a replicated data item is updated, update must be
propagated to all copies.
• Could propagate changes as part of original transaction,
making it an atomic operation.
• However, if one site holding copy is not reachable, then
transaction is delayed until site is reachable.
Department of Information Technology 50Data base Technologies (ITB4201)
Concurrency Transparency
• Could limit update propagation to only those sites currently
available. Remaining sites updated when they become
available again.
• Could allow updates to copies to happen asynchronously,
sometime after the original update. Delay in regaining
consistency may range from a few seconds to several hours.
Department of Information Technology 51Data base Technologies (ITB4201)
Failure Transparency
• DDBMS must ensure atomicity and durability of global
transaction.
• Means ensuring that sub-transactions of global transaction
either all commit or all abort.
• Thus, DDBMS must synchronize global transaction to ensure
that all sub-transactions have completed successfully before
recording a final COMMIT for global transaction.
• Must do this in presence of site and network failures.
Department of Information Technology 52Data base Technologies (ITB4201)
Performance Transparency
• DDBMS must perform as if it were a centralized DBMS.
– DDBMS should not suffer any performance degradation due to
distributed architecture.
– DDBMS should determine most cost-effective strategy to execute a
request.
Department of Information Technology 53Data base Technologies (ITB4201)
Performance Transparency
• Distributed Query Processor (DQP) maps data request into
ordered sequence of operations on local databases.
• Must consider fragmentation, replication, and allocation
schemas.
• DQP has to decide:
– which fragment to access;
– which copy of a fragment to use;
– which location to use.
Department of Information Technology 54Data base Technologies (ITB4201)
Performance Transparency
• DQP produces execution strategy optimized with respect to
some cost function.
• Typically, costs associated with a distributed request include:
– I/O cost;
– CPU cost;
– communication cost.
Department of Information Technology 55Data base Technologies (ITB4201)
Date’s 12 Rules for a DDBMS
• 0. Fundamental Principle
– To the user, a distributed system should look exactly like a non-
distributed system.
• 1. Local Autonomy
• 2. No Reliance on a Central Site
• 3. Continuous Operation
• 4. Location Independence
• 5. Fragmentation Independence
• 6. Replication Independence
Department of Information Technology 56Data base Technologies (ITB4201)
Date’s 12 Rules for a DDBMS
• 7. Distributed Query Processing
• 8. Distributed Transaction Processing
• 9. Hardware Independence
• 10. Operating System Independence
• 11. Network Independence
• 12. Database Independence
• Last four rules are ideals.
Department of Information Technology 57Data base Technologies (ITB4201)
Test Yourself
1. A distributed database has which of the following advantages over a centralized database?
A. Software cost
B. Software complexity
C. Slow Response
D. Modular growth
2. A autonomous homogenous environment is which of the following?
A. The same DBMS is at each node and each DBMS works independently.
B. The same DBMS is at each node and a central DBMS coordinates database access.
C. A different DBMS is at each node and each DBMS works independently.
D. A different DBMS is at each node and a central DBMS coordinates database access.
3. A transaction manager is which of the following?
A. Maintains a log of transactions
B. Maintains before and after database images
C. Maintains appropriate concurrency control
D. All of the above
4. Location transparency allows for which of the following?
A. Users to treat the data as if it is at one location
B. Programmers to treat the data as if it is at one location
C. Managers to treat the data as if it is at one location
D. All of the above
5. A heterogeneous distributed database is which of the following?
A. The same DBMS is used at each location and data are not distributed across all nodes.
B. The same DBMS is used at each location and data are distributed across all nodes.
C. A different DBMS is used at each location and data are not distributed across all nodes.
D. A different DBMS is used at each location and data are distributed across all nodes.
Department of Information Technology 58Data base Technologies (ITB4201)
1. A distributed database has which of the following advantages over a centralized database?
A. Software cost
B. Software complexity
C. Slow Response
D. Modular growth
2. A autonomous homogenous environment is which of the following?
A. The same DBMS is at each node and each DBMS works independently.
B. The same DBMS is at each node and a central DBMS coordinates database access.
C. A different DBMS is at each node and each DBMS works independently.
D. A different DBMS is at each node and a central DBMS coordinates database access.
3. A transaction manager is which of the following?
A. Maintains a log of transactions
B. Maintains before and after database images
C. Maintains appropriate concurrency control
D. All of the above
4. Location transparency allows for which of the following?
A. Users to treat the data as if it is at one location
B. Programmers to treat the data as if it is at one location
C. Managers to treat the data as if it is at one location
D. All of the above
5. A heterogeneous distributed database is which of the following?
A. The same DBMS is used at each location and data are not distributed across all nodes.
B. The same DBMS is used at each location and data are distributed across all nodes.
C. A different DBMS is used at each location and data are not distributed across all nodes.
D. A different DBMS is used at each location and data are distributed across all nodes.
Answers

More Related Content

What's hot (20)

Database File operation
Database File operationDatabase File operation
Database File operation
 
Data models
Data modelsData models
Data models
 
Overview of dbms
Overview of dbmsOverview of dbms
Overview of dbms
 
DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...
DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...
DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...
 
Data models
Data modelsData models
Data models
 
Lecture 1&2(rdbms-ii)
Lecture 1&2(rdbms-ii)Lecture 1&2(rdbms-ii)
Lecture 1&2(rdbms-ii)
 
ch1
ch1ch1
ch1
 
Dbms
DbmsDbms
Dbms
 
Indexing
IndexingIndexing
Indexing
 
Database management system
Database management systemDatabase management system
Database management system
 
Unit01 dbms
Unit01 dbmsUnit01 dbms
Unit01 dbms
 
Cs2305 programming paradigms lecturer notes
Cs2305   programming paradigms lecturer notesCs2305   programming paradigms lecturer notes
Cs2305 programming paradigms lecturer notes
 
Introduction to Database Management Systems
Introduction to Database Management Systems Introduction to Database Management Systems
Introduction to Database Management Systems
 
D01 etl
D01 etlD01 etl
D01 etl
 
Introduction To Database Management System
Introduction To Database Management SystemIntroduction To Database Management System
Introduction To Database Management System
 
RDBMS
RDBMSRDBMS
RDBMS
 
Importance of Database in Library
Importance of Database in LibraryImportance of Database in Library
Importance of Database in Library
 
VTU 7TH SEM CSE DATA WAREHOUSING AND DATA MINING SOLVED PAPERS OF DEC2013 JUN...
VTU 7TH SEM CSE DATA WAREHOUSING AND DATA MINING SOLVED PAPERS OF DEC2013 JUN...VTU 7TH SEM CSE DATA WAREHOUSING AND DATA MINING SOLVED PAPERS OF DEC2013 JUN...
VTU 7TH SEM CSE DATA WAREHOUSING AND DATA MINING SOLVED PAPERS OF DEC2013 JUN...
 
Current trends in DBMS
Current trends in DBMSCurrent trends in DBMS
Current trends in DBMS
 
Research Article
Research ArticleResearch Article
Research Article
 

Similar to Distributed databases

Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed databaseHoneySah
 
Distributed database management system
Distributed database management systemDistributed database management system
Distributed database management systemVinay D. Patel
 
1-introduction to DB.pdf
1-introduction to DB.pdf1-introduction to DB.pdf
1-introduction to DB.pdfMuniraALmogren
 
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
 
CP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implementCP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implementflyinimohamed
 
Adbms 23 distributed database design
Adbms 23 distributed database designAdbms 23 distributed database design
Adbms 23 distributed database designVaibhav Khanna
 
Distributed database management systems
Distributed database management systemsDistributed database management systems
Distributed database management systemsDhani Ahmad
 
9780538469685 ppt ch12 1er exa
9780538469685 ppt ch12 1er exa9780538469685 ppt ch12 1er exa
9780538469685 ppt ch12 1er exacarldevsco63
 
Distributed databases and dbm ss
Distributed databases and dbm ssDistributed databases and dbm ss
Distributed databases and dbm ssMohd Arif
 
Overview of Databases and Data Modelling-1.pdf
Overview of Databases and Data Modelling-1.pdfOverview of Databases and Data Modelling-1.pdf
Overview of Databases and Data Modelling-1.pdfChristalin Nelson
 
Database SystemsDesign, Implementation, and Management
Database SystemsDesign, Implementation, and ManagementDatabase SystemsDesign, Implementation, and Management
Database SystemsDesign, Implementation, and ManagementOllieShoresna
 

Similar to Distributed databases (20)

Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed database
 
Distributed database management system
Distributed database management systemDistributed database management system
Distributed database management system
 
1-introduction to DB.pdf
1-introduction to DB.pdf1-introduction to DB.pdf
1-introduction to DB.pdf
 
02 - DatabaseConcepts.pdf
02 - DatabaseConcepts.pdf02 - DatabaseConcepts.pdf
02 - DatabaseConcepts.pdf
 
DDBMS
DDBMSDDBMS
DDBMS
 
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
 
Dbms Useful PPT
Dbms Useful PPTDbms Useful PPT
Dbms Useful PPT
 
CP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implementCP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implement
 
Distributed dbms (ddbms)
Distributed dbms (ddbms)Distributed dbms (ddbms)
Distributed dbms (ddbms)
 
Adbms 23 distributed database design
Adbms 23 distributed database designAdbms 23 distributed database design
Adbms 23 distributed database design
 
Distributed database management systems
Distributed database management systemsDistributed database management systems
Distributed database management systems
 
ICT L5+.pptx
ICT L5+.pptxICT L5+.pptx
ICT L5+.pptx
 
9780538469685 ppt ch12 1er exa
9780538469685 ppt ch12 1er exa9780538469685 ppt ch12 1er exa
9780538469685 ppt ch12 1er exa
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
Distributed databases and dbm ss
Distributed databases and dbm ssDistributed databases and dbm ss
Distributed databases and dbm ss
 
Overview of Databases and Data Modelling-1.pdf
Overview of Databases and Data Modelling-1.pdfOverview of Databases and Data Modelling-1.pdf
Overview of Databases and Data Modelling-1.pdf
 
Database SystemsDesign, Implementation, and Management
Database SystemsDesign, Implementation, and ManagementDatabase SystemsDesign, Implementation, and Management
Database SystemsDesign, Implementation, and Management
 
2 ddb architecture
2 ddb architecture2 ddb architecture
2 ddb architecture
 
distributed dbms
distributed dbmsdistributed dbms
distributed dbms
 
INT 1010 07-5.pdf
INT 1010 07-5.pdfINT 1010 07-5.pdf
INT 1010 07-5.pdf
 

More from Dr. C.V. Suresh Babu (20)

Data analytics with R
Data analytics with RData analytics with R
Data analytics with R
 
Association rules
Association rulesAssociation rules
Association rules
 
Clustering
ClusteringClustering
Clustering
 
Classification
ClassificationClassification
Classification
 
Blue property assumptions.
Blue property assumptions.Blue property assumptions.
Blue property assumptions.
 
Introduction to regression
Introduction to regressionIntroduction to regression
Introduction to regression
 
DART
DARTDART
DART
 
Mycin
MycinMycin
Mycin
 
Expert systems
Expert systemsExpert systems
Expert systems
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
 
Bayes network
Bayes networkBayes network
Bayes network
 
Bayes' theorem
Bayes' theoremBayes' theorem
Bayes' theorem
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
Rule based system
Rule based systemRule based system
Rule based system
 
Formal Logic in AI
Formal Logic in AIFormal Logic in AI
Formal Logic in AI
 
Production based system
Production based systemProduction based system
Production based system
 
Game playing in AI
Game playing in AIGame playing in AI
Game playing in AI
 
Diagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AIDiagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AI
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 

Recently uploaded

Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
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
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 

Recently uploaded (20)

Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
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
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

Distributed databases

  • 1. Department of Information Technology 1Data base Technologies (ITB4201) Distributed Databases Dr. C.V. Suresh Babu Professor Department of IT Hindustan Institute of Science & Technology
  • 2. Department of Information Technology 2Data base Technologies (ITB4201) Action Plan • Concepts • Component Architecture for a DDBMS • Distributed Processing • Parallel DBMS • Advantages of DDBMSs • Disadvantages of DDBMSs • Homogeneous DDBMS • Heterogeneous DDBMS • Open Database Access and Interoperability • Multidatabase System • Functions of a DDBMS • Reference Architecture for DDBMS • Components of a DDBMS • Fragmentation • Transparencies in a DDBMS • Date’s 12 Rules for a DDBMS • Quiz
  • 3. Department of Information Technology 3Data base Technologies (ITB4201) Concepts Distributed Database. A logically interrelated collection of shared data (and a description of this data), physically distributed over a computer network. Distributed DBMS. Software system that permits the management of the distributed database and makes the distribution transparent to users.
  • 4. Department of Information Technology 4Data base Technologies (ITB4201) Concepts • Collection of logically-related shared data. • Data split into fragments. • Fragments may be replicated. • Fragments/replicas allocated to sites. • Sites linked by a communications network. • Data at each site is under control of a DBMS. • DBMSs handle local applications autonomously. • Each DBMS participates in at least one global application.
  • 5. Department of Information Technology 5Data base Technologies (ITB4201) Component Architecture for a DDBMS GDD DDBMS DC Computer Network DDBMS DC LDBMS LDBMS : Local DBMS component DC : Data communication component GDD : Global Data Dictionary site 1 site 2 DB GDD
  • 6. Department of Information Technology 6Data base Technologies (ITB4201) The Ideal Situation • A single application should be able to operate transparently on data that is: – spread across a variety of different DBMS's – running on a variety of different machines – supported by a variety of different operating systems – connected together by a variety of different communication networks • The distribution can be geographical or local
  • 7. Department of Information Technology 7Data base Technologies (ITB4201) Workable definitionA distributed database system consists of a collection of sites connected together via some kind of communications network, in which : – each site is a database system site in its own right; – the sites agree to work together, so that a user at any site can access data anywhere in the network exactly as if the data were all stored at the user's own site It is a logical union of real databases • It can be seen as a kind of partnership among individual local DBMS's • Difference with remote access or distributed processing systems • Temporary assumption: strict homogeneity
  • 8. Department of Information Technology 8Data base Technologies (ITB4201) 5 Distributed DBMS
  • 9. Department of Information Technology 9Data base Technologies (ITB4201) 6 Distributed Processing • A centralized database that can be accessed over a computer network.
  • 10. Department of Information Technology 10Data base Technologies (ITB4201) Parallel DBMS • A DBMS running across multiple processors and disks designed to execute operations in parallel, whenever possible, to improve performance. • Based on premise that single processor systems can no longer meet requirements for cost-effective scalability, reliability, and performance. • Parallel DBMSs link multiple, smaller machines to achieve same throughput as single, larger machine, with greater scalability and reliability.
  • 11. Department of Information Technology 11Data base Technologies (ITB4201) Parallel DBMS • Main architectures for parallel DBMSs are: – a: Shared memory. – b: Shared disk. – c: Shared nothing.
  • 12. Department of Information Technology 12Data base Technologies (ITB4201) 9 Parallel DBMS
  • 13. Department of Information Technology 13Data base Technologies (ITB4201) Advantages of DDBMSs • Organizational Structure • Shareability and Local Autonomy • Improved Availability • Improved Reliability • Improved Performance • Economics • Modular Growth
  • 14. Department of Information Technology 14Data base Technologies (ITB4201) Disadvantages of DDBMSs • Complexity • Cost • Security • Integrity Control More Difficult • Lack of Standards • Lack of Experience • Database Design More Complex
  • 15. Department of Information Technology 15Data base Technologies (ITB4201) Types of DDBMS • Homogeneous DDBMS • Heterogeneous DDBMS
  • 16. Department of Information Technology 16Data base Technologies (ITB4201) Homogeneous DDBMS • All sites use same DBMS product. • Much easier to design and manage. • Approach provides incremental growth and allows increased performance.
  • 17. Department of Information Technology 17Data base Technologies (ITB4201) Heterogeneous DDBMS • Sites may run different DBMS products, with possibly different underlying data models. • Occurs when sites have implemented their own databases and integration is considered later. • Translations required to allow for: – Different hardware. – Different DBMS products. – Different hardware and different DBMS products. • Typical solution is to use gateways.
  • 18. Department of Information Technology 18Data base Technologies (ITB4201) Open Database Access and Interoperability • Open Group has formed a Working Group to provide specifications that will create database infrastructure environment where there is: • Common SQL API that allows client applications to be written that do not need to know vendor of DBMS they are accessing. – Common database protocol that enables DBMS from one vendor to communicate directly with DBMS from another vendor without the need for a gateway. – A common network protocol that allows communications between different DBMSs. • Most ambitious goal is to find a way to enable transaction to span DBMSs from different vendors without use of a gateway.
  • 19. Department of Information Technology 19Data base Technologies (ITB4201) Multidatabase System (MDBS) • DDBMS in which each site maintains complete autonomy. • DBMS that resides transparently on top of existing database and file systems and presents a single database to its users. • Allows users to access and share data without requiring physical database integration. • Non-federated MDBS (no local users) and federated MDBS (FMDBS).
  • 20. Department of Information Technology 20Data base Technologies (ITB4201) Functions of a DDBMS • Expect DDBMS to have at least the functionality of a DBMS. • Also to have following functionality: – Extended communication services. – Extended Data Dictionary. – Distributed query processing. – Extended concurrency control. – Extended recovery services.
  • 21. Department of Information Technology 21Data base Technologies (ITB4201) Reference Architecture for DDBMS • Due to diversity, no universally accepted architecture such as the ANSI/SPARC 3-level architecture. • A reference architecture consists of: – Set of global external schemas. – Global conceptual schema (GCS). – Fragmentation schema and allocation schema. – Set of schemas for each local DBMS conforming to 3-level ANSI/SPARC . • Some levels may be missing, depending on levels of transparency supported.
  • 22. Department of Information Technology 22Data base Technologies (ITB4201) Reference Architecture for DDBMS
  • 23. Department of Information Technology 23Data base Technologies (ITB4201) Reference Architecture for MDBS • In DDBMS, GCS is union of all local conceptual schemas. • In FMDBS, GCS is subset of local conceptual schemas (LCS), consisting of data that each local system agrees to share. • GCS of tightly coupled system involves integration of either parts of LCSs or local external schemas. • FMDBS with no GCS is called loosely coupled.
  • 24. Department of Information Technology 24Data base Technologies (ITB4201) Reference Architecture for Tightly-Coupled Federated MDBS
  • 25. Department of Information Technology 25Data base Technologies (ITB4201) 25 Components of a DDBMS
  • 26. Department of Information Technology 26Data base Technologies (ITB4201) Distributed Database Design • Three key issues: – Fragmentation. – Allocation – Replication
  • 27. Department of Information Technology 27Data base Technologies (ITB4201) Distributed Database Design • Fragmentation – Relation may be divided into a number of sub-relations, which are then distributed. • Allocation – Each fragment is stored at site with "optimal" distribution. • Replication – Copy of fragment may be maintained at several sites.
  • 28. Department of Information Technology 28Data base Technologies (ITB4201) Fragmentation • Definition and allocation of fragments carried out strategically to achieve: – Locality of Reference – Improved Reliability and Availability – Improved Performance – Balanced Storage Capacities and Costs – Minimal Communication Costs. • Involves analyzing most important applications, based on quantitative/qualitative information.
  • 29. Department of Information Technology 29Data base Technologies (ITB4201) Fragmentation • Quantitative information may include: – frequency with which an application is run; – site from which an application is run; – performance criteria for transactions and applications. • Qualitative information may include transactions that are executed by application, type of access (read or write), and predicates of read operations.
  • 30. Department of Information Technology 30Data base Technologies (ITB4201) Data Allocation • Four alternative strategies regarding placement of data: – Centralized – Partitioned (or Fragmented) – Complete Replication – Selective Replication
  • 31. Department of Information Technology 31Data base Technologies (ITB4201) Data Allocation • Centralized – Consists of single database and DBMS stored at one site with users distributed across the network. • Partitioned – Database partitioned into disjoint fragments, each fragment assigned to one site.
  • 32. Department of Information Technology 32Data base Technologies (ITB4201) Data Allocation • Complete Replication – Consists of maintaining complete copy of database at each site. • Selective Replication – Combination of partitioning, replication, and centralization.
  • 33. Department of Information Technology 33Data base Technologies (ITB4201) 33 Comparison of Strategies for Data Distribution
  • 34. Department of Information Technology 34Data base Technologies (ITB4201) Why Fragment? • Usage – Applications work with views rather than entire relations. • Efficiency – Data is stored close to where it is most frequently used. – Data that is not needed by local applications is not stored.
  • 35. Department of Information Technology 35Data base Technologies (ITB4201) Why Fragment? • Parallelism – With fragments as unit of distribution, transaction can be divided into several subqueries that operate on fragments. • Security – Data not required by local applications is not stored and so not available to unauthorized users. • Disadvantages – Performance – Integrity.
  • 36. Department of Information Technology 36Data base Technologies (ITB4201) Correctness of Fragmentation • Three correctness rules: – Completeness – Reconstruction – Disjointness.
  • 37. Department of Information Technology 37Data base Technologies (ITB4201) Correctness of Fragmentation • Completeness – If relation R is decomposed into fragments R1, R2, ... Rn, each data item that can be found in R must appear in at least one fragment. • Reconstruction • Must be possible to define a relational operation that will reconstruct R from the fragments. • Reconstruction for horizontal fragmentation is Union operation and Join for vertical .
  • 38. Department of Information Technology 38Data base Technologies (ITB4201) Correctness of Fragmentation • Disjointness • If data item di appears in fragment Ri, then it should not appear in any other fragment. • Exception: vertical fragmentation, where primary key attributes must be repeated to allow reconstruction. • For horizontal fragmentation, data item is a tuple • For vertical fragmentation, data item is an attribute.
  • 39. Department of Information Technology 39Data base Technologies (ITB4201) Types of Fragmentation • Four types of fragmentation: – Horizontal – Vertical – Mixed – Derived. • Other possibility is no fragmentation: – If relation is small and not updated frequently, may be better not to fragment relation.
  • 40. Department of Information Technology 40Data base Technologies (ITB4201) 41 Horizontal and Vertical Fragmentation
  • 41. Department of Information Technology 41Data base Technologies (ITB4201) Mixed Fragmentation
  • 42. Department of Information Technology 42Data base Technologies (ITB4201) Horizontal Fragmentation • This strategy is determined by looking at predicates used by transactions. • Involves finding set of minimal (complete and relevant) predicates. • Set of predicates is complete, if and only if, any two tuples in same fragment are referenced with same probability by any application. • Predicate is relevant if there is at least one application that accesses fragments differently.
  • 43. Department of Information Technology 43Data base Technologies (ITB4201) Transparencies in a DDBMS • Distribution Transparency – Fragmentation Transparency – Location Transparency – Replication Transparency – Local Mapping Transparency – Naming Transparency
  • 44. Department of Information Technology 44Data base Technologies (ITB4201) Transparencies in a DDBMS • Transaction Transparency – Concurrency Transparency – Failure Transparency • Performance Transparency • DBMS Transparency
  • 45. Department of Information Technology 45Data base Technologies (ITB4201) Distribution Transparency • Distribution transparency allows user to perceive database as single, logical entity. • If DDBMS exhibits distribution transparency, user does not need to know: – data is fragmented (fragmentation transparency), – location of data items (location transparency), – otherwise call this local mapping transparency. • With replication transparency, user is unaware of replication of fragments .
  • 46. Department of Information Technology 46Data base Technologies (ITB4201) Naming Transparency • Each item in a DDB must have a unique name. • DDBMS must ensure that no two sites create a database object with same name. • One solution is to create central name server. However, this results in: – loss of some local autonomy; – central site may become a bottleneck; – low availability; if the central site fails, remaining sites cannot create any new objects.
  • 47. Department of Information Technology 47Data base Technologies (ITB4201) Transaction Transparency • Ensures that all distributed transactions maintain distributed database’s integrity and consistency. • Distributed transaction accesses data stored at more than one location. • Each transaction is divided into number of sub-transactions, one for each site that has to be accessed. • DDBMS must ensure the indivisibility of both the global transaction and each subtransactions.
  • 48. Department of Information Technology 48Data base Technologies (ITB4201) Concurrency Transparency • All transactions must execute independently and be logically consistent with results obtained if transactions executed one at a time, in some arbitrary serial order. • Same fundamental principles as for centralized DBMS. • DDBMS must ensure both global and local transactions do not interfere with each other. • Similarly, DDBMS must ensure consistency of all sub- transactions of global transaction.
  • 49. Department of Information Technology 49Data base Technologies (ITB4201) Concurrency Transparency • Replication makes concurrency more complex. • If a copy of a replicated data item is updated, update must be propagated to all copies. • Could propagate changes as part of original transaction, making it an atomic operation. • However, if one site holding copy is not reachable, then transaction is delayed until site is reachable.
  • 50. Department of Information Technology 50Data base Technologies (ITB4201) Concurrency Transparency • Could limit update propagation to only those sites currently available. Remaining sites updated when they become available again. • Could allow updates to copies to happen asynchronously, sometime after the original update. Delay in regaining consistency may range from a few seconds to several hours.
  • 51. Department of Information Technology 51Data base Technologies (ITB4201) Failure Transparency • DDBMS must ensure atomicity and durability of global transaction. • Means ensuring that sub-transactions of global transaction either all commit or all abort. • Thus, DDBMS must synchronize global transaction to ensure that all sub-transactions have completed successfully before recording a final COMMIT for global transaction. • Must do this in presence of site and network failures.
  • 52. Department of Information Technology 52Data base Technologies (ITB4201) Performance Transparency • DDBMS must perform as if it were a centralized DBMS. – DDBMS should not suffer any performance degradation due to distributed architecture. – DDBMS should determine most cost-effective strategy to execute a request.
  • 53. Department of Information Technology 53Data base Technologies (ITB4201) Performance Transparency • Distributed Query Processor (DQP) maps data request into ordered sequence of operations on local databases. • Must consider fragmentation, replication, and allocation schemas. • DQP has to decide: – which fragment to access; – which copy of a fragment to use; – which location to use.
  • 54. Department of Information Technology 54Data base Technologies (ITB4201) Performance Transparency • DQP produces execution strategy optimized with respect to some cost function. • Typically, costs associated with a distributed request include: – I/O cost; – CPU cost; – communication cost.
  • 55. Department of Information Technology 55Data base Technologies (ITB4201) Date’s 12 Rules for a DDBMS • 0. Fundamental Principle – To the user, a distributed system should look exactly like a non- distributed system. • 1. Local Autonomy • 2. No Reliance on a Central Site • 3. Continuous Operation • 4. Location Independence • 5. Fragmentation Independence • 6. Replication Independence
  • 56. Department of Information Technology 56Data base Technologies (ITB4201) Date’s 12 Rules for a DDBMS • 7. Distributed Query Processing • 8. Distributed Transaction Processing • 9. Hardware Independence • 10. Operating System Independence • 11. Network Independence • 12. Database Independence • Last four rules are ideals.
  • 57. Department of Information Technology 57Data base Technologies (ITB4201) Test Yourself 1. A distributed database has which of the following advantages over a centralized database? A. Software cost B. Software complexity C. Slow Response D. Modular growth 2. A autonomous homogenous environment is which of the following? A. The same DBMS is at each node and each DBMS works independently. B. The same DBMS is at each node and a central DBMS coordinates database access. C. A different DBMS is at each node and each DBMS works independently. D. A different DBMS is at each node and a central DBMS coordinates database access. 3. A transaction manager is which of the following? A. Maintains a log of transactions B. Maintains before and after database images C. Maintains appropriate concurrency control D. All of the above 4. Location transparency allows for which of the following? A. Users to treat the data as if it is at one location B. Programmers to treat the data as if it is at one location C. Managers to treat the data as if it is at one location D. All of the above 5. A heterogeneous distributed database is which of the following? A. The same DBMS is used at each location and data are not distributed across all nodes. B. The same DBMS is used at each location and data are distributed across all nodes. C. A different DBMS is used at each location and data are not distributed across all nodes. D. A different DBMS is used at each location and data are distributed across all nodes.
  • 58. Department of Information Technology 58Data base Technologies (ITB4201) 1. A distributed database has which of the following advantages over a centralized database? A. Software cost B. Software complexity C. Slow Response D. Modular growth 2. A autonomous homogenous environment is which of the following? A. The same DBMS is at each node and each DBMS works independently. B. The same DBMS is at each node and a central DBMS coordinates database access. C. A different DBMS is at each node and each DBMS works independently. D. A different DBMS is at each node and a central DBMS coordinates database access. 3. A transaction manager is which of the following? A. Maintains a log of transactions B. Maintains before and after database images C. Maintains appropriate concurrency control D. All of the above 4. Location transparency allows for which of the following? A. Users to treat the data as if it is at one location B. Programmers to treat the data as if it is at one location C. Managers to treat the data as if it is at one location D. All of the above 5. A heterogeneous distributed database is which of the following? A. The same DBMS is used at each location and data are not distributed across all nodes. B. The same DBMS is used at each location and data are distributed across all nodes. C. A different DBMS is used at each location and data are not distributed across all nodes. D. A different DBMS is used at each location and data are distributed across all nodes. Answers