Unit !. Database System Concepts
Unit !. Database System Concepts
(OR)
(OR)
1. File processing don't contain any self describing 1. Presence of Self-describing nature of a database
feature and neither posses metadata system and Metadata.
2. if any changes to the structure of a file may 2. The structure of data files is stored in the DBMS
require changing all programs that access the file. catalog separately from the access program. This is
called program-data independence
4. It is not possible to share data and multi user 4. Sharing of data and multi-user transaction
transaction simultaneously among concurrent users processing i.e allowing a set of concurrent users to
retrieve from and to update the database.
5. The traditional file approach, each group 5. Controlling Redundancy is one of most important
independently keeps their own file. feature to use DBMS
Advantages of DBMS
● Controlling Redundancy of data in a centralized system of DBMS
● Integrity of data can be enforced in case of database system by enforcing
constraints
● Inconsistency of data can be avoided by reducing duplicacy or redundancy
● Data can be shared by multiple applications in centralized DBMS
● Standards can be enforced in DBMS is a central system by enforcing
standards easily at Company level, Department level, National level or
International level.
● Restricting unauthorized access among multiple users when sharing of data
takes place in a database.
● Providing Backup and Recovery facilities is provide by DBMS for recovering
from hardware or software failures.
Disadvantages of DBMS
● Cost of Hardware and Software
○ A processor with high speed of data processing and memory of large size is required to run
the DBMS software. It means that you have to upgrade the hardware used for file-based
system. Similarly, DBMS software is also very costly,.
● Cost of Data Conversion
○ When a computer file-based system is replaced with database system, the data stored into
data file must be converted to database file. It is very difficult and costly method to convert
data of data file into database. You have to hire database system designers along with
application programmers. Alternatively, you have to take the services of some software house.
So a lot of money has to be paid for developing software.
● Cost of Staff Training
○ Most database management system are often complex systems so the training for users to
use the DBMS is required. Training is required at all levels, including programming,
application development, and database administration. The organization has to be paid a lot
of amount for the training of staff to run the DBMS.
● Appointing Technical Staff
○ The trained technical persons such as database administrator, application programmers, data
entry operations etc. are required to handle the DBMS. You have to pay handsome salaries to
these persons. Therefore, the system cost increases.
● Database Damage
○ In most of the organization, all data is integrated into a single database. If database is
damaged due to electric failure or database is corrupted on the storage media, the your
valuable data may be lost forever.
Components of database system
● Hardware,
● Software,
● People,
● Procedures,
● Hardware
○ Hardware is the one of the most important component of dbms system. It refers to all of the
system’s physical devices like computers (PCs, workstations, servers, and supercomputers),
storage devices, printers, network devices (hubs, switches, routers, fiber optics),and other
devices (automated teller machines, ID readers, and so on).
● Software
○ Operating system software:
■ It manages all hardware components and makes it possible for all other software to run
on the computers. Examples of operating system software include Microsoft Windows,
Linux, MacOS, UNIX, and MVS.
○ DBMS software:
■ It manages the database within the database system. Some examples of DBMS
software include Microsoft’s SQL Server, Oracle Corporation’s Oracle, Sun’s MySQL,
and IBM’s DB2.
○ Application programs and utility software:
■ These are used to access and manipulate data in the DBMS and to manage the
computer environment in which data access and manipulation take place. Application
programs are most commonly used to access data found within the database to
generate reports, tabulations, and other information to facilitate decision making.
● People (Users)
○ Each user type, described below, performs both unique and complementary functions.
■ System administrators oversee the database system’s general operations.
■ Database administrators, also known as DBAs, manage the DBMS and ensure that the
database is functioning properly.
■ Database designers design the database structure.
■ System analysts and programmers design and implement the application programs.
They design and create the data entry screens, reports, and procedures through which
end users access and manipulate the database’s data.
■ End users are the people who use the application programs to run the organization’s
daily operations. For example, salesclerks, supervisors, managers, and directors are all
classified as end users. High-level end users employ the information obtained from the
database to make tactical and strategic business decisions.
● Procedures
○ Procedures are the instructions and rules that govern the design and use of the database
system.
○ Procedures are another important component of the dbms system.
○ Procedures play an important role in a company because they enforce the standards by
which business is conducted within the organization and with customers.
○ Procedures are also used to ensure that there is an organized way to monitor and audit both
the data that enter the database and the information that is generated through the use of
those data.
Data Abstraction
● Hiding certain details of how the data are stored and maintained. A major
purpose of database system is to provide users with an “Abstract View” of
the data.
● In DBMS there are 3 levels of data abstraction.
● The goal of the abstraction in the DBMS is to separate the users request and
the physical storage of data in the database.
● 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:
○ This level of data Abstraction describes “What” data are to be stored in the database and
what relationships exist among those data.
○ Database Administrators use the logical level of abstraction.
● View Level:
○ It is the highest level of data Abstracts that describes only part of entire database.
○ Different users require different types of data elements from each database.
○ The system may provide many views for the some database.
Schema
● The overall design of the database is called the “Schema” .
Three level schema architecture
● Internal level
● Conceptual level
● External level
1.The internal level has an internal schema, which describes the physical storage
structure of the database. The internal schema uses a physical data model and
describes the complete details of data storage and access paths for the database.
2.The conceptual level has a conceptual schema, which describes the structure
of the whole database for a community of users. The conceptual schema hides
the details of physical storage structures and concentrates on describing entities,
data types, relationships, user operations, and constraints. A high-level data
model or an implementation data model can be used at this level.
3. The external or view level includes a number of external schemas or user
views. Each external schema describes the part of the database that a particular
user group is interested in and hides the rest of the database from that user
group. A high-level data model or an implementation data model can be used at
this level.
Data Independence
● A very important advantage of using DBMS is that it offers Data
Independence.
● The ability to modify a schema definition in one level without affecting a
schema definition in a higher level is called data independence.
● There are two kinds:
○ Physical Data Independence
○ Logical Data Independence