0% found this document useful (0 votes)
261 views8 pages

Purpose of Database System: What Is DBMS?

DBMS stands for Database Management System and is used to store and manage data in an organized manner. It allows for easy storage, retrieval, updating and deletion of data. Some key benefits of DBMS over traditional file-based systems include reduced data redundancy, improved data integrity, data sharing capabilities and built-in security features. While more powerful than file systems, DBMS also have some disadvantages such as increased complexity, costs and the potential for reduced performance compared to specialized file-based applications.

Uploaded by

Balkrishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
261 views8 pages

Purpose of Database System: What Is DBMS?

DBMS stands for Database Management System and is used to store and manage data in an organized manner. It allows for easy storage, retrieval, updating and deletion of data. Some key benefits of DBMS over traditional file-based systems include reduced data redundancy, improved data integrity, data sharing capabilities and built-in security features. While more powerful than file systems, DBMS also have some disadvantages such as increased complexity, costs and the potential for reduced performance compared to specialized file-based applications.

Uploaded by

Balkrishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

What is DBMS?

DBMS stands for Database Management System.

Database is a collection of data and Management System is a set of programs to


store and retrieve those data.

Based on this we can define DBMS like this: DBMS is a collection of inter-
related data and set of programs to store & access those data in an easy and
effective manner.

What is the need of DBMS?

Database systems are basically developed for large amount of data. When
dealing with huge amount of data, there are two things that require
optimization: Storage of data and retrieval of data.

Purpose of database system


The main purpose of database systems is to manage the data. Consider a
university that keeps the data of students, teachers, courses, books etc. To
manage this data we need to store this data somewhere where we can add new
data, delete unused data, update outdated data, retrieve data, to perform these
operations on data we need a Database management system that allows us to
store the data in such a way so that all these operations can be performed on the
data efficiently.

Drawbacks of File system


 Data redundancy: Data redundancy refers to the duplication of data, lets
say we are managing the data of a college where a student is enrolled for
two courses, the same student details in such case will be stored twice,
which will take more storage than needed. Data redundancy often leads to
higher storage costs and poor access time.
 Data inconsistency: Data redundancy leads to data inconsistency, lets
take the same example that we have taken above, a student is enrolled for
two courses and we have student address stored twice, now lets say
student requests to change his address, if the address is changed at one
place and not on all the records then this can lead to data inconsistency.
 Data Isolation: Because data are scattered in various files, and files may
be in different formats, writing new application programs to retrieve the
appropriate data is difficult.
 Dependency on application programs: Changing files would lead to
change in application programs.
 Atomicity issues: Atomicity of a transaction refers to “All or nothing”, which
means either all the operations in a transaction executes or none.

For example: Lets say Steve transfers 100$ to Negan’s account. This
transaction consists multiple operations such as debit 100$ from Steve’s
account, credit 100$ to Negan’s account. Like any other device, a computer
system can fail lets say it fails after first operation then in that case Steve’s
account would have been debited by 100$ but the amount was not credited
to Negan’s account, in such case the rollback of operation should occur to
maintain the atomicity of transaction. It is difficult to achieve atomicity in
file processing systems.

 Data Security: Data should be secured from unauthorised access, for


example a student in a college should not be able to see the payroll details
of the teachers, such kind of security constraints are difficult to apply in file
processing systems.

Advantages of DBMS over File system –

 Data redundancy and inconsistency – Redundancy is the concept of repetition


of data i.e. each data may have more than a single copy. The file system cannot
control redundancy of data as each user defines and maintains the needed files for
a specific application to run. There may be a possibility that two users are
maintaining same files data for different applications. Hence changes made by one
user does not reflect in files used by second users, which leads to inconsistency of
data. Whereas DBMS controls redundancy by maintaining a single repository of
data that is defined once and is accessed by many users. As there is no or less
redundancy, data remains consistent.
 Data sharing – File system does not allow sharing of data or sharing is too
complex. Whereas in DBMS, data can be shared easily due to centralized system.
 Data concurrency – Concurrent access to data means more than one user is
accessing the same data at the same time. Anomalies occur when changes made
by one user gets lost because of changes made by other user. File system does
not provide any procedure to stop anomalies. Whereas DBMS provides a locking
system to stop anomalies to occur.
 Data searching – For every search operation performed on file system, a different
application program has to be written. While DBMS provides inbuilt searching
operations. User only have to write a small query to retrieve data from database.
 Data integrity – There may be cases when some constraints need to be applied
on the data before inserting it in database. The file system does not provide any
procedure to check these constraints automatically. Whereas DBMS maintains
data integrity by enforcing user defined constraints on data by itself.

