0% found this document useful (0 votes)
89 views31 pages

CS1202 Foc Unit-2

The document discusses the drawbacks of file processing systems and advantages of database management systems (DBMS). It outlines 7 key drawbacks of file processing systems including duplicate data, inconsistency, poor data integrity, and wastage of labor and space. It then defines what a database is and lists several types of databases. The document concludes by describing 10 key characteristics of DBMS, such as providing security and removing redundancy, supporting ACID properties, enabling concurrent use, and allowing for multiple views of data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views31 pages

CS1202 Foc Unit-2

The document discusses the drawbacks of file processing systems and advantages of database management systems (DBMS). It outlines 7 key drawbacks of file processing systems including duplicate data, inconsistency, poor data integrity, and wastage of labor and space. It then defines what a database is and lists several types of databases. The document concludes by describing 10 key characteristics of DBMS, such as providing security and removing redundancy, supporting ACID properties, enabling concurrent use, and allowing for multiple views of data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

UNIT-2

DATABASE

INTRODUCTION

Data: It is a collection of information. The facts that can be recorded and which have implicit
meaning known as 'data'.

Example : Customer ----- 1.cname. 2. cno. 3. ccity.

DRAWBACKS OF FILE PROCESSING SYSTEM:

File Processing System was first to replace non-computer based approach for maintaining
records. It was a successful System of its time and still there are many organizations that are
using File Processing System to maintain their data and information. But it is just not suitable for
handling data of big firms and organizations since it uses different files to store data. It has many
drawbacks and disadvantages that made it out of date.

1. Duplicate Data
Data is stored more than once in different files, that means duplicate data may occur in all these
files. Since all the files are independent on each other so it is very difficult to overcome this error
and if anyone finds this error then it will take time and effort to solve this issue.
2. Inconsistency
In file processing system, various copies of same data may contain different values. Data is not
consistent in this system; it means if a data item needs to be changed then all the files containing
that data need to be modified. It may create a risk of out dated values of data.
3. Accessing Anomalies
Accessing anomalies means that it is not easy to access data in a desired or efficient way. It
makes supervision of department very difficult. If a user wants information in a specific manner,
then he requires creating a program for it.
4. Poor Data Integrity
A collection of data is integrated if it meets certain consistency constraints. A programmer
always puts these constraints in the programs by adding some codes. In File Processing System,
poor data integrity often arises and it becomes very difficult to add new constraints at that time.
5. Poor Data Security
Poor data security is the most threatening problem in File Processing System. There is very less
security in File Processing System as anyone can easily modify and change the data stored in the
files. All the users must have some restriction of accessing data up to a level.
6. Atomicity Problem
Atomicity is required to save the data values; it means that information is completely entered or
canceled at all. Any system may fail at any time and at that time it is desired that data should be
in a consistent state.
7. Wastage of Labor and Space
Labor is very costly in this era and no organization can afford wastage of their precious labor.
File Processing System needs lots of copied data in different files that cause wastage of labor.
Also maintaining same data again and again leads to wastage of space too.
8. Data Isolation
Data is isolated in File Processing System and data is stored in different files. These files can be
in different formats. If you want to extract data from two file, then you are required to which part
of the file is needed and how they are related to each other.
But still in spite of so many disadvantages, File Processing System is still good for small
organizations because it does not require costly soft wares and programmers to handle it.

DATABASE

A database is an organized collection of data, generally stored and accessed electronically from a
computer system. It supports the storage and manipulation of data.

In other words, databases are used by an organization as a method of storing, managing and
retrieving information.
Types of Databases
Depending upon the usage requirements, there are following types of databases available in
the market:

● Centralized database
● Distributed database
● Personal database
● End-user database
● Commercial database
● NoSQL database
● Operational database
● Relational database
● Cloud database
● Object-oriented database
● Graph database

Advantages of using Databases

There are many advantages of databases

● Reduced data redundancy


● Reduced updating errors and increased consistency
● Greater data integrity and independence from application programs
● Improved data access to users through the use of host and query languages
● Improved data security
● Reduced data entry, storage, and retrieval costs

Disadvantages of using Databases

There are many disadvantages of databases

