SlideShare a Scribd company logo
Distributed Data
Amanpartap Singh Pall
Assistant Professor
School of IT
1
Types of DDDB
12/03/24 2
Homogeneous Distributed Databases
• In a homogeneous distributed database
• All sites have identical software
• Are aware of each other and agree to cooperate in processing user requests.
• Each site surrenders part of its autonomy in terms of right to change
schemas or software
• Appears to user as a single system
• In a heterogeneous distributed database
• Different sites may use different schemas and software
• Difference in schema is a major problem for query processing
• Difference in software is a major problem for transaction processing
• Sites may not be aware of each other and may provide only
limited facilities for cooperation in transaction processing
DB architectures
(1) Shared memory
4
P P P
...
M
DB architectures
(2) Shared disk
5
...
...
P
M
P P
M M
DB architectures
(3) Shared nothing
6
P
M
P
M
P
M
...
DB architectures
(4) Hybrid example – Hierarchical or Clustered
7
M
P P P
...
M
P P P
...
Issues for selecting architecture
• Reliability
• Scalability
• Geographic distribution of data
• Performance
• Cost
8
• Typically, parallel DBs:
• Fast interconnect
• Homogeneous software
• High performance is goal
• Transparency is goal
9
• Typically, distributed DBs:
• Geographically distributed
• Data sharing is goal (may run into
heterogeneity, autonomy)
• Disconnected operation possible
10
Distributed Database Challenges
• Distributed Database Design
• Deciding what data goes where
• Depends on data access patterns of major applications
• Two subproblems:
• Fragmentation: partition tables into fragments
• Allocation: allocate fragments to nodes
11
Distributed Data Storage
• Assume relational data model
• Replication
• System maintains multiple copies of data, stored in different
sites, for faster retrieval and fault tolerance.
• Fragmentation
• Relation is partitioned into several fragments stored in distinct
sites
• Replication and fragmentation can be combined
• Relation is partitioned into several fragments: system
maintains several identical replicas of each such fragment.
Data Replication
• A relation or fragment of a relation is replicated if it is
stored redundantly in two or more sites.
• Full replication of a relation is the case where the
relation is stored at all sites.
• Fully redundant databases are those in which every
site contains a copy of the entire database.
Data Replication (Cont.)
• Advantages of Replication
• Availability: failure of site containing relation r does not result in
unavailability of r is replicas exist.
• Parallelism: queries on r may be processed by several nodes in parallel.
• Reduced data transfer: relation r is available locally at each site
containing a replica of r.
• Disadvantages of Replication
• Increased cost of updates: each replica of relation r must be updated.
• Increased complexity of concurrency control: concurrent updates to
distinct replicas may lead to inconsistent data unless special concurrency
control mechanisms are implemented.
• One solution: choose one copy as primary copy and apply
concurrency control operations on primary copy
Data Fragmentation
• Division of relation r into fragments r1, r2, …, rn which contain
sufficient information to reconstruct relation r.
• Horizontal fragmentation: each tuple of r is assigned to one or
more fragments
• Vertical fragmentation: the schema for relation r is split into
several smaller schemas
• All schemas must contain a common candidate key (or
superkey) to ensure lossless join property.
• A special attribute, the tuple-id attribute may be added to each
schema to serve as a candidate key.
• Example : relation account with following schema
• Account = (branch_name, account_number, balance )
Horizontal Fragmentation of account Relation
branch_name account_number balance
Hillside
Hillside
Hillside
A-305
A-226
A-155
500
336
62
account1 = branch_name=“Hillside” (account )
branch_name account_number balance
Valleyview
Valleyview
Valleyview
Valleyview
A-177
A-402
A-408
A-639
205
10000
1123
750
account2 = branch_name=“Valleyview” (account )
Vertical Fragmentation of employee_info Relation
branch_name customer_name tuple_id
Hillside
Hillside
Valleyview
Valleyview
Hillside
Valleyview
Valleyview
Lowman
Camp
Camp
Kahn
Kahn
Kahn
Green
deposit1 = branch_name, customer_name, tuple_id (employee_info )
1
2
3
4
5
6
7
account_number balance tuple_id
500
336
205
10000
62
1123
750
1
2
3
4
5
6
7
A-305
A-226
A-177
A-402
A-155
A-408
A-639
deposit2 = account_number, balance, tuple_id (employee_info )
Advantages of Fragmentation
• Horizontal:
• allows parallel processing on fragments of a relation
• allows a relation to be split so that tuples are located where
they are most frequently accessed
• Vertical:
• allows tuples to be split so that each part of the tuple is stored
where it is most frequently accessed
• tuple-id attribute allows efficient joining of vertical fragments
• allows parallel processing on a relation
• Vertical and horizontal fragmentation can be mixed.
• Fragments may be successively fragmented to an arbitrary
depth.
Data Transparency
•Data transparency: Degree to which system user
may remain unaware of the details of how and
where the data items are stored in a distributed
system
•Consider transparency issues in relation to:
• Fragmentation transparency
• Replication transparency
• Location transparency
Naming of Data Items - Criteria
1. Every data item must have a system-wide unique
name.
2. It should be possible to find the location of data items
efficiently.
3. It should be possible to change the location of data
items transparently.
4. Each site should be able to create new data items
autonomously.
Centralized Scheme - Name Server
• Structure:
• name server assigns all names
• each site maintains a record of local data items
• sites ask name server to locate non-local data items
• Advantages:
• satisfies naming criteria 1-3
• Disadvantages:
• does not satisfy naming criterion 4
• name server is a potential performance bottleneck
• name server is a single point of failure
Use of Aliases
• Alternative to centralized scheme: each site prefixes its
own site identifier to any name that it generates i.e., site
17.account.
• Fulfills having a unique identifier, and avoids problems
associated with central control.
• However, fails to achieve network transparency.
What is a Transaction?
• A set of steps completed by a DBMS to accomplish a single
user task.
• Must be either entirely completed or aborted
• No intermediate states are acceptable
Distributed Transactions
• Transaction may access data at several sites.
• Each site has a local transaction manager responsible for:
• Maintaining a log for recovery purposes
• Participating in coordinating the concurrent execution of the
transactions executing at that site.
• Each site has a transaction coordinator, which is responsible for:
• Starting the execution of transactions that originate at the site.
• Distributing subtransactions at appropriate sites for execution.
• Coordinating the termination of each transaction that originates at
the site, which may result in the transaction being committed at all
sites or aborted at all sites.
Transaction System Architecture
System Failure Modes
• Failures unique to distributed systems:
• Failure of a site.
• Loss of massages
• Handled by network transmission control protocols such as TCP-IP
• Failure of a communication link
• Handled by network protocols, by routing messages via alternative
links
• Network partition
• A network is said to be partitioned when it has been split into
two or more subsystems that lack any connection between them
• Note: a subsystem may consist of a single node
• Network partitioning and site failures are generally indistinguishable.

