ADBMS Tutorial
ADBMS Tutorial
With the aid of a diagram list and explain the three distributed DBMS
architecture.
Distributed Database Management Systems (DDBMS) have three primary
architectures, each with its own characteristics and use cases. Here’s a brief
explanation along with a conceptual diagram for each:
1. Client-Server Architecture:
o In this model, the system is divided into two levels: clients and
servers.
o Clients are responsible for presenting data to the user and making
requests.
o Servers store the data and handle transactions, query processing, and
optimization.
2. Peer-to-Peer Architecture:
o Each node in the system acts as both a client and a server.
o Nodes are equal participants, sharing resources and coordinating their
efforts.
o This architecture is decentralized and can scale out by adding more
peers.
3. Multi-DBMS Architecture:
o This combines two or more independent database systems into a
single, integrated system.
o It allows for the integration of different databases, which may be
heterogeneous in nature.
o The system appears as a unified database to the user despite being
distributed.
Here’s a simplified diagram to illustrate these architectures:
Client-Server Architecture
+--------+ +--------+
| Client |----->| Server |
+--------+ +--------+
| Data |
+--------+
Peer-to-Peer Architecture
+--------+ +--------+
| Peer 1 |<---->| Peer 2 |
+--------+ +--------+
| Data | | Data |
+--------+ +--------+
Multi-DBMS Architecture
+--------+ +--------+
| DBMS 1 |<---->| DBMS 2 |
+--------+ +--------+
| Data | | Data |
+--------+ +--------+
In the Client-Server model, the focus is on a clear distinction between data
requests and data management. The Peer-to-Peer model emphasizes equal
responsibility and resource sharing among all participants. The Multi-
DBMS model is about integrating diverse systems into a cohesive whole.
What are the two kinds of new data types supported in object-database systems,
Give an example of each and discuss how the example situation would be
handled if only an ROBMS was available
Object-database systems support a variety of data types that are not typically
found in traditional relational database management systems (RDBMS). Two
notable kinds of new data types supported in object-database systems are:
1. Structured Data Types: These are user-defined types that represent
complex data structures with their own attributes and methods. For
example, an Employee type might include attributes
like name, id, address, and methods like calculateSalary(). In
an RDBMS, this would be handled by creating a separate table for
employees, with columns for each attribute and stored procedures or
functions to represent methods.
2. Collection Data Types: These include arrays, lists, sets, and multisets,
which can store multiple values in a single field. For instance,
a Project type might have a members attribute that is a list
of Employee types. In an RDBMS, handling such data would require a
separate table to represent the collection, with foreign keys linking back to
the primary table.
If only an RDBMS was available, these situations would be handled using
normalization techniques to split the structured data into multiple related tables.
Complex relationships and hierarchies would be managed using foreign keys and
join operations. This often leads to the so-called “impedance mismatch” problem,
where the object-oriented model of an application does not align neatly with the
tabular model of an RDBMS, resulting in more complex and less intuitive data
access patterns.
Write short notes with example on the following terms related to advanced
database management system (ADBMS).
a. The Weak entity and Entity set.
b. The one to one Binary and Ternary relationship
c. The Point data and Region data
d. The Data fragmentation and Data Replications
e. Concurrency control and Dead lock controlcontrol.
a. The Weak Entity and Entity Set:
A weak entity is an entity that cannot be uniquely identified by its attributes
alone and relies on a ‘strong’ entity (usually through a foreign key).
Example: A Payment entity in a database might be a weak entity if it
cannot exist without an associated Loan entity.
b. The One to One Binary and Ternary Relationship:
A one-to-one binary relationship exists when each entity in one set is
related to at most one entity in another set.
Example: A Person entity and a Passport entity where each person has
at most one passport and vice versa.
A ternary relationship involves three different entities.
Example: A Supplier, Part, and Project entities where a supplier
provides a part for a specific project.
c. The Point Data and Region Data:
Point data represents a single point in space.
Example: The exact location of a landmark on a map.
Region data represents a larger area that may consist of multiple points and
boundaries.
Example: The geographic area covered by a city on a map .
d. The Data Fragmentation and Data Replications:
Data fragmentation is the division of a database into smaller pieces which
can be stored in different locations.
Example: Customer data divided by region and stored in local servers.
Data replication involves creating copies of data and storing them in
multiple locations to improve access and reliability.
Example: A user’s profile data replicated across several data centers to
ensure quick access and high availability.
e. Concurrency Control and Deadlock Control:
Concurrency control ensures that database transactions are performed in a
safe manner without conflicts when multiple transactions occur
simultaneously.
Example: Locking mechanisms that prevent two users from modifying the
same data at the same time.
Deadlock control involves techniques to prevent, detect, and resolve
deadlocks, which occur when multiple transactions are waiting for each
other to release resources.
Example: A timeout mechanism that aborts a transaction if it has been
waiting for a lock for too long.
These concepts are fundamental to the design and operation of robust and
efficient database systems, especially in environments where data integrity,
consistency, and availability are critical.