● Although databases allow businesses to store and access data efficiently, they also have
certain disadvantages
● Complexity
● Cost
● Security
● Compatibility

Examples of Databases

Some of the most popular databases are

1. Oracle Database
2. Sybase
3. MySQL

CHARACTERISTICS OF DBMS

Here are the characteristics and properties of Database Management System:

● Provides security and removes redundancy


● Self-describing nature of a database system
● Insulation between programs and data abstraction
● Support of multiple views of the data
● Sharing of data and multiuser transaction processing
● Database Management Software allows entities and relations among them to form tables.
● It follows the ACID concept (Atomicity, Consistency, Isolation, and Durability).
● DBMS supports multi- user environment that allows users to access and manipulate data
in parallel.

1. Real world Entity


DBMS these days is very realistic and real-world entities are used to design its
architecture. Also, behavior and attributes are used by DBMS. To simplify it we can take
an example of an organization database where employee is an entity and his employee id
is an attribute.
2. Self- Describing nature:
Before DBMS, a traditional file management system was used for storing
information and data. There was no concept of definition in traditional file manage ment
system like we have in DBMS. A DBMS should be of Self- Describing nature as it not
only contains the database itself but also the metadata. A metadata (data about data)
defines and describes not only the extent, type, structure, and format of all data but also
relationship between data. This data represents itself that what actions should be taken on
it.
3. Support ACID Properties
Any DBMS is able to support ACID (Atomicity(accuracy),
Consistency(Completeness), Isolation, and Durability) properties. It is made sure in every
DBMS that the real purpose of data should not be lost while performing transactions like
delete, insert, and update. Let us take an example; if an employee’s name is updated then
it should make sure that there is no d uplicate data and no mismatch of employee
information.
4. Concurrent Use of Database
There are many chances that many users will be accessing the data at the same time.
They may require altering the database system concurrently. At that time, DBMS
supports them to concurrently use database without any problem. With the help of
concurrency, economy of the system can be increased. For Example, employees of the
railway reservation system can book and access tickets for passengers concurrently.
Every employee can see on his own interface that how many seats are available or bogie
is fully booked
5. Insulation between Data and Program

Program-data independence provides a big relief to database users. In traditional file


management system, structure of data files was defined in the application programs so the user
had to change all the programs that are using that partic ular data file.
But in DBMS, structure of data files is not stored in the program but it is stored in system
catalogue. With the help of this, internal improvement of data efficiency or any changes in the
data do not have any effect on application software.
6. Transactions
Transactions are bunch of actions that are done to bring database from one consistent
state to new consistent state. Traditional file-based system did not have this feature. Transaction
is always atomic which means it can never be further divided. It can only be completed or
uncompleted.
For example, A person wants to credit money from his account to another person’s account.
Then transaction will be complete if he sends money and another guy receives his money.
Anything other than this can lead to an inconsistent transaction.

7. Data Persistence

Persistence means if the data is not removed explicitly then all the data will be maintained in
DBMS. If any system failure happens then life span of data stored in the DBMS will be decided
by the users directly or indirectly. Any data stored in the DBMS can never be lost. If system
failure happens in between any transaction then it will be rolled back or fully completed, but data
will never be at risk.

8. Backup and Recovery


There are many chances of failure of the whole database. At that time no one will
be able to get the database back and for sure company will be in a big loss. The only
solution is to take backup of database and whenever it is needed, it can be stored back. A
database must have this characteristic to enable more effectiveness.

9. Data integrity

This is one of the most important characteristics of database management system.


Integrity ensures the quality and reliability of database system. It protects unauthorized
access to the database and makes it more secure. It brings only consistent and accurate
data into the database.
10. Multiple views

Users can have multiple views of database depending on their department and interest.
DBMS support multiple views of database to the users. For example, a user of the
teaching department will have different view and user of hostel department will have
different. This feature helps users to have somewhat security because users of other
departments cannot access their files.

11. Stores any kind of data

A database management system should be able to store any kind of data. It should not be
restricted to employee name, salary, and address. Any kind of data that exists in the real
world can be stored in DBMS because we need to work with all kinds of data that is
present around us.

12. Security

