Introduction to Data Base Management System
Introduction to Data Base Management System
System
A database: is a collection of related data.
Database Management System (DBMS) :is a computerized
system that 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
meta-data
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 miniworld, and generating reports from the data.
Sharing a database allows multiple users and programs to access
the database simultaneously.
Ex:
Characteristics of the Database Approach:
1. Self-Describing Nature of a Database
System:
A fundamental characteristic of the database it
provide a complete definition or description of the
database structure and constraints.
This definition is stored in the DBMS catalog
Which contains information such as the
structure of each file, the type and storage format of
each data item, and various constraints on the data.
The information stored in the catalog is called
meta-data
Insulation between Programs and Data, and
Data Abstraction
The structure of data files is stored in the DBMS
catalog separately from the access programs.
Support of Multiple Views of the Data:
A database typically has many types of user database for that
may require different perspective or view of data
Sharing of Data and Multiuser Transaction
Processing:
A multi-user DBMS as its name implies, must allow multiple users to
access the database at the same time
ACTORS ON THE SCENE
Database Administrators :
The DBA is responsible for authorizing access to the
database, for coordinating and monitoring its use and for acquiring
software and hardware resources as needed.
Database Designers :
Database designers are responsible for identifying the data
to be stored in the database and for choosing the appropriate
structure to represent and store this data.
End Users:
End users are the people whose jobs require access to the
database for querying, updating and generating reports.
1. Casual End Users:
They occasionally access the database, but they may need
different information each time.
2. Parametric End Users:
Their main job function revolves around constantly querying
and updating the database, using standard types of queries.
3. Sophisticated End Users:
This category includes engineers, scientist’s business
analysts etc.
4. Stand-alone End Users:
They maintain personal databases by using readymade
program packages that provide easy-to-use menu or graphics-
based interfaces.
System Analysts and Application Programmers
(Software Engineers) :
System analysts determine the requirements of
the end-users and develop specifications for canned
transactions that meet these requirements.
WORKERS BEHIND THE SCENE
1. DBMS system designers and implementers:
persons who design and implement the DBMS
modules and interfaces as a software package
A DBMS is a very complex software system that
consists of many components, or modules, including
modules for implementing the catalog, query language,
interface processors, data access, concurrency control,
recovery and security
2. Tool developers :
the software packages that facilitate database
system design and use and that help improve performance.
3. Operators maintenance personnel :
who are responsible for the actual running and
maintenance of the hardware and software environment for
the database system.
ADVANTAGES OF USING A DBMS
Controlling Redundancy:
Redundancy is nothing but storing same data repeatedly
In database approach a huge repository of data is stored
and users are allowed to access the data which is relevant to
them there by controlling the redundancy.
Unauthorized Access
When multiple users share a database, it is likely that
some users will not be authorized to access all information in
the database
Providing Persistent Storage for Program Objects
Databases can be used to provide persistent storage for
program objects and data structures so that the user of the
database can store any amount of data in the database for
further use.
Providing Storage Structures and Search Techniques
for Efficient Query Processing
Database is typically stored on disk, the DBMS must
provide specialized data structures and search techniques to
speed up disk search for the desired records
Providing Backup and Recovery:
A DBMS must provide facilities for recovering from
hardware and software failures. The backup and recovery
subsystem of the DBMS is responsible for recovery.
Providing Multiple User Interfaces:
Because many types of users with varying levels of
technical knowledge use a database, a DBMS should provide
a variety of user interfaces
Representing Complex Relationships among Data:
A database may include numerous varieties of data that
are interrelated in many ways.
Enforcing Integrity Constraints :
Most database applications have certain integrity
constraints that must be enforced on the data to be
stored in the table.
Permitting Inferencing and Action Using Rules :
Database systems provide capabilities for
defining deduction rules for inferencing new
information from the stored databases facts.
Implications of Using the Database Approach:
a. Potential for Enforcing Standards:
The database approach permits DBA to define
and enforce standards among database users in an
organization.
b. Reduced Application Development Time:
NEW APPLICATIONS CAN BE DEVELOPED USING DBMS WITH LESS
EFFORT
Designing and implementing a new database from
the scratch is a time-consuming process
c. Flexibility:
Modern DBMSs allow certain types of changes to
the structure of the database without affecting the
stored data and the existing application programs.
d. Availability of Up-to-Date Information
DBMS is up-to-date if any changes may occurred
in one end it shows same impact to all accessors
e. Economics of Scale: The DBMS approach permits
consolidation of data and applications, thus
reducing the amount of wasteful overlap.
Database System Concepts
and Architecture
Data abstraction: generally, refers it stores details of data
organization and storage and highlights some essential
features of data
A data model—a collection of concepts that can be used to
describe the structure of a database
Categories of Data Models
High-level or conceptual data models: provide
concepts that are close to the way many users
perceive data
An entity represents a real-world object or
concept, such as an employee or a project that is
described in a database.
An attribute represents some property of
interest that further describes an entity, such as an
employee’s name or salary.
A relationship among two or more entities
represents an interaction among the entities
low-level or physical data models: provide
concepts that describe the details of how data is
stored in the computer.