Chapter 1 Introduction to Database Systems
Chapter 1 Introduction to Database Systems
Chapter 1
Introduction to
Database System
Chapter Objectives
Database System
– The DBMS software together with the data itself.
– Sometimes, the applications are also included.
Database system environment
An Example
DBMS was a new concept then, and all the research was done to
make it overcome the deficiencies in traditional style of data
management.
1. Real-world entity − A modern DBMS is more realistic and uses
real-world entities to design its architecture.
– It uses the behavior and attributes too.
– For example, a school database may use students as an entity
and their age as an attribute.
2. Relation-based tables − DBMS allows entities and relations
among them to form tables.
– A user can understand the architecture of a database just by
looking at the table names.
Characteristics …
Operations
Updating, searching, retrieving data is Updating, searching, retrieving data is
easier in DBMS because of queries. harder in a file management system.
Security
Data is not very secure in file
In DBMS, the data is more secure.
management system.
Backup and Recovery Process
Backup and recovery process is complex Backup and recovery process is simple in
in a DBMS. a file system.
Number of Users
DBMS is suitable for large organizations File management system is suitable for
to support multiple users. small organizations or single users.
Advantages of Using the DBMS Approach
• Controlling Redundancy
• Restricting Unauthorized Access
• Providing Persistent Storage for Program Objects
• Providing Storage Structures and Search
• Techniques for Efficient Query Processing
• Providing Backup and Recovery
• Providing Multiple User Interfaces
• Representing Complex Relationships among Data
• Enforcing Integrity Constraints
• Permitting Inferencing and Actions Using Rules
Disadvantage File-based approach
Separation and isolation of data
Duplication of data and inconsistency
Data dependence
Incompatible file formats
Fixed queries/proliferation of application programs
Difficulty in accessing data
Integrity problems
Atomicity problems
Concurrent-access anomalies
Security problems
Users
−Maintain the DBMS and are responsible for administrating the database.
– responsible to look after its usage and by whom it should be used.
– Can create access profiles for users and apply limitations to maintain
isolation and force security.
– Look after DBMS resources like system license, required tools, and other
software and hardware related maintenance.
– The DBA is responsible for authorizing access to the database,
coordinating and monitoring its use, acquiring software & hardware
resources as needed.
– The DBA is accountable for problems such as security breaches and poor
system response time.
II. Designers −
– Database designers are responsible for identifying the data to be stored in the
database and for choosing appropriate structures to represent and store this
data. These tasks are mostly undertaken before the database is actually
implemented and populated with data.
– It is the responsibility of database designers to communicate with all
prospective database users in order to understand their requirements and to
create a design that meets these requirements.
– Database designers are the group of people who actually work on the
designing part of the database.
– Keep a close watch on what data should be kept and in what format.
– Identify and design the whole set of entities, relations, constraints, &
views.
III. End Users −
– End users are those who actually reap the benefits of having a DBMS.
– End users can range from simple viewers who pay attention to the logs or
market rates to sophisticated users such as business analysts.
– Categories of End-users
• Stand-alone:
– Mostly maintain personal databases using ready-to-use packaged
applications.
– An example is a tax program user that creates its own internal database.
– Another example is maintaining an address book
System Analysts and Application Programmers
(Software Engineers)
• These persons are typically not interested in the database content itself.
• They are associated with the design, development, and operation of the
DBMS software and system environment.
We call them the workers behind the scene, and they include the following
categories:
– DBMS system designers and implementers design and implement the
DBMS modules and interfaces as a software package.
– Tool developers design and implement tools
– Operators and maintenance personnel (system administration personnel)
are responsible for the actual running and maintenance of the hardware and
software environment for the database system.
Historical Development of Database Technology
– If the database and applications are simple, well defined, and not expected
to change.
– If there are stringent real-time requirements that may not be met because of
DBMS overhead.
– If access to data by multiple users is not required.
When not to use a DBMS