DBMS provides security to the data stored in it because all users have different rights to
access database. Some of the users can access the whole database while other can access
a small part of database. For example, a computer network lecturer can only access files
that are related to computer subjects but HOD of the department can access files of all
subjects that are related to their department.

13. Represents Complex Relationship between Data


Data stored in a database is connected with each other and a relationship is made in
between data. DBMS should be able to represent the complex relationship between data to
make efficient and accurate use of data.
14. Que ry Language
Queries are used to retrieve and manipulate data but DBMS is armed by a strong query
language that makes it more effective and efficient. Users have the power to retrieve any
kind of data they want from the database by applying different sets of queries. The file-
Based system has not this luxury of the query language.
15. Cost
The cost of the DBMS is high as compared to the other software and technology
available in the market. But if you consider the long run then DBMS is way far better
because its maintenance cost will be almost nothing.

CONCEPTUAL DATA MODEL


A Conceptual Data Model is an organized view of database concepts and their relationships.
This model describes the database at a very high level and is useful to understand the needs or
requirements of the database. It is this model, that is used in the requirement gathering process
i.e., before the Database Designers start making a particular database. The purpose of creating a
conceptual data model is to establish entities, their attributes, and relationships. In this data
modeling level, there is hardly any detail available on the actual database structure. Business
stakeholders and data architects typically create a conceptual data model.

The 3 basic tenants of Conceptual Data Model are

● Entity: A real- world thing


● Attribute: Characteristics or properties of an entity
● Relationship: Dependency or association between two entities

Key features:
● Represents the business data as seen in the real world and as understood by businesses.
● It facilitates an easy understanding of the business data, concepts, and rules.
● The contributors are generally Business stakeholders and Data Architects.
● It makes communication easy and clear as all stakeholders refer to specific entities with
the same nomenclature and thus reducing communication gaps.
● The main three components or elements of the Conceptual Data Model are
● Entity
● Attributes
● Relationship.
● This view, in a simple way, presents all the data entities referred to by the business and
their characteristics called attributes and the dependency or the connection between
entities called Relationship.
● In this data modeling, there are no details of the actual database or actual data that will be
stored.
Data model example:

● Customer and Product are two entities. Customer number and name are attributes of the
Customer entity
● Product name and price are attributes of product entity
● Sale is the relationship between the customer and product

Conceptual Data
Model
Characteristics of a conceptual data model

● Offers Organization-wide coverage of the business concepts.


● This type of Data Models is designed and developed for a business audience.
● The conceptual model is developed independently of hardware specifications like data
storage capacity, location or software specifications like DBMS vendor and technology.
The focus is to represent data as a user will see it in the “real world.”

Conceptual data models known as Domain models create a common vocabulary for all
stakeholders by establishing basic concepts and scope.
Representation of Data Models

Data Model gives us an idea that how the final system will look like after its complete
implementation. It defines the data elements and the relationships between the data elements.
Data Models are used to show how data is stored, connected, accessed and updated in the
database management system. Here, we use a set of symbols and text to represent the
information so that members of the organisation can communicate and understand it. Though
there are many data models being used nowadays but the Relational model is the most widely
used model. Apart from the Relational model, there are many other types of data models about
which we will study in details in this blog. Some of the Data Models in DBMS are:

1. Hierarchical Model

2. Network Model

3. Entity-Relationship Model

4. Relational Model

5. Object-Oriented Data Model

6. Object-Relational Data Model

7. Flat Data Model

8. Semi-Structured Data Model

9. Associative Data Model

10. Context Data Model

Hierarchical Model
Hierarchical Model was the first DBMS model. This model organizes the data in the hierarchical
tree structure. The hierarchy starts from the root which has root data and then it expands in the
form of a tree adding child node to the parent node. This model easily represents some of the
real-world relationships like food recipes, sitemap of a website etc. Example: We can represent
the relationship between the shoes present on a shopping website in the following way:

Features of a Hierarchical Model

1. One-to-many relationship: The data here is organized in a tree-like structure where the
one-to- many relationship is between the datatypes. Also, there can be only one path from
parent to any node. Example: In the above example, if we want to go to the
node sneakers we only have one path to reach there i.e. through men's shoes node.

