0% found this document useful (0 votes)
2 views

DBMS vs FILE System

A Database Management System (DBMS) is software that facilitates the creation, management, and retrieval of data in a structured manner, ensuring data integrity, security, and backup. It can be classified into Relational (RDBMS) and Non-Relational (NoSQL) systems, each suited for different data organization needs. In contrast, file systems organize files on storage media but suffer from issues like data redundancy and inconsistency, making DBMS a more efficient choice for managing complex data.

Uploaded by

riturajpandey911
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

DBMS vs FILE System

A Database Management System (DBMS) is software that facilitates the creation, management, and retrieval of data in a structured manner, ensuring data integrity, security, and backup. It can be classified into Relational (RDBMS) and Non-Relational (NoSQL) systems, each suited for different data organization needs. In contrast, file systems organize files on storage media but suffer from issues like data redundancy and inconsistency, making DBMS a more efficient choice for managing complex data.

Uploaded by

riturajpandey911
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

❑ Database management system (DBMS) is system software that is used to

create and manage databases (the collection of related data). The main purpose of
database systems is to manage the data.

➢ It is used for storing data and retrieving the data effectively when it is needed. It also
provides proper security measures for protecting the data from unauthorized access. In
Database Management System the data can be fetched by SQL queries and relational
algebra. It also provides mechanisms for data recovery and data backup.
➢ End users can use a DBMS to create, protect, read, update, and delete data in a database. The
DBMS, the most common type of data management platform, essentially serves as an interface
between databases and users or application programmers, ensuring that data is consistently
organized and easily accessible.
➢ Example: (DBMS software's)
Oracle, MySQL, MS SQL server, IBM Db2, PostgreSQL.

❑ Database is a collection of interrelated data which helps in the efficient retrieval,


insertion, and deletion of data from the database and organizes the data in the form
of tables, views, schemas, reports, etc. For Example, a university database organizes
the data about students, faculty, admin staff, etc. which helps in the efficient
retrieval, insertion, and deletion of data from it.
❖ Advantages of using a DBMS:
1. Data organization: A DBMS allows for the organization and storage of data in a
structured manner, making it easy to retrieve and query the data as needed.
2. Data integrity: A DBMS provides mechanisms for enforcing data integrity constraints,
such as constraints on the values of data and access controls that restrict who can
access the data.
3. Concurrent access: A DBMS provides mechanisms for controlling concurrent access to
the database, to ensure that multiple users can access the data without conflicting with
each other.
4. Data security: A DBMS provides tools for managing the security of the data, such as
controlling access to the data and encrypting sensitive data.
5. Backup and recovery: A DBMS provides mechanisms for backing up and recovering the
data in the event of a system failure.
6. Data sharing: A DBMS allows multiple users to access and share the same data, which
can be useful in a collaborative work environment.

❖ Disadvantages of using a DBMS:


1. Complexity: DBMS can be complex to set up and maintain, requiring specialized
knowledge and skills.
2. Performance overhead: The use of a DBMS can add overhead to the performance of an
application, especially in cases where high levels of concurrency are required.
3. Scalability: The use of a DBMS can limit the scalability of an application, since it requires
the use of locking and other synchronization mechanisms to ensure data consistency.
4. Cost: The cost of purchasing, maintaining and upgrading a DBMS can be high, especially
for large or complex systems.
5. Limited use cases: Not all use cases are suitable for a DBMS, some solutions don’t need
high reliability, consistency or security and may be better served by other types of data
storage.

➢ DBMS can be classified into two types: Relational Database


Management System (RDBMS) and Non-Relational Database Management System
(NoSQL or Non-SQL)

RDBMS: Data is organized in the form of tables and each table has a set of rows and columns.
The data is related to each other through primary and foreign keys.
NoSQL: Data is organized in the form of key-value pairs, document, graph, or column-based.
These are designed to handle large-scale, high-performance scenarios.

❑ File System:
The file system is basically a way of arranging the files in a storage medium like a hard disk.
The file system organizes the files and helps in the retrieval of files when they are required.
File systems consist of different files which are grouped into directories. The directories
further contain other folders and files. The file system performs basic operations like
management, file naming, giving access rules, etc.
Example: NTFS (New Technology File System), EXT (Extended File System).

❖ Drawbacks of File system


1. Data redundancy: Data redundancy refers to the duplication of data, let's 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.
2. 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.
3. 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.
4. Dependency on application programs: Changing files would lead to change in
application programs.
5. Atomicity issues: Atomicity of a transaction refers to “All or nothing”, which means
either all the operations in a transaction executes or none.
6. Data Security: Data should be secured from unauthorized 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.

❑ DBMS vs FILE SYSTEM

You might also like