Database Management Systems I: Sri Lanka Institute of Information Technology
Database Management Systems I: Sri Lanka Institute of Information Technology
Database Management
Systems I
Lecture 1
Objectives
BE ABLE TO IDENTIFY:
Some common uses of databases
Characteristics and problems of file-
based systems
The meaning of the term database
The major components of a DBMS
The advantages and disadvantages
of a DBMS
DBMS users
Introduction
What is a database?
A database is a collection of related
data
(examples???)
Defining
Specifying the data types, structures, and
constraints for the data to be stored in the database.
Constructing
The process of storing the data itself on some
storage medium that is controlled by the DBMS.
Manipulating
Manipulating a database includes such functions as
querying the database to retrieve specific data,
updating the database to reflect changes, and
generating reports from the data.
Why Study DBs?
$$!!
JOB Market
Types of Databases and Database
Applications
Numeric and Textual Databases
Banks
Multimedia Databases
Amazon. Com
Geographic Information Systems (GIS)
Data Warehouses
Examples
University Database
Credit Card Processing Systems
Airline Reservation Systems
Banking System
Databases touch all aspects of our lives
Example: University DB
Database CS 3380 3 CS
Manual Processing
Time Consuming
Does not support large volumes
of data
File based Processing
Traditional File System provided by the
Operating System is insufficient to meet
the requirements of enterprise applications
Database Processing
File Based Processing
ID
Name
001
Anne
Address Perth
TelNo 747374
Marks 75
Data Inconsistency
Duplication of Data
Security – Only password security
Application
Students Programs
DBMS
Application
Students Programs
DBMS
Data independence
Efficient data access
Data integrity and security
Data administration
Concurrent access, recovery from
crashes
Reduced application development time
Data independence
Application programs are independent of data
representation and storage details.
The structure of data files is stored in the DBMS
catalog separately from the access programs.
E.g. a file access program may be written in
such a way that it can access only STUDENT
records of the structure.
Efficient data access
Program-data independence
Support of multiple views of the data
Levels of Abstraction in a
DBMS(contd)
DBMS is described at three levels of
abstraction:
External Schema
many views describe how
View 1 View 2 View 3
users see the data
Note:
DISK
Information about the schemas is stored
in the system catalog
Levels of Abstraction in a
DBMS(contd)
Conceptual schema
Two types:
Logical data independence
Physical data independence
Logical Data Independence
41
Your Turn !!
Categorize each of the following into
database administration tasks of
design, security/integrity , and
performance.
Reducing order entry response time to 2
seconds
Re-issuing passwords for every user
Directly relating every sale to the sales
representative who made the sale.
How does a DBMS do all this?
DBMS is a complex
software package