2.1. What Is Database Management System?: Database, Contains Information Relevant To An Enterprise
2.1. What Is Database Management System?: Database, Contains Information Relevant To An Enterprise
2.1. What Is Database Management System?: Database, Contains Information Relevant To An Enterprise
Chapter 1
Introduction
2.1. What is Database Management System?
A database management system (DBMS) is a collection of interrelated data and a
set of programs to access those data. The collection of data, usually referred to a
database, contains information relevant to an enterprise.
Transport
Universities
Credit card
Sales
Page 1 of 14
Chapter 1
Manufacturing
Human resources
Internet
File System
Data redundancy and inconsistency
Multiple file formats, duplication of
information in different files
2. Difficulty in accessing data
Need to write a new program to carry
out each new task
Page 2 of 14
Chapter 1
3. Data isolation
Multiple files and formats
4. Integrity problems
Integrity constraints (e.g. account
balance > 0) become part of program
code
Hard to add new constraints or change
existing ones
5. Atomicity problems
Failures may leave database in an
inconsistent state with partial updates
carried out. E.g., transfer of funds from
one account to another should either
complete or not happen at all
6. Concurrent-access anomalies
Needed for system performance and
usability
Uncontrolled concurrent accesses can
lead to inconsistencies. E.g. two people
reading a balance and updating it at the
same time
Database systems offer solutions to all 7. Security problems
these problems
Not every user of the database system
should be able to access all the data.
Page 3 of 14
Chapter 1
View of Data
A database system is a collection of interrelated files and set of programs that
allow users to access and modify these files. A major purpose of a database system
is to provide users an abstract view of the data. That is, the system hides certain
details of how the data is stored and maintained.
Page 4 of 14
Chapter 1
Instances: Databases change over time as information is inserted and deleted. The
collection of information stored in the database at a particular moment is called an
instance of the database. While executing, each variable of a programming
language has a particular value at a given instant. The values of the variable in a
program at a point in time correspond to an instance of the database schema.
Physical Data Independence The ability to modify the physical schema without
changing the logical schema is called physical data independence.
- Applications depend on the logical schema (or the view schema)
- In general, the interfaces between the various levels and components should be
well defined so that changes in some parts do not seriously influence others.
Page 5 of 14
Chapter 1
B. Other Models:
1. Object-oriented data model: Drawing increasing attention. It can be seen as
extending of E-R model with notions of encapsulation, methods (functions) and
object identity.
2. Object-relation data model: Combines the features of object-oriented data
model and relational data model.
3. Semi-structured data model: Permits the specification of data where
individual data items of the same type may have different sets of attributes. The
extensible markup language (XML) is widely used to represent semi-structured
data.
C. Historical Models: These are in little use now:
1. Network data model
Page 6 of 14
Chapter 1
2. Hierarchical model
Page 7 of 14
Chapter 1
Query:
A query is a statement requesting the retrieval of information. The portion of a
DML that involves information retrieval is called a query language.
General format:
Page 8 of 14
Chapter 1
Page 9 of 14
Chapter 1
Chapter 1
One of the main reasons for using DBMS is to have central control both data and
the programs that access that data. A person who has such central control over the
system is called database administrator (DBA).
To coordinate all the activities of the database system, the database administrator
has a good understanding of the enterprises information resources and needs.
The functions of Database administrator (DBA) include:
1. Schema definition: The DBA creates the original database schema by
executing a set of data definition statements in the DDL.
2. Storage structure and access method definition
3. Schema and physical-organization modification: The DBA carries out
changes to the schema and physical organization to reflect the changing needs of
the organization, or to alter the physical organization to improve the performance.
4. Granting of authorization for data access: By granting different types of
authorization, the DBA can regulate which parts of the database various users can
access.
5. Specifying integrity constraints: The DBA implements key declaration
(primary key, foreign key), trigger, assertion, business rules of the organization
6. Acting as liaison with users
7. Routine maintenance:
i) Periodically backing up the database, either onto tapes or remote servers, to
prevent loss of data in case of disasters
ii) Ensuring that enough disk space is available for normal operations and
upgrading disk space as required
iii) Monitoring jobs running on the database and ensuring better performance
Chapter 1
Page 12 of 14
Chapter 1
Page 13 of 14
Chapter 1
Page 14 of 14