1. To see why database management systems are necessary, let's look at a typical file-processing system supported by a conventional operating system.
The application is a savings bank:
Savings account and customer records are kept in permanent system les.
Application programs are written to manipulate les to perform the following tasks:
- Debit or credit an account.
- Add a new account.
- Find an account balance.
- Generate monthly statements.
2. Development of the system proceeds as follows:
- New application programs must be written as the need arises.
- New permanent les are created as required.
- but over a long period of time les may be in di erent formats, and
- Application programs may be in di erent languages.
3. So we can see there are problems with the straight le-processing approach:
Data redundancy and inconsistency
- Same information may be duplicated in several places.
- All copies may not be updated properly.
Diffculty in accessing data
- May have to write a new application program to satisfy an unusual request.
- E.g. nd all customers with the same postal code.
- Could generate this data manually, but a long job...
Data isolation
- Data in di erent les.
- Data in di erent formats.
- Dicult to write new application programs.
Multiple users
- Want concurrency for faster response time.
- Need protection for concurrent updates.
- E.g. two customers withdrawing funds from the same account at the same time| account has $500
in it, and they withdraw $100 and $50. The result could be $350, $400 or $450 if no protection.
Security problems
- Every user of the system should be able to access only the data they are permitted to see.
- E.g. payroll people only handle employee records, and cannot see customer accounts; tellers only
access account data and cannot see payroll data. - Dicult to enforce this with application programs.
Integrity problems
- Data may be required to satisfy constraints.
- E.g. no account balance below $25.00.
- Again, dicult to enforce or to change constraints with the le-processing approach.
These problems and others led to the development of database management systems.