More Related Content

PPT
Distributed Database Management System - Introduction
PPT
19. Distributed Databases in DBMS
PDF
Csld phan tan va song song
PDF
Patterns of Distributed Application Design
PPT
1 ddbms jan 2011_u
PDF
Scaling systems using change propagation across data stores
PPTX
DBMS - Distributed Databases
PPTX
lecture-13.pptx
Distributed Database Management System - Introduction
19. Distributed Databases in DBMS
Csld phan tan va song song
Patterns of Distributed Application Design
1 ddbms jan 2011_u
Scaling systems using change propagation across data stores
DBMS - Distributed Databases
lecture-13.pptx

Similar to Normalisation having DBMS architecture h (20)

PPTX
Database replication
PPTX
Patterns of Distributed Application Design
PPTX
Tech Talk Series, Part 2: Why is sharding not smart to do in MySQL?
PDF
Navigating Transactions: ACID Complexity in Modern Databases
PDF
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
DOC
Case Study For Replication For PCMS
PDF
Advance DBMS
PPTX
3-System Design_software_design_algo .pptx
PPTX
DDBS PPT (1).pptx
PPTX
UNIT II in the part of Database at the PG
PDF
Planning For Catastrophe with IBM WAS and IBM BPM
PPTX
PPTX
DBMS UNIT V.pptx
PPTX
Hbase hivepig
PPTX
Data stage
PDF
Active/Active Database Solutions with Log Based Replication in xDB 6.0
 
PDF
AAI-2013 Preparing to Fail: Practical WebSphere Application Server High Avail...
PPTX
Distributed database detailed version by jh
PPTX
Hbase hive pig
Database replication
Patterns of Distributed Application Design
Tech Talk Series, Part 2: Why is sharding not smart to do in MySQL?
Navigating Transactions: ACID Complexity in Modern Databases
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Case Study For Replication For PCMS
Advance DBMS
3-System Design_software_design_algo .pptx
DDBS PPT (1).pptx
UNIT II in the part of Database at the PG
Planning For Catastrophe with IBM WAS and IBM BPM
DBMS UNIT V.pptx
Hbase hivepig
Data stage
Active/Active Database Solutions with Log Based Replication in xDB 6.0
 
AAI-2013 Preparing to Fail: Practical WebSphere Application Server High Avail...
Distributed database detailed version by jh
Hbase hive pig
Ad

Recently uploaded (20)

