Unit 1-Architecture of DBMS
Unit 1-Architecture of DBMS
Unit 1-Architecture of DBMS
1. 1-tier architecture
2. 2-tier architecture
3. 3-tier architecture
4. n-tier architecture
1. 1-tier architecture:
One-tier architecture involves putting all of the required
components for a software application or technology on a single
server or platform.
Basically, a one-tier architecture keeps all of the elements of an
application, including the interface, Middleware and back-end
data, in one place. Developers see these types of systems as the
simplest and most direct way.
2. 2-tier architecture:
The two-tier is based on Client Server architecture. The two-tier
architecture is like client server application. The direct
communication takes place between client and server. There is
no intermediate between client and server.
2-tier DBMS architecture includes an Application layer between
the user and the DBMS, which is responsible to communicate
the user's request to the database management system and
then send the response from the DBMS to the user.
An application interface known as ODBC(Open Database
Connectivity) provides an API that allow client side program to
call the DBMS. Most DBMS vendors provide ODBC drivers for
their DBMS.
Such an architecture provides the DBMS extra security as it is
not exposed to the End User directly. Also, security can be
improved by adding security and authentication checks in the
Application layer too.
Hierarchical Model
Network Model
Entity-relationship Model
Relational Model
The main drawback of this model is that, it can have only one to
many relationships between nodes.
Network Model
This is an extension of the Hierarchical model. In this model data is
organised more like a graph, and are allowed to have more than one
parent node.
In this database model data is more related as more relationships are
established in this database model. Also, as the data is more related,
hence accessing the data is also easier and fast. This database model
was used to map many-to-many data relationships.
This was the most widely used database model, before Relational
Model was introduced.
Relational Model
In this model, data is organised in two-dimensional tables and the relationship is
maintained by storing a common field.
This model was introduced by E.F Codd in 1970, and since then it has been the most
widely used database model, infact, we can say the only database model used around
the world.
The basic structure of data in the relational model is tables. All the information related to
a particular type is stored in rows of that table.
Hence, tables are also known as relations in relational model.
In the coming tutorials we will learn how to design tables, normalize them to reduce data
redundancy and how to use Structured Query language to access data from tables.
What is the Difference Between
Hierarchical Network and Relational
Database Model
Definition
A hierarchical model is a structure of data organized in a tree-like model using parent-child
relationships while network model is a database model that allows multiple records to be linked
to the same owner file. A relational model, on the other hand, is a database model to manage data
as tuples grouped into relations (tables).
Basis
Hierarchical model arranges data in a tree similar structure while network model organizes data
in a graph structure. In contrast, relational model arranges data in tables. Hence, this is the main
difference between hierarchical network and relational database model.
Relationship
Moreover, an important difference between hierarchical network and relational database model is
that while a hierarchical model represents “one to many” relationship, a network model
represents “many to many” relationship. Furthermore, relational model can represent both “one
to many” and “many to many” relationships.
Accessing data
Although it is difficult to access data in the hierarchical model, it is easier to access data in the
network model and the relational model.
Flexibility
Also, another difference between hierarchical network and relational database model is their
flexibility. The hierarchical model is less flexible, but the network model and relational model
are flexible.
Also seen link for comparison:
http://newtutorial2012.blogspot.com/2012/07/comparison-between-hierarchical-
model.html
1.