2. Parent-Child Relationship: Each child node has a parent node but a parent node can
have more than one child node. Multiple parents are not allowed.

3. Deletion Proble m: If a parent node is deleted then the child node is automatically
deleted.

4. Pointe rs: Pointers are used to link the parent node with the child node and are used to
navigate between the stored data. Example: In the above example the 'shoes' node points
to the two other nodes 'women shoes' node and 'men's shoes' node.

Advantages of Hierarchical Model

● It is very simple and fast to traverse through a tree- like structure.


● Any change in the parent node is automatically reflected in the child node so, the
integrity of data is maintained.

Disadvantages of Hierarchical Model

● Complex relationships are not supported.

● As it does not support more than one parent of the child node so if we have some
complex relationship where a child node needs to have two parent node then that can't be
represented using this model.

● If a parent node is deleted, then the child node is automatically deleted.

Network Model

This model is an extension of the hierarchical model. It was the most popular model before the
relational model. This model is the same as the hierarchical model, the only difference is that a
record can have more than one parent. It replaces the hierarchical tree with a graph. Example: In
the example below we can see that node student has two parents i.e. CSE Department and
Library. This was earlier not possible in the hierarchical model.
Features of a Network Model

1. Ability to Merge more Relationships: In this model, as there are more relationships so
data is more related. This model has the ability to manage one-to-one relationships as
well as many-to- many relationships.

2. Many paths: As there are more relationships so there can be more than one path to the
same record. This makes data access fast and simple.

3. Circular Linked List: The operations on the network model are do ne with the help of
the circular linked list. The current position is maintained with the help of a program and
this position navigates through the records according to the relationship.

Advantages of Network Model

● 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.

Disadvantages of Network Model

● As more and more relationships need to be handled the system might get complex. So, a
user must be having detailed knowledge of the model to work with the model.

● Any change like updation, deletion, insertion is very complex.

Entity-Relationship Model

Entity-Relationship Model or simply ER Model is a high- level data model diagram. In this
model, we represent the real-world problem in the pictorial form to make it easy for the
stakeholders to understand. It is also very easy for the developers to understand the system by
just looking at the ER diagram. We use the ER diagram as a visual tool to represent an ER
Model. ER diagram has the following three components:

● Entities: Entity is a real- world thing. It can be a person, place, or even a


concept. Example: Teachers, Students, Course, Building, Department, etc are some of the
entities of a School Management System.

● Attributes: An entity contains a real-world property called attribute. This is the


characteristics of that attribute. Example: The entity teacher has the property like teacher
id, salary, age, etc.

● Relationship: Relationship tells how two attributes are related. Example: Teacher works
for a department.

Example:

In the above diagram, the entities are Teacher and Department. The attributes of Teacher entity
are Teacher_Name, Teacher_id, Age, Salary, Mobile_Number. The attributes of
entity Departme nt entity are Dept_id, Dept_name. The two entities are connected using the
relationship. Here, each teacher works for a department.

Features of ER Model

● Graphical Representation for Better Understanding: It is very easy and simple to


understand so it can be used by the developers to communicate with the stakeholders.

● ER Diagram: ER diagram is used as a visual tool for representing the model.

● Database Design: This model helps the database designers to build the database and is
widely used in database design.

Advantages of ER Model

● Simple: Conceptually ER Model is very easy to build. If we know the relationship


between the attributes and the entities, we can easily build the ER Diagram for the model.

● Effective Communication Tool: This model is used widely by the database designers for
communicating their ideas.

● Easy Conve rsion to any Model: This model maps well to the relational model and can
be easily converted relational model by converting the ER model to the table. This model
can also be converted to any other model like network model, hierarchical model etc.

Disadvantages of ER Model

● No industry standard for notation: There is no industry standard for developing an ER


model. So one developer might use notations which are not understood by other
developers.

● Hidden information: Some information might be lost or hidden in the ER model. As it is


a high- level view so there are chances that some details of information might be hidden.
Relational Model

