SlideShare a Scribd company logo
1 of 35
Download to read offline
TYPES OF DD:
1. HOMOGENEOUS DISTRIBUTED DATABASE
2. HETEROGENEOUS DISTRIBUTED DATABASE
1. All site use same database mgt system product.
2. All site have identical software.
3. They are aware of each other and agree to cooperate in processing
user request
4. It appears as single system to user
5. Easy to design and manage
6. Following condition must be satisfied for homogeneous database
7. OS used at each location must be same or compatible
8. Database application used at each location must be same or
compatible
9. Data structure used at each location must be same
1. Hetero means the ability to accept different form(types)
of database
2. Can use the different schemas
3. System may be composed of relational, networked,
hierarchical and object oriented DBMs
Difference between Distribute homogeneous database
system and Heterogeneous distributed database system
Homogeneous Database
In a homogeneous distributed database, all the sites use identical DBMS and operating systems. Its properties
are −
• The sites use very similar software.
• The sites use identical DBMS or DBMS from the same vendor.
• Each site is aware of all other sites and cooperates with other sites to process user requests.
• The database is accessed through a single interface as if it is a single database.
There are two types of homogeneous distributed database −
• Autonomous − Each database is independent that functions on its own. They are integrated by a controlling
application and use message passing to share data updates.
• Non-autonomous − Data is distributed across the homogeneous nodes and a central or master DBMS
co-ordinates data updates across the sites.
Heterogeneous Database
In a heterogeneous distributed database, different sites have different operating systems, DBMS products and data
models.
Its properties are −
• Different sites use dissimilar schemas and software.
• The system may be composed of a variety of DBMSs like relational, network, hierarchical or object oriented.
• Query processing is complex due to dissimilar schemas.
• Transaction processing is complex due to dissimilar software.
• A site may not be aware of other sites and so there is limited co-operation in processing user requests.
There are two types of heterogeneous distributed database −
• Federated − The heterogeneous database systems are independent in nature and integrated together so that they
function as a single database system.
• Un-federated − The database systems employ a central coordinating module through which the databases are
accessed.
Distributed DBMS Architectures
DDBMS architectures are generally developed depending on three parameters −
● Distribution − It states the physical distribution of data across the different sites.
● Autonomy − It indicates the distribution of control of the database system and the degree to
which each constituent DBMS can operate independently.
● Heterogeneity − It refers to the uniformity or dissimilarity of the data models, system
components and databases.
Architectural Models
Some of the common architectural models are −
● Client - Server Architecture for DDBMS
● Peer - to - Peer Architecture for DDBMS
● Multi - DBMS Architecture
Client - Server Architecture for DDBMS
This is a two-level architecture where the functionality is divided into servers and clients. The server
functions primarily encompass data management, query processing, optimization and transaction
management. Client functions include mainly user interface. However, they have some functions like
consistency checking and transaction management.
The two different client - server architecture are −
● Single Server Multiple Client
● Multiple Server Multiple Client (shown in the following diagram)
Peer- to-Peer Architecture for DDBMS
In these systems, each peer acts both as a client and a server for imparting database services. The peers share their resource
with other peers and co-ordinate their activities.
This architecture generally has four levels of schemas −
● Global Conceptual Schema − Depicts the global logical view of data.
● Local Conceptual Schema − Depicts logical data organization at each site.
● Local Internal Schema − Depicts physical data organization at each site.
● External Schema − Depicts user view of data.
Multi - DBMS Architectures
This is an integrated database system formed by a collection of two or more autonomous database systems.
Multi-DBMS can be expressed through six levels of schemas −
● Multi-database View Level − Depicts multiple user views comprising of subsets of the integrated distributed database.
● Multi-database Conceptual Level − Depicts integrated multi-database that comprises of global logical multi-database
structure definitions.
● Multi-database Internal Level − Depicts the data distribution across different sites and multi-database to local data
mapping.
● Local database View Level − Depicts public view of local data.
● Local database Conceptual Level − Depicts local data organization at each site.
● Local database Internal Level − Depicts physical data organization at each site.
There are two design alternatives for multi-DBMS −
● Model with multi-database conceptual level.
● Model without multi-database conceptual level.
Design issues of distributed system –
1. Complex nature :
Distributed Databases are a network of many computers present at different locations and they provide an outstanding level of performance,
availability, and of course reliability. Therefore, the nature of Distributed DBMS is comparatively more complex than a centralized DBMS. Complex
software is required for Distributed DBMS. Also, It ensures no data replication, which adds even more complexity in its nature.
2. Overall Cost :
Various costs such as maintenance cost, procurement cost, hardware cost, network/communication costs, labor costs, etc, adds up to the overall
cost and make it costlier than normal DBMS.
3. Security issues:
In a Distributed Database, along with maintaining no data redundancy, the security of data as well as a network is a prime concern. A network can be
easily attacked for data theft and misuse.
4. Integrity Control:
In a vast Distributed database system, maintaining data consistency is important. All changes made to data at one site must be reflected on all the
sites. The communication and processing cost is high in Distributed DBMS in order to enforce the integrity of data.
5. Lacking Standards:
Although it provides effective communication and data sharing, still there are no standard rules and protocols to convert a centralized DBMS to a
large Distributed DBMS. Lack of standards decreases the potential of Distributed DBMS.
6. Lack of Professional Support:
Due to a lack of adequate communication standards, it is not possible to link different equipment produced by different vendors into a smoothly
functioning network. Thu several good resources may not be available to the users of the network.
7. Data design complex:
Fragmentation:
Fragmentation is a process of dividing the whole or full database into various subtables or sub relations so that
data can be stored in different systems. The small pieces of sub relations or subtables are called fragments.
These fragments are called logical data units and are stored at various sites. It must be made sure that the
fragments are such that they can be used to reconstruct the original relation (i.e, there isn’t any loss of data).
In the fragmentation process, let’s say, If a table T is fragmented and is divided into a number of fragments say T1,
T2, T3….TN. The fragments contain sufficient information to allow the restoration of the original table T. This
restoration can be done by the use of UNION or JOIN operation on various fragments. This process is called data
fragmentation. All of these fragments are independent which means these fragments can not be derived from
others. The users needn’t be logically concerned about fragmentation which means they should not concerned
that the data is fragmented and this is called fragmentation Independence or we can say fragmentation
transparency.
Advantages :
● As the data is stored close to the usage site, the efficiency of the database system will increase
● Local query optimization methods are sufficient for some queries as the data is available locally
● In order to maintain the security and privacy of the database system, fragmentation is advantageous
Disadvantages :
● Access speeds may be very high if data from different fragments are needed
● If we are using recursive fragmentation, then it will be very expensive
We have three methods for data fragmenting of a table:
● Horizontal fragmentation
● Vertical fragmentation
● Mixed or Hybrid fragmentation
Horizontal fragmentation –
Horizontal fragmentation refers to the process of dividing a table horizontally by assigning each row or (a group of rows) of
relation to one or more fragments. These fragments are then be assigned to different sides in the distributed system. Some
of the rows or tuples of the table are placed in one system and the rest are placed in other systems. The rows that belong
to the horizontal fragments are specified by a condition on one or more attributes of the relation. In relational algebra
horizontal fragmentation on table T, can be represented as follows:
σp(T)
where, σ is relational algebra operator for selection
p is the condition satisfied by a horizontal fragment
Vertical Fragmentation
Vertical fragmentation refers to the process of decomposing a table vertically by attributes are columns. In this
fragmentation, some of the attributes are stored in one system and the rest are stored in other systems. This is
because each site may not need all columns of a table. In order to take care of restoration, each fragment must
contain the primary key field(s) in a table. The fragmentation should be in such a manner that we can rebuild a
table from the fragment by taking the natural JOIN operation and to make it possible we need to include a special
attribute called Tuple-id to the schema. For this purpose, a user can use any super key. And by this, the tuples or
rows can be linked together. The projection is as follows:
πa1, a2,…, an (T)
where, π is relational algebra operator
a1…., an are the aatriubutes of T
T is the table (relation)
For example, for the EMPLOYEE table we have T1 as :
This is T2 and to get back to the original T, we join these two fragments T1 and T2 as πEMPLOYEE (T1 ⋈ T2)
Distributed database. pdf
Distributed database. pdf
Distributed database. pdf
Distributed database. pdf
Distributed database. pdf