PDF
シュアーイノベーション採用ピッチ資料|Company Introduction & Recruiting Deck
DOCX
mcsp232projectguidelinesjan2023 (1).docx
PPTX
OCCULAR MANIFESTATIONS IN LEPROSY.pptx bbb
PPTX
The Stock at arrangement the stock and product.pptx
PPTX
Job-opportunities lecture about it skills
PPTX
Nervous_System_Drugs_PPT.pptxXXXXXXXXXXXXXXXXX
PPTX
1-4 Chaptedjkfhkshdkfjhalksjdhfkjshdljkfhrs.pptx
PPTX
Principles of Inheritance and variation class 12.pptx
PPTX
1751884730-Visual Basic -Unitj CS B.pptx
DOC
field study for teachers graduating samplr
PPTX
Autonomic_Nervous_SystemM_Drugs_PPT.pptx
PDF
Understanding the Rhetorical Situation Presentation in Blue Orange Muted Il_2...
PPTX
Your Guide to a Winning Interview Aug 2025.
PPTX
microtomy kkk. presenting to cryst in gl
PPTX
normal_menstrual_cycle_,,physiology.PPTX
PDF
MCQ Practice CBT OL Official Language 1.pptx.pdf
PPTX
Surgical thesis protocol formation ppt.pptx
PPTX
退学买新西兰毕业证(WelTec毕业证书)惠灵顿理工学院毕业证国外证书制作
PPT
APPROACH TO DEVELOPMENTALlllllllllllllllll
PPTX
cse couse aefrfrqewrbqwrgbqgvq2w3vqbvq23rbgw3rnw345
シュアーイノベーション採用ピッチ資料|Company Introduction & Recruiting Deck
mcsp232projectguidelinesjan2023 (1).docx
OCCULAR MANIFESTATIONS IN LEPROSY.pptx bbb
The Stock at arrangement the stock and product.pptx
Job-opportunities lecture about it skills
Nervous_System_Drugs_PPT.pptxXXXXXXXXXXXXXXXXX
1-4 Chaptedjkfhkshdkfjhalksjdhfkjshdljkfhrs.pptx
Principles of Inheritance and variation class 12.pptx
1751884730-Visual Basic -Unitj CS B.pptx
field study for teachers graduating samplr
Autonomic_Nervous_SystemM_Drugs_PPT.pptx
Understanding the Rhetorical Situation Presentation in Blue Orange Muted Il_2...
Your Guide to a Winning Interview Aug 2025.
microtomy kkk. presenting to cryst in gl
normal_menstrual_cycle_,,physiology.PPTX
MCQ Practice CBT OL Official Language 1.pptx.pdf
Surgical thesis protocol formation ppt.pptx
退学买新西兰毕业证(WelTec毕业证书)惠灵顿理工学院毕业证国外证书制作
APPROACH TO DEVELOPMENTALlllllllllllllllll
cse couse aefrfrqewrbqwrgbqgvq2w3vqbvq23rbgw3rnw345
Ad

