What are the four specific problems associated with file processing systems?

Advantage and Disadvantages of File-oriented system are given below

Advantage of File-oriented system:

1. Backup:

  • It is possible to take faster and automatic back-up of database stored in files of computer-based systems.
  • computer systems provide functionalities to serve this purpose.it is also possible to develop specific application program for this purpose.

2. Compactness:

  • It is possible to store data compactly.

3. Data Retrieval:

  • Computer-based systems provide enhanced data retrieval techniques to retrieve data stored in files in easy and efficient way.

4. Editing:

  • It is easy to edit any information stored in computers in form of files.
  • Specific application programs or editing software can be used for this purpose.

5. Remote Access:

  • In computer-based systems,it is possible to access data remotely.
  • so,to access data it is not necessary for a user to remain present at location where these data are kept.

6. Sharing:

  • Data stored in files of computer-based systems ca be shared among multiple users at a same time.

Disadvantage of File-oriented system:

1. Data Redundancy:

  • It is possible that the same information may be duplicated in different files.this leads to data redundancy results in memory wastage.

2. Data Inconsistency:

  • Because of data redundancy,it is possible that data may not be in consistent state.

3. Difficulty in Accessing Data:

  • Accessing data is not convenient and efficient in file processing system.

4. Limited Data Sharing:

  • Data are scattered in various files.also different files may have different formats and these files may be stored in different folders may be of different departments.
  • So, due to this data isolation, it is difficult to share data among different applications.

5. Integrity Problems:

  • Data integrity means that the data contained in the database in both correct and consistent.for this purpose the data stored in database must satisfy correct and constraints.

6. Atomicity Problems:

  • Any operation on database must be atomic.
  • this means, it must happen in its entirely or not at all.

7. Concurrent Access Anomalies:

  • Multiple users are allowed to access data simultaneously.this is for the sake of better performance and faster response.

8. Security Problems:

  • Database should be accessible to users in limited way.
  • Each user should be allowed to access data concerning his requirements only.


Data redundancy: Data redundancy means duplication of same data or data files in different places. Flat file systems are suffered from the problem of high data redundancy. For example, record (such as student id, name, level, program, section etc) of a student may appear in library data files as well as examination data files. This redundancy leads to higher storage and access cost. On the other hand database management systems can greatly reduce the problem of data redundancy. Note that DBMS cannot remove data redundancy problem completely.

 

Data inconsistency: Data inconsistency is side effect of data redundancy. Data is said to be inconsistent if various copies of the same data may no longer agree. Data inconstancy occurs if changed data is reflected in data files in one place but not elsewhere in the system. For example, if library data file contains cell number of a student as 9841567843 but examination data files stores 9851167895 as cell number of the student then we can say that data is inconsistent. Flat file systems may suffer from the problem of data inconsistency. But database systems can remove the problem of data inconstancy by automatically propagating data updates done in one file in the database in other data files.

 

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 in flat file systems. For example, one data file may contain data separated of comma and another data file may contain data separated by white space.

What are the four specific problems associated with file processing systems?
What are the four specific problems associated with file processing systems?

 

 

 

(a)

Figure: Data files (a) Data separated by comma (b) Data separated by white space Database management systems provide shared access to centrally stored data therefore it is easy for application programs to retrieve required data from centralized database. Application programs do not need to bother about format of stored data.

 

Difficulty in accessing data: File processing systems do not allow required data to be retrieved in efficient and convenient way. For example, assume we already have program to generate the list of books on the basis of subject. Now, if we need to generate the list of books on the basis of author name, either we need to extract the data from book data files manually or we should request the programmer to write a program to retrieve required data from the book data file. Both of the alternatives are not satisfactory.

 

Integrity problems: Integrity means correctness of data before and after execution of a transaction. Integrity constraints are condition applied to the data. For example, if maximum salary in an organization is 150,000 then we have the integrity constraint ―salary ≤ 150,000‖. Integrity constraints are important to maintain correctness of data. It plays vital to prevent users from doing mistakes. For example, if user mistakenly types 200,000 in place of 20,000 while transferring salary of an employee in his/her account, specified integrity constrain is violated and hence the system tell the user about the mistake.

Unfortunately, flat file systems do not allow us to specify integrity constraint and hence it is difficult to maintain correctness of data. On the other hand, database management systems allow us to specify integrity constraints on data therefore relatively it is easy to maintain correctness of data

.

Atomicity problems: Execution of transactions must be atomic. This means transactions must execute at its entirety or not at all. If execution of transaction is not atomic, it leaves database in incorrect sate. Consider the example of transaction that transfers 5000 rupees from account A to account B.

If the execution of transaction is failed at the point specified in above figure, it causes 5000 rupees to be deducted from account A without depositing it in account B. File processing system do not guarantee atomic execution of transactions and hence this type of problems may occur in databases. But database systems guarantees atomicity of execution of transaction and hence above mentioned problem can be eliminated.

What are the four specific problems associated with file processing systems?
Point of Failure

 

 

 

Concurrent-access anomalies: Concurrent updates to same data by different transactions at the same time may result in inconsistent data. Consider bank account ‗A‘, containing 50,000 Rs. If two customers withdraw funds say 15,000

 

and 20,000 respectively from account A at about the same time, the result of the concurrent executions may leave the account in an incorrect (or inconsistent) state, if the programs executing on behalf of each withdrawal read the old balance as below. Flat file systems do not supports execution of concurrent transactions and hence may suffer from the problem mentioned below. But, database systems support concurrent execution of transactions on the same data without resulting into inconstant data.

 

 

Withdraw by Customer1

(T1)

Withdraw by  Customer2

(T2)

Read (A) A=A-15000

 

 

Write (A)

 

 

Read (A) A=A-20000

 

Write (A)

 

 

What are the four specific problems associated with file processing systems?

What are the four specific problems associated with file processing systems?

Reads old balance Final Balance=30000 Wrong!!!!!!!!

It must be 15000

 

Security problems: In database system we may create different user accounts and provide different authorization to different users. Thus we are able to hide certain information from some users. For example, in a banking system, payroll personnel need to see only that part of the database that has information about the various bank employees. They do not need access to information about customer accounts. This type of restriction is essential for security purpose. But, file processing system do not allow us to create user accounts thus all users have equal access to the data. Due to this it is difficult to maintain security of flat file systems. Besides this file processing systems do not have any provisions for periodic backup of data and recovery from data loss which are provided by database management systems.

What are the problems of file processing?

Disadvantages of File Processing System :.
Slow access time – ... .
Presence of redundant data – ... .
Inconsistent Data – ... .
Data Integrity Problems – ... .
Difficulty in recovery of corrupt data – ... .
Lack of Atomicity – ... .
Problem in Concurrent Access – ... .
Unauthorized Access –.

What are four specific problems associated with file processing systems?

Data redundancy and inconsistency. Integrity Problems. Security ProblemsDifficulty in accessing data. Data isolation.

What are the four types of file processing?

The methods of disk file processing include:.
Relative-record-number processing..
Consecutive processing..
Sequential-by-key processing..
Random-by-key processing..
Sequential-within-limits processing..

What are the major disadvantages of file processing systems?

Disadvantages of File Processing System.
a) Data redundancy and inconsistency. File processing system leads to the usage of many copies of same data. ... .
b) Difficulty in accessing data. ... .
c) Data isolation. ... .
e) Atomicity problems. ... .
f) Concurrent access anomalies..