100% found this document useful (2 votes)
1K views

File System Vs DBMS

In a traditional file system: 1. Data can be redundant and inconsistent across multiple files and programs since there is no centralized control. 2. Changing a data field requires modifying individual programs since data is defined within programs. 3. Ensuring atomicity of transactions is difficult when data is spread across multiple files. 4. Sharing of data is not allowed or is complex without a centralized system. 5. Data integrity constraints cannot be automatically enforced on individual files.

Uploaded by

Game play
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
1K views

File System Vs DBMS

In a traditional file system: 1. Data can be redundant and inconsistent across multiple files and programs since there is no centralized control. 2. Changing a data field requires modifying individual programs since data is defined within programs. 3. Ensuring atomicity of transactions is difficult when data is spread across multiple files. 4. Sharing of data is not allowed or is complex without a centralized system. 5. Data integrity constraints cannot be automatically enforced on individual files.

Uploaded by

Game play
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 13

Data base management

system
Traditional File system processing vs DBMS
Basic Definitions

•Data: Known facts that can be recorded.


example
dob of employee
marks obtain by a student
correspondence address etc.
Database
• Database: A collection of related data.
company data base may include information regarding following.
employee
department
projects
• Database Management System (DBMS): A software package/ system to
facilitate the creation and maintenance of a computerized database.
Example:
ORACLE
MY SQL
SQL SERVER
DB2
Traditional file system
processing
What is File System

• A File Management system is a DBMS that allows access to


single files or tables at a time. In a File System, data is directly
stored in set of files. It contains flat files that have no relation to
other files.
• Example : student information system for a college.
Traditional File system processing vs DBMS

• Data Redundancy
• Data inconsistency
• Program data insulation
• Atomicity problem
• Sharing of data
• Data integrity 
Data Redundancy
• 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.
while redundancy not possible in case of DBMS.
Data inconsistency

Data redundancy may produce inconsistency in the system.


Example: student (name class year address) is there in all common files
Suppose address is being changed for particular students it is possible the
changes to the address for him can not changed for all departments where
his data is being used. It results different values for him for address so
system not remains consistent. Inconsistency has been there in the system.
as no data redundancy in case of dbms inconsistency will produced.
Program data independence
In file system data is defined in the program which is access that data.
Suppose in student data (name,class,branch,address) you want add new
data field email_id . For that in the case of file system you need to make
change into program it self. It is a tedious job.
while in case of DBMS it is a very simple task due to Program
data independence.
Atomicity problem

• Atomicity of a transaction refers to “All or nothing”, which means either all


the operations in a transaction executes or none.
Ex. Suppose 1000 RS is being transfer from account A to B it is being debited
from account but not credited in account B transaction is not complete.
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.
Sharing of data

• 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 integrity 

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

You might also like