Data Model & Database System Architecture - Unit 1 - 2
Data Model & Database System Architecture - Unit 1 - 2
A Database model defines the logical design and structure of a database and defines
how data will be stored, accessed and updated in a database management system. While
the Relational Model is the most widely used database model, there are other models too:
1. Relational Model, 2. Entity relational model, 3. Hierarchical model, 4. Network
Model.
1. Relational Model
In relational model, the data and relationships are represented by collection of inter-related
tables. Each table is a group of column and rows, where column represents attribute of an
entity and rows represents records. Sample relationship Model: Student table with 3
columns and three records.
Simple: This model is simpler as compared to the network and hierarchical model.
Scalable: This model can be easily scaled as we can add as many rows and columns
we want.
Structural Independence: We can make changes in database structure without
changing the way to access the data.
Disadvantages of Relational Model:
Bad Design: As the relational model is very easy to design and use. So the users
don't need to know how the data is stored in order to access it. This ease of design
can lead to the development of a poor database which would slow down if the
database grows.
But all these disadvantages are minor as compared to the advantages of the relational
model. These problems can be avoided with the help of proper implementation and
organisation.
In hierarchical model, data is organized into a tree like structure with each record is having
one parent record and many children. The main drawback of this model is that, it can have
only one to many relationships between nodes. Sample Hierarchical Model Diagram:
4. Network Model – Network Model is same as hierarchical model except that it has
graph-like structure rather than a tree-based structure. Unlike hierarchical model,
this model allows each record to have more than one parent record.
The data can be accessed faster as compared to the hierarchical model. This is
because the data is more related in the network model and there can be more than
one path to reach a particular node. So the data can be accessed in many ways.
As there is a parent-child relationship so data integrity is present. Any change in
parent record is reflected in the child record.
In this model, both the data and relationship are present in a single structure known
as an object. We can store audio, video, images, etc. in the database which was not possible
in the relational model (although you can store audio and video in relational database, it is
advised not to store in the relational database).
In this model, two are more objects are connected through links. We use this link to
relate one object to other objects.
2. Database System Architecture (OR) Database System Structure (OR) Components of
DBMS (OR) Architecture of database:
A Database Management system is not always directly available for users and
applications to access and store data in it.
A Database Management system can be centralised (all the data stored at one
location), decentralised (multiple copies of database at different locations)
or hierarchical, depending upon its architecture.
1-tier DBMS architecture also exist, this is when the database is directly available to the user
for using it to store data. Generally such a setup is used for local application development,
where programmers communicate directly with the database for quick response.
Database Architecture is logically of two types:
Application programmers:
Sophisticated users:
These user interact with the database system without writing programs, But
they submit queries to retrieve the information
Specialized users:
Who write specialized database applications to interact with the database system.
Naïve users:
Database Administrator:
Coordinates all the activities of the database system; the database administrator has
a good understanding of the enterprise’s information resources and needs.
Schema definition
Access method definition
Schema and physical organization modification
Granting user authority to access the database
Monitoring performance
Query Processor:
Query processor is the module responsible for executing database queries.
The query processor receives as input queries in the form of SQL text, parses and optimizes
them, and completes their execution by employing specific data access methods and database
operator implementations.
1. DDL Interpreter:
It interprets the DDL statements and records the definitions in data dictionary.
Storage Manager
The Storage Manager include these following components/modules
o Authorization Manager
o Transaction Manager
o File Manager
o Buffer Manager
Storage manager is a program module that provides the interface between the low-
level data stored in the database and the application programs and queries submitted
to the system.
The storage manager is responsible to the following tasks:
interaction with the file manager
efficient storing, retrieving and updating of data
Authorization Manager
Checks whether the user is an authorized person or not
Test the satisfaction of integrity constraints
Transaction Manager