Chapter - 6 Distributed Database System
Chapter - 6 Distributed Database System
Distributed systems.
• The advantages and disadvantages of distributed
Databases DBMSs.
system • The functions that should be provided by a
distributed DBMS.
• An architecture for a distributed DBMS.
• The main issues associated with distributed database
design, namely fragmentation, replication, and
allocation.
1
– Distributed database –
network.
– DDBMS –
Network transparency
– Users do not have to worry about operational details of the network.
Location transparency
– refers to freedom of issuing command from any location without
affecting its work.
Advantages DDS…
Naming transparency
– Allows access to any named object (files, relations, etc.) from any
location.
Replication transparency
− Allows to store copies of a data at multiple sites.
Fragmentation transparency
− Allows to segment a relation horizontally (create a subset of tuples of a
relation) or vertically (create a subset of columns of a relation).
Advantages of DDS
2. Increase reliability and availability:
− Reliability refers to system live time, that is, system is running efficiently most of
the time.
− Availability is the probability that the system is continuously available (usable or
accessible) during a time interval.
− A distributed database system has multiple nodes (computers) and if one fails
then others are available to do the job.
3. Improved performance:
− DDBMS fragments the database to keep data closer to where it is needed most.
− This reduces data management (access and modification) time significantly.
4. Scalability - Easier expansion
− Allows new nodes (computers) to be added anytime without chaining the entire
configuration.
– Complexity
Disadvantages – Cost
of – Security
DDS – Integrity control more difficult
– Lack of standards
– Lack of experience
Disadvantages
Difficult to mange
Difficult to design.
.
Multidatabase system (MDBS)
– Synchronize all data received from DPs (TP side) and route
retrieved data to the appropriate TPs (DP side).
Horizontal Fragmentation
Vertical Fragmentation
Mixed Fragmentation
Horizontal Fragmentation
– Transaction transparency
– Failure transparency
– Performance transparency
Distribution Transparency
• Distribution transparency allows the user to perceive the database as a
single, logical entity.
• Allows us to manage a physically dispersed database as though it were
a centralized database.
– Location transparency
– Remote Requests
– Remote Transactions
– Distributed Transactions
– Distributed Requests
A Remote Request
Allows us to access data to be processed by a single remote database
processor.
A Remote Transaction
Composed of several requests, may access data at only a single
site.
Allows a transaction to reference several (local or remote) DP sites.
A Distributed Request
Reference data from several remote DP sites.
Allows a single request to reference a physically partitioned table.
Example2:
Distributed Request
Distributed Transactions and 2 Phase Commit
Transaction transparency in a DDBMS environment ensures that all distributed
transactions maintain the distributed database’s integrity and consistency.
Transaction may access data at several sites.
• Coordinator and
• Fundamental principle
• To the user, a distributed system should look exactly like a non-distributed system.
1) Local autonomy
3) Continuous operation
4) Location independence
Date’s Twelve Rules for a DDBMS
5) Fragmentation independence
6) Replication independence
9) Hardware independence