Disadvantages of DBMS
The disadvantages of the database approach are summarized as follows:
1. Complexity : The provision of the functionality that is expected of a good DBMS makes
the DBMS an extremely complex piece of software. Database designers, developers,
database administrators and end-users must understand this functionality to take full
advantage of it. Failure to understand the system can lead to bad design decisions, which
can have serious consequences for an organization.
2. Size : The complexity and breadth of functionality makes the DBMS an extremely large
piece of software, occupying many megabytes of disk space and requiring substantial
amounts of memory to run efficiently.
3. Performance: Typically, a File Based system is written for a specific application, such
as invoicing. As result, performance is generally very good. However, the DBMS is written
to be more general, to cater for many applications rather than just one. The effect is that
some applications may not run as fast as they used to.
4. Higher impact of a failure: The centralization of resources increases the vulnerability
of the system. Since all users and applications rely on the ~vailabi1ity of the DBMS, the
failure of any component can bring operations to a halt.
5. Cost of DBMS: The cost of DBMS varies significantly, depending on the environment
and functionality provided. There is also the recurrent annual maintenance cost.
File System vs DBMS – Difference between File System and
DBMS

File Management System Database Management System

File System is a general, easy-to-use


system to store general files which Database management system is used
require less security and constraints. when security constraints are high.

Data Redundancy is more in file Data Redundancy is less in database


management system. management system.

Data Inconsistency is less in database


Data Inconsistency is more in file system. management system.

Centralisation is hard to get when it Centralisation is achieved in Database


comes to File Management System. Management System.

User locates the physical address of the In Database Management System, user is
files to access data in File Management unaware of physical address where data
System. is stored.

Security is low in File Management Security is high in Database Management


System. System.

File Management System stores Database Management System stores


unstructured data as isolated data structured data which have well defined
files/entities. constraints and interrelation.
Data Abstraction in DBMS
Database systems are made-up of complex data structures. To ease the user
interaction with database, the developers hide internal irrelevant details from
users. This process of hiding irrelevant details from user is called data
abstraction.

We have three levels of abstraction:


Physical level: This is the lowest level of data abstraction. It describes how data
is actually stored in database. You can get the complex data structure details at
this level.

Logical level: This is the middle level of 3-level data abstraction architecture. It
describes what data is stored in database.

View level: Highest level of data abstraction. This level describes the user
interaction with database system.

DBMS Schema
Definition of schema: Design of a database is called the schema. Schema is of
three types: Physical schema, logical schema and view schema.

For example: In the following diagram, we have a schema that shows the
relationship between three tables: Course, Student and Section. The diagram
only shows the design of the database, it doesn’t show the data present in those
tables. Schema is only a structural view(design) of a database as shown in the
diagram below.

DBMS Instance
Definition of instance: The data stored in database at a particular moment of
time is called instance of database. Database schema defines the variable
declarations in tables that belong to a particular database; the value of these
variables at a moment of time is called the instance of that database.

For example, lets say we have a single table student in the database, today the
table has 100 records, so today the instance of the database has 100 records.
Lets say we are going to add another 100 records in this table by tomorrow so
the instance of database tomorrow will have 200 records in table. In short, at a
particular moment the data stored in database is called the instance, that
changes over time when we add or delete data from the database.

Importance of data model-

Types of DBMS Entities

The following are the types of entities in DBMS:


Strong Entity

The strong entity has a primary key. Weak entities are dependent on strong entity. Its existence is
not dependent on any other entity.

Strong Entity is represented by a single rectangle:

Weak Entity

The weak entity in DBMS do not have a primary key and are dependent on the parent entity. It
mainly depends on other entities.

Weak Entity is represented by double rectangle:

Codd Rules
Codd rules were proposed by E.F. Codd which should be satisfied by relational model.
1. Foundation Rule: For any system that is advertised as, or claimed to be, a
relational data base management system, that system must be able to manage
data bases entirely through its relational capabilities.
2. Information Rule: Data stored in Relational model must be a value of some cell of
a table.
3. Guaranteed Access Rule: Every data element must be accessible by table name,
its primary key and name of attribute whose value is to be determined.
4. Systematic Treatment of NULL values: NULL value in database must only
correspond to missing, unknown or not applicable values.
5. Active Online Catalog: Structure of database must be stored in an online catalog
which can be queried by authorized users.
6. Comprehensive Data Sub-language Rule: A database should be accessible by a
language supported for definition, manipulation and transaction management
operation.
7. View Updating Rule: Different views created for various purposes should be
automatically updatable by the system.
8. High level insert, update and delete rule: Relational Model should support
insert, delete, update etc. operations at each level of relations. Also, set operations
like Union, Intersection and minus should be supported.
9. Physical data independence: Any modification in the physical location of a table
should not enforce modification at application level.
10. Logical data independence: Any modification in logical or conceptual schema of
a table should not enforce modification at application level. For example, merging
of two tables into one should not affect application accessing it which is difficult to
achieve.
11. Integrity Independence: Integrity constraints modified at database level should
not enforce modification at application level.
12. Distribution Independence: Distribution of data over various locations should not
be visible to end-users.
13. Non-Subversion Rule: Low level access to data should not be able to bypass
integrity rule to change data.

You might also like