Unit 1-Fundamentals of DBMS
Unit 1-Fundamentals of DBMS
2
Course Objective
• Define database normalization
• Apply normalization techniques
• Review Software Engineering Process and relational databases
• Describe SQL Data language
• Discuss concepts of structured query language
• Manage data base security
• Describe Security policy and procedures
• Use database ethical standards while developing and using databases
3
Mode of Evaluation
Seminar presentation---------------------------------------15%
Project Work------------------------------------------------35%
Final exam---------------------------------------------------50%
Total --------------------------------------------------------
100%
4
Unit 1: Fundamentals of Database System
Terminologies of Database
• Data: known facts that can be recorded and have implicit meaning
6
Terminologies of Database cont’d…
• Table: A list of related information in column and rows.
Each Row is a table is considered as record (Eg. your information in the phone
book is a record)
One item of data, such as your phone number in the phone book is called a
Data value.
7
Basic concepts and principles of DB
• It is fair to say that DB play a critical role in almost all areas where computers
are used, including business, electronic commerce, engineering, medicine,
genetics, law, education etc…
• Most of us encounter several activities every day that involve some interaction
with a database. For example:
9
Basic concepts and principles cont’d….
• Constructing the database is the process of storing the data on some storage
medium that is controlled by the DBMS.
10
Basic concepts and principles cont’d….
A database has the following implicit properties:
A database represents some aspect of the real world, sometimes called the
mini world.
• Changes to the mini world are reflected in the database.
A database is designed, built and populated with data for a specific purpose.
11
Basic concepts and principles cont’d….
12
Basic concepts and principles cont’d….
13
Basic concepts and principles cont’d….
• Database manipulation involves querying and updating.
List the names of students who took the section of the ‘Database’ course offered in
fall 2008 and their grades in that section
14
Basic concepts and principles cont’d….
Examples of updates include the following:
• Create a new section for the ‘Database’ course for this semester
• Enter a grade of ‘A’ for ‘Smith’ in the ‘Database’ section of last semester
• These informal queries and updates must be specified precisely in the query language of
the DBMS before they can be processed.
15
Basic concepts and principles cont’d….
• Design of a new application for an existing database or design of a brand new
database starts off with a phase called requirements specification and
analysis.
16
Properties of Database
• Completeness
• Integrity
• Flexibility
• Efficiency
• Usability
17
Properties of Databases cont’d….
Completeness
• Ensure that users can access the data they want includes ad hoc queries,
which would not be explicitly given as part of statement of data
requirements
• Database has to support the requirements
18
Properties of Databases cont’d….
Integrity
• Ensures that data is both consistent (no contradictory), and ensures that
users trust the database
• Database integrity ensures that data entered into the database is accurate,
valid, and consistent
• Any applicable integrity constraint and data validation rules must be
satisfied before permitting a change to the database
19
Properties of Databases cont’d….
Flexibility
20
Properties of Databases cont’d….
Efficiency
• Ensures that users do not have unduly long response times when
accessing data
• The designer has to choose the right DBMS, the right access path in
order to improve the efficiency
21
Properties of Databases cont’d….
Usability
• Ensures that data can be accessed and manipulated in ways which match
user requirements
• The database design that is not properly normalized will introduce data
update anomalies and data errors
• A poorly designed database may place the entire organization at risk due
to the incomplete or incorrect information
22
Database Applications
• A database application is set of one or more computer programs or websites
that serve as an intermediary between the user and the DBMS for the
purpose of:
Store information and relationship that are more complicated than simple
list
23
Types of Database system
There are two types of database systems. These are:
a. Personal Database system: personal database systems typically:
24
Types of Database system cont’d….
b. Enterprise-Level Database System: This systems typically:
• Support several users simultaneously (concurrent use)
25
Characteristics of Database approaches
• A number of characteristics distinguish the database approach from the much older
approach of programming with files
• In the database approach, a single repository maintains data that is defined once and
then accessed by various users
• In contrast, in a database, the names or labels of data are defined once, and used
repeatedly by queries, transactions, and applications
26
Characteristics cont’d….
• Data management passes through the different levels of development along with the
development in technology and services.
• Even though there is an advantage and a problem overcome at each new level, all
methods of data handling are in use to some extent.
• Manual Approach
• Database Approach
27
a. Manual File Handling Systems
The primitive and traditional way of information handling where cards and papers
are mainly used. Files kept in this way are:
• Insertion and retrieval is done by searching first for the right cabinet then for
the right file then the information.
28
Manual File Handling cont’d…
Limitations with all manual systems
• Prone to error
Solution
• The computerized approaches evolved to overcome this limitations
• File based approach decentralised
• Database approach centralised
29
b. File based approach
• After the introduction of computer for data processing to the business
community, the need to use the device for data storage and processing increase.
• There were, and still are, several computer applications with file based
processing used for the purpose of data handling.
• File based systems were an early attempt to computerize the manual filing
system.
30
File based approach cont’d…
• This approach is a decentralized computerized data handling method.
• Since every application defines and manages its own data, the system is
subjected to serious data duplication problem
• Even though the approach evolved over time, the basic structure is still
similar but not identical.
31
File based approach cont’d…
• Limitations of the traditional file based approach
• Modification Anomalies
• Deletion Anomalies
• Insertion Anomalies
32
C. Database Approach
• A number of characteristics distinguish the database approach from the much older
approach of programming with files.
• In traditional file processing, each user defines and implements the files needed for a
specific software application as part of programming.
• For example, one user, the grade reporting office, may keep files on students
and their grades.
• Programs to print a student’s transcript and to enter new grades are implemented
as part of the application.
• A second user, the accounting office, may keep track of students’ fees and their
payments.
33
Database Approach cont’d…
• Although both users are interested in data about students, each user maintains
separate files and programs to manipulate these files because each requires some
data not available from the other user’s files.
• This redundancy in defining and storing data results in wasted storage space and
in redundant efforts to maintain common up-to-date data.
• In the database approach, a single repository maintains data that is defined once
and then accessed by various users.
• In contrast, in a database, the names or labels of data are defined once, and used
repeatedly by queries, transactions, and applications
34
Benefits of database systems
Controlling redundancy
• High impact on the system when failure occurs to the central system
36
Components of a Database System
There are five component of Database system
i. Hardware
• The DBMS and the application needs hardware to run.
• Depends on the organizations requirement and the DBMS used, some run on a particular
hardware and OS while others on a wide variety of hardware
• DBMS may have its own report forms, graphs and application generators.
iii. Data
• The most important component of DBMS from the end user point of view.
38
Components of a Database cont’d….
iv. Procedures
• It refers the instructions or rules that governs the design and use of the database, which
consist of:
• Log on to the DBMS.
• Use a particular DBMS facilities.
• Start and stop of DBMS.
• Making backup copies of the database.
v. People (users or actors):- people can be identified in four distinct type:
• Database Administrator
• Database Designer
• Application Developer
• End user
39
Actors on the Scene
People whose jobs involve the day-to-day use of a large database; we call them the
actors on the scene
Database Administrator
• In any organization where many people use the same resources, there is a need
for a chief administrator to oversee and manage resources.
• In a database environment, the primary resource is the database itself, and the
secondary resource is the DBMS and related software.
40
Actors on the Scene cont’d…
• The DBA is responsible for authorizing access to the database,
coordinating and monitoring its use, and acquiring software and
hardware resources as needed.
• The DBA is accountable for problems such as security breaches and poor
system response time.
• In large organizations, the DBA is assisted by a staff that carries out these
functions.
41
Actors on the Scene cont’d….
b. Database 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
• In many cases, the designers are on the staff of the DBA and may be
assigned other staff responsibilities after the database design is completed.
42
Actors on the Scene cont’d….
• Database designers is also responsible to many cases like:
• The designers are on the staff of the DBA and may be assigned other
staff responsibilities after the database design is completed.
• DBDs typically interact with each potential group of users and develop
views of the database that meet the data and processing requirements
of these groups.
• Each view is then analyzed and integrated with the views of other user
groups.
43
Actors on the Scene cont’d….
Designers can be:
• Logical Designers
• Application programs provide the required functionality for the end user.
45
Actors on the Scene cont’d….
d. End users
End users are the people whose jobs require access to the database for
querying, updating, and generating reports; the database primarily exists for
their use.
46
Actors on the Scene cont’d….
• Naïve or parametric end users are unsophisticated users who interact
with the system by invoking one of the application programs that have
been written previously
• Casual end users occasionally access the database, but they may
need different information each time.
• Reservation agents for airlines, hotels, and car rental companies check
availability for a given request and make reservations.
48
Actors on the Scene cont’d….
• Sophisticated end users: interact with the system without writing
programs. Instead, they form their requests in a database query language.
49
Database Development Process
• A core aspect of software engineering is the subdivision of the development
process into a series of phases, or steps, each of which focuses on one
aspect of the development.
• The software product moves through this life cycle (sometimes repeatedly as
it is refined or redeveloped) until it is finally retired from use.
• Ideally, each phase in the life cycle can be checked for correctness before
moving on to the next phase.
50
Workers behind the Scene
• Those who work to maintain the database system environment but who are
not actively interested in the database contents as part of their daily job.
• We call them the workers behind the scene, and they include the following
categories:
51
Workers behind the Scene cont’d…
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
52
53