SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Elmasri Navathe
Chapter:
And Database Users
Exercise:
Review Questions
Question:3 | ISBN:9780133970777 | Edition: 7

Question

Discuss the main characteristics of the database approach and how it differs from traditional file systems.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

Main Characteristics of the database approach:

- Self-describing nature of a database system.

A fundamental characteristic of the database approach is that the database system contains not only the database structure and constrains. this definition is stored in the system catalog. A DBMS catalog stores the description of a particular database (e.g. data structures, types, and constraints) The description is called meta-data this allows the DBMS software to work with different database application.

- Insulation between programs and data.

In traditional file processing, the structures of data files is embedded in the access programs, so many change to the structure of a file may require changing all programs that access this file. By constraint, 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 program-data independence

program-data independence: allows changing data structures and storage organization without having to change the DBMS access programs.

- Data abstraction.

The characteristic that allows program-data independence and program-operation independence is called data abstraction. A data model is a type of data abstraction that is used to hide storage details and present the users with a conceptual view of the database.

- Support of multiple views of the data.

Each user may see a different view of the database, which describes only the data of interest to that user. A view may be a subset of the database or it may contain virtual data that is derived from the database files but is not explicitly stored.

- Sharing of data and multi-user transaction processing.

Allowing a set of concurrent users to retrieve from and to update the database. concurrency control within the DBMS guarantees that each transaction is correctly executed or aborted. Recovery subsystem ensures each completed transaction has its effect permanently recorded in the database. OLTP (online Transaction Processing) is a major part of database applications. this allows hundreds of concurrent transactions to execute per second.

 Database approach Differs from traditional file system:

  •  A database is a collection of interrelated data’s stored in a database server; these data’s will be stored in the form of tables. The primary aim of database is to provide a way to store and retrieve database information in fast and efficient manner.
  • There are number of characteristics that differs from traditional file management system. In file system approach, each user defines and implements the needed files for a specific application to run. For example in sales department of an enterprise, One user will be maintaining the details of how many sales personnel are there in the sales department and their grades, these details will be stored and maintained in a separate file.
  • Another user will be maintaining the salesperson salary details working in the concern, the detailed salary report will be stored and maintained in a separate file. Although both of the users are interested in the data’s of the salespersons they will be having their details in a separate files and they need different programs to manipulate their files. This will lead to wastage of space and redundancy or replication of data’s, which may lead to confusion, sharing of data among various users is not possible, data inconsistency may occur. These files will not be having any inter-relationship among the data’s stored in these files. Therefore in traditional file processing every user will be defining their own constraints and implement the files needed for the applications.
  • In database approach, a single repository of data is maintained that is defined once and then accessed by many users. The fundamental characteristic of database approach is that the database system not only contains data’s but it contains complete definition or description of the database structure and constraints. These definitions are stored in a system catalog, which contains the information about the structure and definitions of the database. The information stored in the catalog is called the metadata, it describes the primary database. Hence this approach will work on any type of database for example, insurance database, Airlines, banking database, Finance details, and Enterprise information database. But in traditional file processing system the application is developed for a specific purpose and they will access specific database only.
  • The other main characteristic of the database is that it will allow multiple users to access the database at the same time and sharing of data is possible. The database must include concurrency control software to ensure that several users trying to update the same data at the same time, it should maintain in a controlled manner. In file system approach many programmers will be creating files over a long period and various files have different format, in various application languages.
  • Therefore there is possibility of information getting duplicated, this redundancy is storing same data multiple times leads to higher costs and wastage of space. This may result in data inconsistency in the application, this is because update is done to some of the files only and not all the files. Moreover in database approach multiple views can be created. View is a tailored representation of information contained in one or more tables. View is also called as “Virtual table” because view does not contain physically stored records and will not occupy any space.
  • A multi-user database whose users have variety of applications must provide facilities for defining multiple views. In traditional file system, if any changes are made to the structure of the files if will affect all the programs, so changes to the structure of a file may require changing of all programs that access the file. But in case of database approach the structure of the database is stored separately in the system catalog from the access of the application programs. This property is known as program-data independence.
  • Database can be used to provide persistent storage for program objects and data structures that resulted in object oriented database approach. Traditional systems suffered from impedance mismatch problem and difficulty in accessing the data, which is avoided in object oriented database system. Database can be used to represent complex relationships among data’s as well as to retrieve and update related data easily and efficiently.
  • It is possible to define and enforce integrity constraints for the data’s stored in the database. The database also provides facilities for recovering hardware and software failures. The backup and recovery subsystem is responsible for recovery. It reduces the application development time considerably when compared to the file system approach and availability of up-to-date information of all the users. It also provides security to the data’s stored in the database system.
0 0

Discussions

Post the discussion to improve the above solution.