Normalisation having DBMS architecture h

  • 1. Distributed Data Amanpartap Singh Pall Assistant Professor School of IT 1
  • 3. Homogeneous Distributed Databases • In a homogeneous distributed database • All sites have identical software • Are aware of each other and agree to cooperate in processing user requests. • Each site surrenders part of its autonomy in terms of right to change schemas or software • Appears to user as a single system • In a heterogeneous distributed database • Different sites may use different schemas and software • Difference in schema is a major problem for query processing • Difference in software is a major problem for transaction processing • Sites may not be aware of each other and may provide only limited facilities for cooperation in transaction processing
  • 4. DB architectures (1) Shared memory 4 P P P ... M
  • 5. DB architectures (2) Shared disk 5 ... ... P M P P M M
  • 6. DB architectures (3) Shared nothing 6 P M P M P M ...
  • 7. DB architectures (4) Hybrid example – Hierarchical or Clustered 7 M P P P ... M P P P ...
  • 8. Issues for selecting architecture • Reliability • Scalability • Geographic distribution of data • Performance • Cost 8
  • 9. • Typically, parallel DBs: • Fast interconnect • Homogeneous software • High performance is goal • Transparency is goal 9
  • 10. • Typically, distributed DBs: • Geographically distributed • Data sharing is goal (may run into heterogeneity, autonomy) • Disconnected operation possible 10
  • 11. Distributed Database Challenges • Distributed Database Design • Deciding what data goes where • Depends on data access patterns of major applications • Two subproblems: • Fragmentation: partition tables into fragments • Allocation: allocate fragments to nodes 11
  • 12. Distributed Data Storage • Assume relational data model • Replication • System maintains multiple copies of data, stored in different sites, for faster retrieval and fault tolerance. • Fragmentation • Relation is partitioned into several fragments stored in distinct sites • Replication and fragmentation can be combined • Relation is partitioned into several fragments: system maintains several identical replicas of each such fragment.
  • 13. Data Replication • A relation or fragment of a relation is replicated if it is stored redundantly in two or more sites. • Full replication of a relation is the case where the relation is stored at all sites. • Fully redundant databases are those in which every site contains a copy of the entire database.
  • 14. Data Replication (Cont.) • Advantages of Replication • Availability: failure of site containing relation r does not result in unavailability of r is replicas exist. • Parallelism: queries on r may be processed by several nodes in parallel. • Reduced data transfer: relation r is available locally at each site containing a replica of r. • Disadvantages of Replication • Increased cost of updates: each replica of relation r must be updated. • Increased complexity of concurrency control: concurrent updates to distinct replicas may lead to inconsistent data unless special concurrency control mechanisms are implemented. • One solution: choose one copy as primary copy and apply concurrency control operations on primary copy
  • 15. Data Fragmentation • Division of relation r into fragments r1, r2, …, rn which contain sufficient information to reconstruct relation r. • Horizontal fragmentation: each tuple of r is assigned to one or more fragments • Vertical fragmentation: the schema for relation r is split into several smaller schemas • All schemas must contain a common candidate key (or superkey) to ensure lossless join property. • A special attribute, the tuple-id attribute may be added to each schema to serve as a candidate key. • Example : relation account with following schema • Account = (branch_name, account_number, balance )
  • 16. Horizontal Fragmentation of account Relation branch_name account_number balance Hillside Hillside Hillside A-305 A-226 A-155 500 336 62 account1 = branch_name=“Hillside” (account ) branch_name account_number balance Valleyview Valleyview Valleyview Valleyview A-177 A-402 A-408 A-639 205 10000 1123 750 account2 = branch_name=“Valleyview” (account )
  • 17. Vertical Fragmentation of employee_info Relation branch_name customer_name tuple_id Hillside Hillside Valleyview Valleyview Hillside Valleyview Valleyview Lowman Camp Camp Kahn Kahn Kahn Green deposit1 = branch_name, customer_name, tuple_id (employee_info ) 1 2 3 4 5 6 7 account_number balance tuple_id 500 336 205 10000 62 1123 750 1 2 3 4 5 6 7 A-305 A-226 A-177 A-402 A-155 A-408 A-639 deposit2 = account_number, balance, tuple_id (employee_info )
  • 18. Advantages of Fragmentation • Horizontal: • allows parallel processing on fragments of a relation • allows a relation to be split so that tuples are located where they are most frequently accessed • Vertical: • allows tuples to be split so that each part of the tuple is stored where it is most frequently accessed • tuple-id attribute allows efficient joining of vertical fragments • allows parallel processing on a relation • Vertical and horizontal fragmentation can be mixed. • Fragments may be successively fragmented to an arbitrary depth.
  • 19. Data Transparency •Data transparency: Degree to which system user may remain unaware of the details of how and where the data items are stored in a distributed system •Consider transparency issues in relation to: • Fragmentation transparency • Replication transparency • Location transparency
  • 20. Naming of Data Items - Criteria 1. Every data item must have a system-wide unique name. 2. It should be possible to find the location of data items efficiently. 3. It should be possible to change the location of data items transparently. 4. Each site should be able to create new data items autonomously.
  • 21. Centralized Scheme - Name Server • Structure: • name server assigns all names • each site maintains a record of local data items • sites ask name server to locate non-local data items • Advantages: • satisfies naming criteria 1-3 • Disadvantages: • does not satisfy naming criterion 4 • name server is a potential performance bottleneck • name server is a single point of failure
  • 22. Use of Aliases • Alternative to centralized scheme: each site prefixes its own site identifier to any name that it generates i.e., site 17.account. • Fulfills having a unique identifier, and avoids problems associated with central control. • However, fails to achieve network transparency.
  • 23. What is a Transaction? • A set of steps completed by a DBMS to accomplish a single user task. • Must be either entirely completed or aborted • No intermediate states are acceptable
  • 24. Distributed Transactions • Transaction may access data at several sites. • Each site has a local transaction manager responsible for: • Maintaining a log for recovery purposes • Participating in coordinating the concurrent execution of the transactions executing at that site. • Each site has a transaction coordinator, which is responsible for: • Starting the execution of transactions that originate at the site. • Distributing subtransactions at appropriate sites for execution. • Coordinating the termination of each transaction that originates at the site, which may result in the transaction being committed at all sites or aborted at all sites.
  • 26. System Failure Modes • Failures unique to distributed systems: • Failure of a site. • Loss of massages • Handled by network transmission control protocols such as TCP-IP • Failure of a communication link • Handled by network protocols, by routing messages via alternative links • Network partition • A network is said to be partitioned when it has been split into two or more subsystems that lack any connection between them • Note: a subsystem may consist of a single node • Network partitioning and site failures are generally indistinguishable.