Thursday, 6 October 2016

Program Data insulation and Data Abstraction

Program Data insulation and Data Abstraction

In traditional file processing,the structure of data files is embedded in the application programs,so the changes to the structure of a file may require changing all programs that access that file.By contrast,DBMS access programs do not require such changes in most cases.The structure of data files is stored in the DBMS catalog separately from the access programs.We call this property as program-data independence.

In some types of database systems,such as object oriented or object relational systems,users can define operations on data as part of the database definitions.An operation is specified into two parts that is the interface(or signature) and the implementation(or method).User application programs can operate on the data by invoking these operations through their names and arguments,regardless of how the operations are implemented.This property is termed as program-operation independence.

A major purpose of a database system is to provide users with an abstract view of the data.That is,a DBMS provides users with a conceptual representation of data that does not include many of the details of how the data is stored or how the operations are implemented.This property is termed as data abstraction.Usually,data abstraction is implemented at three levels:

  • Physical level:The lowest level of abstraction,describes how the data are actually stored.The physical level describes complex low-level data structures in detail.
  • Logical level:The next higher level of abstraction,describes what data are stored in the database and what relationships exist among those data.The user of the logical level does not need to be aware of this complexity,and is referred as physical data independence or program data independence.  
  • View level:The highest level of abstraction,describes only a part of the entire database.The system may provide multiple views for the same database. 


Characteristics of the Database Approach

 Characteristics of the Database Approach

Before the database systems were introduced,all the data were organised in file-processing system or file-based system.It gave rise to various problems which were solved with the introduction of database systems.So,the advantages of database system over file-based system or file-processing system are:

  • Controlled Data Redundancy:Data redundancy is a condition created within a database or data storage technology in which the same piece if data is held in two separate places .In DBMS,all data of an organisation is integrated into a single database file.The data is recorded in only one place in the database and it is not duplicated.
  • Data Consistency:By controlling the data redundancy,the data consistency is obtained.If a data item appears only once,any update to its value has to be performed only once and the updated value is immediately available to all users.So,as the DBMS has controlled redundancy,hence it enforces data consistency.
  • Easy Retrieval of data:As the data stored in a database system are tabular and interrelated ,so,it is easy to retrieve any information from the database.
  • Limited Data Isolation:As the data stored in a database system are consistent and non-redundant,hence data isolation is limited.
  • Multiple Users or Concurrent Access-function:In a database system,multiple users may work with the same database simultaneously.In this system,the user giving the first request gets the priority liable of the second.
  • Data Security:As the data is centrally stored,it is easy to enforce security standard.It is easy to monitor the users who are accessing the database.Further the Database Administrator (DBA) controls which users have access to what type of information.
  • Faster Processing:As the data are stored in interrelated tables in a database system,so the retrieval of the information becomes easier as compared to the file-based system or file-processing system.
  • Data independence:The separation of data structure of database from the application program that uses the data is called data independence.In DBMS,you can easily change the structure of database without modifying the application program.
There are many other advantages like Data Abstraction,Insulation between programs and data,Backup and Recovery procedures etc.