Relational Model is the most widely used model. In this model, the data is maintained in the
form of a two-dimensional table. All the information is stored in the form of row and columns.
The basic structure of a relational model is tables. So, the tables are also called relations in the
relational model. Example: In this example, we have an Employee table.

Features of Relational Model

● Tuples: Each row in the table is called tuple. A row contains all the information about
any instance of the object. In the above example, each row has all the information about
any specific individual like the first row has information about John.

● Attribute or field: Attributes are the property which defines the table or relation. The
values of the attribute should be from the same domain. In the above example, we have
different attributes of the employee like Salary, Mobile_no, etc.

Advnatages of Relational Model

● Simple: This model is more simple 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 Indepe ndence: We can make changes in database structure without changing
the way to access the data. When we can make changes to the database structure without
affecting the capability to DBMS to access the data we can say that structural
independence has been achieved.

Disadvantages of Relational Model

● Hardware Overheads: For hiding the complexities and making things easier for the user
this model requires more powerful hardware computers and data storage devices.

● 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.

Object-Oriented Data Model


The real-world problems are more closely represented through the object-oriented data model. 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. This can be understood by the example given
below.
In the above example, we have two objects Employee and Department. All the data and
relationships of each object are contained as a single unit. The attributes like Name, Job_title of
the employee and the methods which will be performed by that object are stored as a single
object. The two objects are connected through a common attribute i.e the Department_id and the
communication between these two will be done with the help of this common id.

Object-Relational Model

As the name suggests it is a combination of both the relational model and the object-oriented
model. This model was built to fill the gap between object-oriented model and the relational
model. We can have many advanced features like we can make complex data types according to
our requirements using the existing data types. The problem with this model is that this can get
complex and difficult to handle. So, proper understanding of this model is required.

Flat Data Model

It is a simple model in which the database is represented as a table consisting of rows and
columns. To access any data, the computer has to read the entire table. This makes the modes
slow and inefficient.
Semi-Structured Model

Semi-structured model is an evolved form of the relational model. We cannot differentiate


between data and schema in this model. Example: Web-Based data sources which we can't
differentiate between the schema and data of the website. In this model, some entities may have
missing attributes while others may have an extra attribute. This model gives flexibility in
storing the data. It also gives flexibility to the attributes. Example: If we are storing any value in
any attribute then that value can be either atomic value or a collection of values.

Associative Data Model

Associative Data Model is a model in which the data is divided into two parts. Everything which
has independent existence is called as an entity and the relationship among these entities are
called association. The data divided into two parts are called items and links.
● Item: Items contain the name and the identifier (some numeric value).
● Links: Links contain the identifier, source, verb and subject.
Example : Let us say we have a statement "The world cup is being hosted by London from 30
May 2020". In this data two links need to be stored:

1. The world cup is being hosted by London. The source here is 'the world cup', the verb 'is
being' and the target is 'London'.

2. ...from 30 May 2020. The source here is the previous link, the verb is 'from' and the target
is '30 May 2020'.

This is represented using the table as follows:


Context Data Model
Context Data Model is a collection of several models. This consists of models like network
model, relational models etc. Using this model, we can do various types of tasks which are not
possible using any model alone.

This is all about the various data model of DBMS

DATABASE SYSTEM

Database Management System

A database management system (DBMS) is a software package designed to define, manipulate,


retrieve and manage data in a database. A DBMS generally manipulates the data itself, the data
format, field names, record structure, and file structure. It also defines rules to validate and
manipulate this data.
In other words, a database management system is a combination of hardware and software that
can be used to set up and monitor a database and can manage the updation and retrieval of the
database that has been stored in it.

PURPOSE:

The purpose of DBMS is to transform the following −

● Data into information.

● Information into knowledge.

● Knowledge to the action.

The diagram given below explains the process as to how the transformation of data to
information to knowledge to action happens respectively in the DBMS –
Types of DBMS:

There are 4 major types of DBMS.

● Hierarchical - this type of DBMS employs the "parent-child" relationship of storing


data. This type of DBMS is rarely used nowadays. Its structure is like a tree with nodes
representing records and branches representing fields. The windows registry used in
Windows XP is an example of a hierarchical database. Configuration settings are stored
as tree structures with nodes.

