Professional Documents
Culture Documents
Database Systems A Practical Approach To Design Implementation and Management 6th Edition Connolly Solutions Manual 1
Database Systems A Practical Approach To Design Implementation and Management 6th Edition Connolly Solutions Manual 1
AND EXERCISES
1
Solutions to Review Questions and Exercises
2
Chapter 24 Distributed DBMSs - Concepts and Design
Review Questions
24.1 Explain what is meant by a DDBMS and discuss the motivation in providing such a system.
24.2 Compare and contrast a DDBMS with distributed processing. Under what circumstances would you
choose a DDBMS over distributed processing?
Distributed processing defined at end of Section 24.1.1. Would choose a DDBMS, for example, if
each site needed control over its own data, sites had their own existing DBMSs, communication costs
would be significantly reduced, and so on.
24.3 Compare and contrast a DDBMS with a parallel DBMS. Under what circumstances would you
choose a DDBMS over a parallel DBMS?
Parallel DBMS defined at end of Section 24.1.1. Parallel DBMSs tend to be used over short distances,
usually within the same site. If requirements need distribution over sites with large geographic spread,
then choice should be straightforward.
24.5 What is the difference between a homogeneous and heterogeneous DDBMS? Under what
circumstances would such systems generally arise?
See Section 24.1.3. Heterogeneous DDBMSs may arise as the result of integration of disparate
systems. Homogeneous DDBMSs are more likely to be the result of a strategic decision to move to
a DDBMS and implement the system in a top-down fashion.
3
24.7 What functionality do you expect in a DDBMS?
24.8 What is a multidatabase system? Describe a reference architecture for such a system.
An MDBS is a distributed DBMS in which each site maintains complete autonomy (see end of
Section 24.1.3). Reference architecture provided in Figure 24.5.
24.9 One problem area with DDBMSs is that of distributed database design. Discuss the issues that have to
be addressed with distributed database design. Discuss how these issues apply to the global system
catalog.
The question that is being addressed is how the database and the applications that run against it should
be placed across the sites. Two basic alternatives: partitioned or replicated. In partitioned scheme
database is divided into a number of disjoint partitions each of which is placed at a different site.
Replicated designs can be fully or partially replicated.
Two fundamental design issues are fragmentation and distribution. Mostly involves mathematical
programming to minimize combined cost of storing the database, processing transactions against it,
and communication. Problem is NP-hard; therefore proposed solutions are based on heuristics.
The global system catalog (GSC) is only relevant if we talk about a distributed DBMS or multi-
DBMS that uses a global conceptual schema. Problems are similar to above. Briefly, a GSC may be
either global to entire database or local; it may be maintained centrally at one site, or in a distributed
fashion over a number of sites; finally, replication - there may be a single copy of the directory or
multiple copies. These three dimensions are orthogonal to one another.
24.10 What are the strategic objectives for the definition and allocation of fragments?
4
24.11 Describe alternative schemes for fragmenting a global relation. State how you would check for
correctness to ensure that the database does not undergo semantic change during fragmentation.
Alternative schemes are: primary horizontal, vertical, mixed, and derived horizontal fragmentation
(see Section 24.4).
Correctness rules are: completeness, reconstruction, and disjointness (see Section 24.4 again).
24.12 What layers of transparency should be provided with a DDBMS? Give examples to illustrate your
answer. Justify your answer.
24.13 A DDBMS must ensure that no two sites create a database object with the same name. One solution to
this problem is to create a central name server. What are the disadvantages with this approach?
Propose an alternative approach that overcomes these disadvantages.
Problems with the central name server, which has the responsibility for ensuring uniqueness of all
names in the system, are:
An alternative solution is to prefix an object with the identifier of the site that created it. For example,
a relation BRANCH created at site S1 might be named S1.BRANCH. Similarly, we would need to be
able to identify each fragment and each of its copies. Thus, copy 2 of fragment 3 of the branch relation
created at site S1 might be referred to as S1.BRANCH.F3.C2. However, this results in loss of
distribution transparency.
An approach that resolves the problems with both these solutions uses aliases for each database
object. Thus, S1.BRANCH.F3.C2 might be known as local_branch by the user at site S1. The
DDBMS has the task of mapping aliases to the appropriate database object.
24.14 What are the four levels of transactions defined in IBM’s DRDA? Compare and contrast these
four levels. Give examples to illustrate your answer.
5
Another document from Scribd.com that is
random and unrelated content:
alternate format must include the full Project Gutenberg™ License
as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the method
you already use to calculate your applicable taxes. The fee is owed
to the owner of the Project Gutenberg™ trademark, but he has
agreed to donate royalties under this paragraph to the Project
Gutenberg Literary Archive Foundation. Royalty payments must be
paid within 60 days following each date on which you prepare (or
are legally required to prepare) your periodic tax returns. Royalty
payments should be clearly marked as such and sent to the Project
Gutenberg Literary Archive Foundation at the address specified in
Section 4, “Information about donations to the Project Gutenberg
Literary Archive Foundation.”
• You provide a full refund of any money paid by a user who notifies
you in writing (or by e-mail) within 30 days of receipt that s/he does
not agree to the terms of the full Project Gutenberg™ License. You
must require such a user to return or destroy all copies of the works
possessed in a physical medium and discontinue all use of and all
access to other copies of Project Gutenberg™ works.
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES
OF MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.