You are on page 1of 6

BCA

Lecture 1

Limitations of File-Based System


Separation and isolation of data When data is isolated in separate files, it is more difficult to retrieve the appropriate data. E.g. there is the need retrieve data from both the mkt. dept and the sales dept.

Duplication of data This is wasteful as it costs time and money to enter data more than once. It takes up additional storage space and hence associated with cost. Data may be inconsistent thus leading to loss of data integrity.

Data dependence Since the structure and storage of data files and records are defined in the application code, changes to an existing structure are difficult to make. E.g. to modify the size of a field in a file requires a one-off program to convert the file to the new format. E.g. the maximum size of textbox from 50 to 255 in application.

Incompatible file formats Since the structure of files are embedded in application programs, the structures are dependent on the programming language used. Thus, the structure of files generated by different application programs may be different, making them difficult to be processed jointly. A software would be required to convert the files to some format common. This is time-consuming and expensive.

Fixed queries Such systems are dependent on the application developer who is responsible to write queries and reports. Thus the type of query or report that can be produced is fixed. Unplanned queries are not possible.

Page 1 of 6

BCA

Lecture 1

DBMS Other Facilities


A security system which prevents unauthorised access to the database. An integrity system which maintains the consistency of stored data. A concurrency control system which allows shared access of the database. A recovery control system which restores the database to a previous consistent state following a hardware or software failure. A user-accessible catalogue which contains descriptions of the data in the database.

Components of the DBMS Environment


Hardware - Ranging from a single PC to a single mainframe, to a network of computers. Software - The DBMS software, the application programs, the operating system Data - The most important component acting as a bridge between the machine components and the user components. Procedures - Refers to the instructions and rules governing the design and use of the database. People Database Administrators, Database Designers, Application

Developers, End-Users

ADVANTAGES:
Control of data redundancy In contrast to traditional file-based systems that waste space by storing the same information in more than one file, the database approach attempts to eliminate redundancy by integrating files and hence keeping a single copy of each data. Although, not eliminating redundancy entirely, it controls the amount of redundancy inherent in the database.

Data consistency

Page 2 of 6

BCA

Lecture 1

Since a data item is stored only once in the database any update to its value needs to be done only once and the new value is immediately available to every users.

More information from the same amount of data With the integration of operational data, it may be possible to derive additional information from the same data, e.g. users from a department may have access to data of other departments which was previously not shared.

Sharing of data New applications can build on existing data in the database being shared among all authorised users and add only data that is not currently stored rather than having to define all the data requirements again. The new applications can also rely on the functions of the DBMS, such as data definition and manipulation and concurrency and recovery control, rather than having to provide these functions themselves.

Improved data integrity Database integrity, i.e. validity and consistency of stored data, is expressed in terms of constraints (consistency rules) that the database is not allowed to violate.

Improved security Database security is the protection of the database from unauthorised users. It may be through users names and passwords as an identification method. The type of access allowed may also be controlled, e.g. retrieval, insert, update or delete.

Enforcement of standards Integration allows the definition and enforcement of necessary standards, e.g. standards for data formats to facilitate exchange of data between systems, naming conventions, documentation standards.

Page 3 of 6

BCA

Lecture 1

Economy of scale All operational data being combined into one database and a set of applications created to work on this one source results in cost savings. The budget that would normally be allocated to each departments can be combined, possibly resulting in a lower total cost leading to an economy of scale. Balance of conflicting requirements Each user or department may have conflicting needs. The DBA can make decisions about design and operational use of the database to provide an optimum use of resources and hence performance.

Improved data accessibility and responsiveness Since the database is shared, data is directly accessible to users. Many DBMSs provide query languages or report writers that allow users to ask ad hoc questions and obtain the required information almost immediately.

Increased productivity The DBMS provide many of the standard functions that would have to be written by a programmer in a file-based system. At a basic level, the DBMS provides all the lower level file-handling routines that are typical in application programs. This allows programmers to concentrate on specific functionalities required by users.

Improved maintenance through data independence DBMS, in contrast to file-based systems separate data description from the applications thus making the applications immune to changes in the data descriptions. This is known as data independence.

Increased concurrency DBMSs manage concurrent database access and ensure that there is no loss of information or loss of integrity.

Page 4 of 6

BCA

Lecture 1

Improved backup and recovery services In file-base systems, nightly backup of data may be used to protect data from failures to the computer system or application program. DBMSs provide facilities to minimise loss following a failure.

DISADVANTAGES:
Complexity Providing the functionality expected of a good DBMS makes the DBMS an extremely complex piece of software.

Size The complexity and breadth of functionality makes the DBMS an extremely large piece of software occupying huge amount of disk space and requiring substantial amount of memory to run efficiently.

Cost of DBMSs The cost varies significantly depending on the environment and functionality provided. The DBMS also needs to be maintained.

Additional hardware costs Additional storage may be required for the DBMS and database. Also a larger or dedicated machine may be required to run the DBMS to achieve the required performance.

Cost of conversion Cost of converting existing applications to run on the new DBMS and hardware may be significant. This may include the cost of training staff to use the new system or employing specialist staff to help convert and run the new system.

Performance

Page 5 of 6

BCA

Lecture 1

Unlike file-based systems, the DBMS is written to cater for many applications. Some applications may thus not run as fast as they used to.

Higher impact of a failure Centralisation of resources increases the vulnerability of the system. Since all users and applications rely on the availability of the DBMS, failure of any component can bring operation to a halt.

Page 6 of 6

You might also like