● Network DBMS - this type of DBMS supports many-to- many relations. This usually
results in complex database structures. RDM Server is an example of a database
management system that implements the network model.

● Relational DBMS - this type of DBMS defines database relationships in the form of
tables, also known as relations. Unlike network DBMS, RDBMS does not support many
to many relationships. Relational DBMS usually have pre-defined data types that they
can support. This is the most popular DBMS type in the market. Examples of relational
database management systems include MySQL, Oracle, and Microsoft SQL Server
database.

● Object-Oriented DBMS - this type supports the storage of new data types. The data to
be stored is in the form of objects. The objects to be stored in the database have attributes
(i.e. gender, ager) and methods that define what to do with the data. PostgreSQL is an
example of an object-oriented relational DBMS.

DATABASE LANGUAGES

A DBMS has appropriate languages and interfaces to express database queries and updates.
Database languages can be used to read, store and update the data in the database.

Once data is stored or filled it requires manipulation like insertion, deletion, updating, and
modification of data. For these operations a set of languages are provided by the database
management system (DBMS). So, the database languages are used to read, update and store data
in the database.

The different types of DBMS languages are as follows −

● Data Definition Language (DDL) − Create, Drop, Truncate, Rename.

● Data Manipulation language (DML) − Select, Insert, Delete, Update.

● Data Control Language (DCL) − Revoke, Grant.

● Transaction Control Language (TCL) − Rollback, Commit.

The DBMS languages are pictorially represented as follows −


1. Data Definition Language (DDL)

o DDL stands for Data Definition Language. It is used to define database structure or
pattern.
o It is used to create schema, tables, indexes, constraints, etc. in the database.

o Using the DDL statements, you can create the skeleton of the database.

o Data definition language is used to store the information of metadata like the number of
tables and schemas, their names, indexes, columns in each table, constraints, etc.

Here are some tasks that come under DDL:

o Create: It is used to create objects in the database.


o Alte r: It is used to alter the structure of the database.

o Drop: It is used to delete objects from the database.

o Truncate: It is used to remove all records from a table.


o Rename: It is used to rename an object.

o Comment: It is used to comment on the data dictionary.

These commands are used to update the database schema that's why they come under Data
definition language.

2. Data Manipulation Language

DML stands for Data Manipulation Language. It is used for accessing and manipulating data in
a database. It handles user requests.

Here are some tasks that come under DML:

o Select: It is used to retrieve data from a database.

o Insert: It is used to insert data into a table.


o Update: It is used to update existing data within a table.

o Delete: It is used to delete all records from a table.


o Merge: It performs UPSERT operation, i.e., insert or update operations.

o Call: It is used to call a structured query language or a Java subprogram.


o Explain Plan: It has the parameter of explaining data.

o Lock Table: It controls concurrency.

3. Data Control Language

o DCL stands for Data Control Language. It is used to retrieve the stored or saved data.
o The DCL execution is transactional. It also has rollback parameters.

(But in Oracle database, the execution of data control language does not have the feature
of rolling back.)

Here are some tasks that come under DCL:

o Grant: It is used to give user access privileges to a database.


o Revoke: It is used to take back permissions from the user.

There are the following operations which have the authorization of Revoke:

CONNECT, INSERT, USAGE, EXECUTE, DELETE, UPDATE and SELECT.

4. Transaction Control Language

TCL is used to run the changes made by the DML statement. TCL can be grouped into a logical
transaction.

Here are some tasks that come under TCL:

o Commit: It is used to save the transaction on the database.


o Rollback: It is used to restore the database to original since the last Commit.
DATABASE SYSTEM ARCHITECTURE

A Database Architecture is a representation of DBMS design. It helps to design, develop,


implement, and maintain the database management system. A DBMS architecture allows
dividing the database system into individual components that can be independently modified,
changed, replaced, and altered. It also helps to understand the components of a database.
A Database stores critical information and helps access data quickly and securely. Therefore,
selecting the correct Architecture of DBMS helps in easy and efficient data management.

o The basic client/server architecture is used to deal with a large number of PCs, web
servers, database servers and other components that are connected with networks.

