Database Concepts
Database Concepts
Database Concepts
1.1 Introduction
A database management system (DBMS) is a collection of interrelated data and a set of
programs to access those data. This is a collection of related data with an implicit meaning and hence
is a database. The collection of data, usually referred to as the database, contains information relevant
to an enterprise. The primary goal of a DBMS is to provide a way to store and retrieve database
information that is both convenient and efficient. By data, we mean known facts that can be recorded
and that have implicit meaning.
Database systems are designed to manage large bodies of information. Management of data
involves both defining structures for storage of information and providing mechanisms for the
manipulation of information. In addition, the database system must ensure the safety of the
information stored, despite system crashes or attempts at unauthorized access. If data are to be shared
among several users, the system must avoid possible anomalous results. A database has the following
implicit properties:
1. A database represents some aspect of the real world, sometimes called the miniworld or the
universe of discourse (UoD). Changes to the miniworld are reflected in the database.
2. A database is a logically coherent collection of data with some inherent meaning. A random
assortment of data cannot correctly be referred to as a database.
3. A database is designed, built, and populated with data for a specific purpose. It has an
intended group of users and some preconceived applications in which these users are
interested.
A database can be of any size and complexity. For example, the list of names and addresses
may consist of only a few hundred records, each with a simple structure. On the other hand, the
computerized catalog of a large library may contain half a million entries organized under different
categories - by primary author’s last name, by subject, by book title - with each category organized
alphabetically. A database may be generated and maintained manually or it may be computerized. For
example, a library card catalog is a database that may be created and maintained manually. A
computerized database may be created and maintained either by a group of application programs
written specifically for that task or by a database management system.
DBMS enables users to create and maintain a database. The DBMS is a general-purpose
software system that facilitates the processes of defining, constructing, manipulating, and sharing
databases among various users and applications. Defining a database involves specifying the data
types, structures, and constraints of the data to be stored in the database. The database definition or
descriptive information is also stored by the DBMS in the form of a database catalog or dictionary; it
is called metadata. Constructing the database is the process of storing the data on some storage
medium that is controlled by the DBMS. Manipulating a database includes functions such as querying
the database to retrieve specific data, updating the database to reflect changes in the mini-world, and
generating reports from the data. Sharing a database allows multiple users and programs to access the
database simultaneously.
An application program accesses the database by sending queries or requests for data to the
DBMS. A query typically causes some data to be retrieved; a transaction may cause some data to be
read and some data to be written into the database.
Other important functions provided by the DBMS include protecting the database and
maintaining it over a long period of time. Protection includes system protection against hardware or
software malfunction (or crashes) and security protection against unauthorized or malicious access. A
typical large database may have a life cycle of many years, so the DBMS must be able to maintain the
database system by allowing the system to evolve as requirements change over time. A simplified
database system environment is shown in figure 1