More Related Content

Similar to Distributed database. pdf

Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management systemPooja Dixit
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed databaseSonia Panesar
 
Homogeneous ddbms
Homogeneous ddbmsHomogeneous ddbms
Homogeneous ddbmsPooja Dixit
 
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
 
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
 
Distributed database
Distributed databaseDistributed database
Distributed databasesanjay joshi
 
Distributed database
Distributed databaseDistributed database
Distributed databasesanjay joshi
 
CHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptxCHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptxkashishy2
 
Distributed Database Management System.pptx
Distributed Database Management System.pptxDistributed Database Management System.pptx
Distributed Database Management System.pptxMajidRajper4
 
Distributed databases
Distributed databasesDistributed databases
Distributed databasesSuneel Dogra
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management SystemHardik Patil
 
ARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).pptARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).pptShivareddyGangam
 

Similar to Distributed database. pdf (20)

Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management system
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed database
 
Advance DBMS
Advance DBMSAdvance DBMS
Advance DBMS
 
DDBMS
DDBMSDDBMS
DDBMS
 
Homogeneous ddbms
Homogeneous ddbmsHomogeneous ddbms
Homogeneous ddbms
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Csld phan tan va song song
Csld phan tan va song songCsld phan tan va song song
Csld phan tan va song song
 
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
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
CHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptxCHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptx
 
