File Processing System & Database Management System.
Introduction
In this article, I will cover File Processing System & Database system in detail.
File Processing System.
- A file processing system is a collection of programs that store and manage files in computer hard-disk.File processing system has more data redundancy, less data redundancy in dbms. File processing system provides less flexibility in accessing data, whereas dbms has more flexibility in accessing data.
Types Of File Processing System:
- Relative-record-number processing
- Consecutive processing.
- Sequential-by-key processing.
- Random-by-key processing.
- Sequential-within-limits processing.
Disadvantages of file processing:
- Concurrent Access: – Accessing the same data from the same file is called concurrent access. In the file system, concurrent access leads to incorrect data. For example, a student wants to borrow a book from the library.
- Security: – Each file can be password protected. But what if you have to give access to only a few records in the file? For example, the user has to be given access to view only their bank account information in the file. This is very difficult in the file system.
- Atomicity: – If there is any failure to insert, update, or delete in the file system, there is no mechanism to switch back to the previous state. Imagine marks for one particular subject need to be entered into the Report file and then total needs to be calculated. But after entering the new marks, the file is closed without saving. That means whole of the required transaction is not performed.
Definition of Database management system (DBMS):
A Database Management System (DBMS) is software designed to store, retrieve, define, and manage data in a database.
- DBMS examples include:
- MySQL
- SQL Server
- Oracle
- dBASE
- FoxPro
Database languages:
Database languages are used to read, update and store data in a database. There are several such languages that can be used for this purpose; one of them is SQL
- Data Definition Language (DDL)
DDL is used for specifying the database schema. It is used for creating tables, schema, indexes, constraints etc. in database. Lets see the operations that we can perform on database using DDL:
2.Data Manipulation Language (DML)
DML is used for accessing and manipulating data in a database. The following operations on database comes under DML:Data Manipulation Languag.
3.Data Control language (DCL)
DCL is used for granting and revoking user access on a database
4.Transaction Control Language(TCL)
The changes in the database that we made using DML commands are either performed or rollbacked using TCL.
- Advantages of DBMS
- Data sharing. The integration of all the data, for an organization, within a database system has many advantages.
- Data independence. Another advantage of a database management system is how it allows for data independence.
- Transaction processing.
- Provision for multiple views of data.
- Backup and recovery facilities.
- Disadvantages
- Database systems are complex, difficult, and time-consuming to design.
- Substantial hardware and software start-up costs.
- Damage to database affects virtually all applications programs.
- Extensive conversion costs in moving form a file-based system to a database system.
- Initial training required for all programmers and users.