o The client/server architecture consists of many PCs and a workstation which are
connected via the network.
o DBMS architecture depends upon how users are connected to the database to get their
request done.

Types of DBMS Architecture

There are three types of DBMS Architecture. They are

1-Tier Architecture

2-Tier Architecture

3-Tier Architecture
Database architecture can be seen as a single tier or multi- tier. But logically, database
architecture is of two types like: 2-tier architecture and 3-tier architecture.

1-Tier Architecture
o 1 Tier Architecture in DBMS is the simplest architecture of Database in which the client,
server, and Database all reside on the same machine.

o In this architecture, the database is directly available to the user. It means the user can
directly sit on the DBMS and uses it.

o Any changes done here will directly be done on the database itself. It doesn't provide a
handy tool for end users.

o The 1-Tier architecture is used for development of the local application, where
programmers can directly communicate with the database for the quick response.

2-Tier Architecture
o A 2 Tier Architecture in DBMS is a Database architecture where the presentation layer
runs on a client (PC, Mobile, Tablet, etc.), and data is stored on a server called the second
tier.
o Two tier architecture provides added security to the DBMS as it is not exposed to the
end-user directly. It also provides direct and faster communication.
o The 2-Tier architecture is same as basic client-server. In the two-tier architecture,
applications on the client end can directly communicate with the database at the server
side. For this interaction, API's like: ODBC, JDBC are used.

o The user interfaces and application programs are run on the client-side.
o The server side is responsible to provide the functionalities like: query processing and
transaction management.

o To communicate with the DBMS, client-side application establishes a connection with


the server side.

Fig: 2-tier Architecture

3-Tier Architecture
o A 3 Tier Architecture in DBMS is the most popular client server architecture in DBMS in
which the development and maintenance of functional processes, logic, data access, data
storage, and user interface is done independently as separate modules.
o The 3-Tier architecture contains another layer between the client and server. In this
architecture, client can't directly communicate with the server.
o The application on the client-end interacts with an application server which further
communicates with the database system.
o End user has no idea about the existence of the database beyond the application server.
The database also has no idea about any other user beyond the application.

o 3-Tier database Architecture design is an extension of the 2-tier client-server architecture.


A 3-tier architecture has the following layers:
✔ Presentation layer (your PC, Tablet, Mobile, etc.)
✔ Application layer (server)
✔ Database Server

o The 3-Tier architecture is used in case of large web application.


DATABASE APPLICATIONS:

Applications where we use Database Management Systems are:

● Telecom: There is a database to keeps track of the information regarding calls made,
network usage, customer details etc. Without the database systems it is hard to maintain
that huge amount of data that keeps updating every millisecond.
● Industry: Where it is a manufacturing unit, warehouse or distribution centre, each one
needs a database to keep the records of ins and outs. For example distribution centre
should keep a track of the product units that supplied into the centre as well as the
products that got delivered out from the distribution centre on each day; this is where
DBMS comes into picture.
● Banking System: For storing customer info, tracking day to day credit and debit
transactions, generating bank statements etc. All this work has been done with the help of
Database management systems.
● Sales: To store customer information, production information and invoice details.
● Airlines: To travel though airlines, we make early reservations, this reservation
information along with flight schedule is stored in database.
● Education sector: Database systems are frequently used in schools and colleges to store
and retrieve the data regarding student details, staff details, course details, exam details,
payroll data, attendance details, fees details etc. There is a hell lot amount of inter-related
data that needs to be stored and retrieved in an efficient manner.
● Online shopping: You must be aware of the online shopping websites such as Amazon,
Flipkart etc. These sites store the product information, your addresses and preferences,
credit details and provide you the relevant list of products based on your query. All this
involves a Database management system.
● Finance : For storing information about stock, sales, and purchases of financial
instruments like stocks and bonds.
● HR Management: For information about employees, salaries, payroll, deduction,
generation of paychecks, etc.
● Manufacturing: It is used for the management of supply chain and for tracking
production of items. Inventories status in warehouses.

● Social Media Websites: By filling the required details we are able to access social media
platforms. Many users daily sign up for social websites such as Facebook, Pinterest and
Instagram. All the information related to the users are stored and maintained with the
help of DBMS.

You might also like