Distributed Database Management System.pptx
Distributed Database Management System.pptxDistributed Database Management System.pptx
Distributed Database Management System.pptx
 
INJRV01I10005.pdf
INJRV01I10005.pdfINJRV01I10005.pdf
INJRV01I10005.pdf
 
Distributed databases
Distributed databasesDistributed databases
Distributed databases
 
Ddbms1
Ddbms1Ddbms1
Ddbms1
 
Unit 1 dbms
Unit 1 dbmsUnit 1 dbms
Unit 1 dbms
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
DBMS unit 1.pptx
DBMS unit 1.pptxDBMS unit 1.pptx
DBMS unit 1.pptx
 
ARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).pptARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).ppt
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 

Recently uploaded

IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 

Distributed database. pdf

  • 1.
  • 2.
  • 3. TYPES OF DD: 1. HOMOGENEOUS DISTRIBUTED DATABASE 2. HETEROGENEOUS DISTRIBUTED DATABASE
  • 4.
  • 5. 1. All site use same database mgt system product. 2. All site have identical software. 3. They are aware of each other and agree to cooperate in processing user request 4. It appears as single system to user 5. Easy to design and manage 6. Following condition must be satisfied for homogeneous database 7. OS used at each location must be same or compatible 8. Database application used at each location must be same or compatible 9. Data structure used at each location must be same
  • 6.
  • 7. 1. Hetero means the ability to accept different form(types) of database 2. Can use the different schemas 3. System may be composed of relational, networked, hierarchical and object oriented DBMs
  • 8. Difference between Distribute homogeneous database system and Heterogeneous distributed database system Homogeneous Database In a homogeneous distributed database, all the sites use identical DBMS and operating systems. Its properties are − • The sites use very similar software. • The sites use identical DBMS or DBMS from the same vendor. • Each site is aware of all other sites and cooperates with other sites to process user requests. • The database is accessed through a single interface as if it is a single database. There are two types of homogeneous distributed database − • Autonomous − Each database is independent that functions on its own. They are integrated by a controlling application and use message passing to share data updates. • Non-autonomous − Data is distributed across the homogeneous nodes and a central or master DBMS co-ordinates data updates across the sites.
  • 9. Heterogeneous Database In a heterogeneous distributed database, different sites have different operating systems, DBMS products and data models. Its properties are − • Different sites use dissimilar schemas and software. • The system may be composed of a variety of DBMSs like relational, network, hierarchical or object oriented. • Query processing is complex due to dissimilar schemas. • Transaction processing is complex due to dissimilar software. • A site may not be aware of other sites and so there is limited co-operation in processing user requests. There are two types of heterogeneous distributed database − • Federated − The heterogeneous database systems are independent in nature and integrated together so that they function as a single database system. • Un-federated − The database systems employ a central coordinating module through which the databases are accessed.
  • 10. Distributed DBMS Architectures DDBMS architectures are generally developed depending on three parameters − ● Distribution − It states the physical distribution of data across the different sites. ● Autonomy − It indicates the distribution of control of the database system and the degree to which each constituent DBMS can operate independently. ● Heterogeneity − It refers to the uniformity or dissimilarity of the data models, system components and databases.
  • 11. Architectural Models Some of the common architectural models are − ● Client - Server Architecture for DDBMS ● Peer - to - Peer Architecture for DDBMS ● Multi - DBMS Architecture
  • 12. Client - Server Architecture for DDBMS This is a two-level architecture where the functionality is divided into servers and clients. The server functions primarily encompass data management, query processing, optimization and transaction management. Client functions include mainly user interface. However, they have some functions like consistency checking and transaction management. The two different client - server architecture are − ● Single Server Multiple Client ● Multiple Server Multiple Client (shown in the following diagram)
  • 13.
  • 14. Peer- to-Peer Architecture for DDBMS In these systems, each peer acts both as a client and a server for imparting database services. The peers share their resource with other peers and co-ordinate their activities. This architecture generally has four levels of schemas − ● Global Conceptual Schema − Depicts the global logical view of data. ● Local Conceptual Schema − Depicts logical data organization at each site. ● Local Internal Schema − Depicts physical data organization at each site. ● External Schema − Depicts user view of data.
  • 15.
  • 16. Multi - DBMS Architectures This is an integrated database system formed by a collection of two or more autonomous database systems. Multi-DBMS can be expressed through six levels of schemas − ● Multi-database View Level − Depicts multiple user views comprising of subsets of the integrated distributed database. ● Multi-database Conceptual Level − Depicts integrated multi-database that comprises of global logical multi-database structure definitions. ● Multi-database Internal Level − Depicts the data distribution across different sites and multi-database to local data mapping. ● Local database View Level − Depicts public view of local data. ● Local database Conceptual Level − Depicts local data organization at each site. ● Local database Internal Level − Depicts physical data organization at each site. There are two design alternatives for multi-DBMS − ● Model with multi-database conceptual level. ● Model without multi-database conceptual level.
  • 17.
  • 18.
  • 19. Design issues of distributed system – 1. Complex nature : Distributed Databases are a network of many computers present at different locations and they provide an outstanding level of performance, availability, and of course reliability. Therefore, the nature of Distributed DBMS is comparatively more complex than a centralized DBMS. Complex software is required for Distributed DBMS. Also, It ensures no data replication, which adds even more complexity in its nature. 2. Overall Cost : Various costs such as maintenance cost, procurement cost, hardware cost, network/communication costs, labor costs, etc, adds up to the overall cost and make it costlier than normal DBMS. 3. Security issues: In a Distributed Database, along with maintaining no data redundancy, the security of data as well as a network is a prime concern. A network can be easily attacked for data theft and misuse. 4. Integrity Control: In a vast Distributed database system, maintaining data consistency is important. All changes made to data at one site must be reflected on all the sites. The communication and processing cost is high in Distributed DBMS in order to enforce the integrity of data. 5. Lacking Standards: Although it provides effective communication and data sharing, still there are no standard rules and protocols to convert a centralized DBMS to a large Distributed DBMS. Lack of standards decreases the potential of Distributed DBMS. 6. Lack of Professional Support: Due to a lack of adequate communication standards, it is not possible to link different equipment produced by different vendors into a smoothly functioning network. Thu several good resources may not be available to the users of the network. 7. Data design complex:
  • 20. Fragmentation: Fragmentation is a process of dividing the whole or full database into various subtables or sub relations so that data can be stored in different systems. The small pieces of sub relations or subtables are called fragments. These fragments are called logical data units and are stored at various sites. It must be made sure that the fragments are such that they can be used to reconstruct the original relation (i.e, there isn’t any loss of data). In the fragmentation process, let’s say, If a table T is fragmented and is divided into a number of fragments say T1, T2, T3….TN. The fragments contain sufficient information to allow the restoration of the original table T. This restoration can be done by the use of UNION or JOIN operation on various fragments. This process is called data fragmentation. All of these fragments are independent which means these fragments can not be derived from others. The users needn’t be logically concerned about fragmentation which means they should not concerned that the data is fragmented and this is called fragmentation Independence or we can say fragmentation transparency.
  • 21. Advantages : ● As the data is stored close to the usage site, the efficiency of the database system will increase ● Local query optimization methods are sufficient for some queries as the data is available locally ● In order to maintain the security and privacy of the database system, fragmentation is advantageous Disadvantages : ● Access speeds may be very high if data from different fragments are needed ● If we are using recursive fragmentation, then it will be very expensive
  • 22. We have three methods for data fragmenting of a table: ● Horizontal fragmentation ● Vertical fragmentation ● Mixed or Hybrid fragmentation
  • 23. Horizontal fragmentation – Horizontal fragmentation refers to the process of dividing a table horizontally by assigning each row or (a group of rows) of relation to one or more fragments. These fragments are then be assigned to different sides in the distributed system. Some of the rows or tuples of the table are placed in one system and the rest are placed in other systems. The rows that belong to the horizontal fragments are specified by a condition on one or more attributes of the relation. In relational algebra horizontal fragmentation on table T, can be represented as follows: σp(T) where, σ is relational algebra operator for selection p is the condition satisfied by a horizontal fragment
  • 24.
  • 25.
  • 26.
  • 27. Vertical Fragmentation Vertical fragmentation refers to the process of decomposing a table vertically by attributes are columns. In this fragmentation, some of the attributes are stored in one system and the rest are stored in other systems. This is because each site may not need all columns of a table. In order to take care of restoration, each fragment must contain the primary key field(s) in a table. The fragmentation should be in such a manner that we can rebuild a table from the fragment by taking the natural JOIN operation and to make it possible we need to include a special attribute called Tuple-id to the schema. For this purpose, a user can use any super key. And by this, the tuples or rows can be linked together. The projection is as follows:
  • 28. πa1, a2,…, an (T) where, π is relational algebra operator a1…., an are the aatriubutes of T T is the table (relation) For example, for the EMPLOYEE table we have T1 as :
  • 29.
  • 30. This is T2 and to get back to the original T, we join these two fragments T1 and T2 as πEMPLOYEE (T1 ⋈ T2)