2 File System Vs Database System
2 File System Vs Database System
DBMS is a collection of data. In DBMS, the File system is a collection of data. In this
user is not required to write the procedures. system, the user has to write the
procedures for managing the database.
DBMS gives an abstract view of data that File system provides the detail of the data
hides the details. representation and storage of data.
DBMS provides a crash recovery mechanism, File system doesn't have a crash
i.e., DBMS protects the user from the system mechanism, i.e., if the system crashes while
failure. entering some data, then the content of
the file will lost.
DBMS provides a good protection mechanism. It is very difficult to protect a file under the
file system.
DBMS contains a wide variety of sophisticated File system can't efficiently store and
techniques to store and retrieve the data. retrieve the data.
DBMS takes care of Concurrent access of data In the File system, concurrent access has
using some form of locking. many problems like redirecting the file
while other deleting some information or
updating some information.