0% found this document useful (0 votes)
65 views39 pages

Introduction To Database PDF

Uploaded by

Sandeep Bashyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views39 pages

Introduction To Database PDF

Uploaded by

Sandeep Bashyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

Unit 1

Database and Database Users


2 Hrs.

1 Shiva Bhattarai
Introduction of Database


Outline

Introduction

Characteristics of the Database Approach

Actors on the Scene

Workers behind the Scene

Advantages of Using the DBMS Approach

2 Shiva Bhattarai
Data, Information and Knowledge

3 Shiva Bhattarai
Data, Information and Knowledge


Data

Any Facts that can be recorded or stored.

A collection of text, numbers or any symbols with no
meaning

Has to be processed, or provided with a context, before it can
have meaning.

Example:

3, 6, 9, 12

Cat, dog, rabbit

161.2, 175.3, 145.1

4 Shiva Bhattarai
Data, Information and Knowledge


Information

The result of processing data, usually by computer.

Processed data to be used in context and have meaning. i.e., Data that has
context and meaning.

Data has no meaning of its own, it only takes on meaning and becomes
information when it is interpreted.

When data is processed into sets according to context , it provides
information.
Data + Meaning = Information

Example:

3, 6, 9 and 12 are the first four answers in the 3 x table

cat, dog, rabbit is a list of household pets

161.2, 175.3, 166.4, 164.7, 169.3 are the heights of 15-year-old students.

5 Shiva Bhattarai
Data, Information and Knowledge (Example)

6 Shiva Bhattarai
Database


Database is a collection of related data with an
implicit meaning.

Properties of database

Represents some aspect of real world, sometimes called the
mini-world or universe of discourse(UoD).

Logically coherent collection of data with some inherent
meaning.

Designed, built and populated with data for specific purpose,
i.e., it has an intended group of users and some
per-convinced applications in which these user are interested.

7 Shiva Bhattarai
Database (Definition)


Database is defined as

A collection or repository of logically related and relevant
data.

Having organized structure.

For a specific purpose.

Stores similar kinds of data that is organized in
a manner that the information can be derived
from it, modified, data added or deleted it and
used when needed.

8 Shiva Bhattarai
Database (Example)


Non-computerized database in our daily lives

Looking for a word in a dictionary

Finding telephone number from telephone directory (Yellow page).

Computerized database in our daily lives

An airline database contains data about airplane, the routes, airline
reservation, airline schedules etc.

A college database may contain data about the students, faculty,
administrative staff, courses, results etc.

A database for manufacturing application may contain data about
the production, inventory, supply chain, orders, sales etc.

A student database may contain data about students, like student
names, student course etc.

9 Shiva Bhattarai
Database Management System (DBMS)

Figure: A bank database management system (DBMS).


10 Shiva Bhattarai
Database Management System (DBMS)


A collection of programs that enables users to
create and maintain a database.

DBMS is a general-purpose software system
that facilitates the process of defining,
constructing, manipulating and sharing
databases among various users and
application.

11 Shiva Bhattarai
Database Management System (DBMS)


Defining a database

Involves specifying the data types, structures and constraints of data to
be stored in the database.

Constructing a database

The process of storing the data on some storage medium that is
controlled by DBMS.

Manipulating a database

Includes functions such as querying the database to retrieve specific
data, updating the database to reflect changes in the mini-world, and
generating reports from the data.

Sharing a database

Allows multiple users and programs to access the database
simultaneously.

12 Shiva Bhattarai
Database System

Figure: Database System

13 Shiva Bhattarai
Database System


Database and DBMS software together is a
database system.

Above figure illustrate some concept of
database system.

14 Shiva Bhattarai
Characteristics of the Database Approach


Self-describing nature of a database system

Insulation between programs and data, and
data abstraction

Support of multiple views of the data

Sharing of data and multi-user transaction
processing

15 Shiva Bhattarai
Characteristics of the Database Approach


Self-describing nature of a database system

Database system is self-describing, it not only contains the database
itself, but also a complete definition or description of the database
structure and constraints.

Definition is stored in the DBMS catalog, information stored in the
catalog is called meta-data(data of data).

Catalog contains information such as structure of each file, the type
and storage format of each data and various constraints.

These information is used by the DBMS software or database users if
needed.

This separation of data and information about the data makes
database system different from the traditional file-based system in
which the data definition is part of the application programs.

16 Shiva Bhattarai
Characteristics of the Database Approach


Supports multiple views of data

Supports multiple views of data. i.e., different users have
different perspective towards the same data.

A view of subset of the database, which is defined and
dedicated for particular users of the system, each view might
contain only data of interest to a user group of users.

17 Shiva Bhattarai
Database Users


Database users can be divided into

Those who actually use and control the content i.e., Actor
on the scene.

Those who enable the database to be developed and DBMS
software to be designed and implemented i.e., Workers
Behind the Scene.

18 Shiva Bhattarai
Actors on the Scene


People whose jobs involve the day-to-day use
of large database

Actor on the scene are

Database Administrators (DBA)

Database Designers

End Users

System analysts and application programmers

19 Shiva Bhattarai
Database Administrators


Chief administrator, to oversee and manage the
resources in an organization.

Administering the resource such as database
itself, DBMS and related software is the
responsibility of the database administrator
(DBA).

Responsible for authorizing access, coordinating,
and monitoring the use of database, acquiring
software and hardware resource as needed.

Account for the problems such as security
breaches, and poor system response time.

20 Shiva Bhattarai
Database Designers


Responsible for choosing appropriate structures
to represent, identify the data to be stored and
store this data in the database.

Communicate and interact with all the database
users in order to understand their requirements
and to create a database design views that meet
the requirements.

Each view is then analyzed and integrated with
the views of other user groups, so that the final
database must be capable of supporting the
requirements of all user groups.

21 Shiva Bhattarai
End users


These are the people whose job is to access
database for querying, updating and
generating reports.

Some categories of end users are:

Casual end users

Naive or parametric end users

Sophisticated end users

Standalone users

22 Shiva Bhattarai
End Users


Casual end users

Typically middle or high-level managers or occasional browsers.

Access the database occasionally, but they may need different
information each time.

Naive or parametric end users

Users such as bank tellers, reservation agents for airlines,
hotels, car rental are the Naive end users.

Main job is constantly querying and updating database, using
standard types of queries and updates called canned
transactions., they should be carefully programmed and tested.

23 Shiva Bhattarai
End Users


Sophisticated end users

Includes engineers, scientists, business analysts and others
who are familiarized with the facilities of DBMS in order to
implement their own applications to meet their
requirements.

Standalone users

Maintains personal databases by using ready-made program
packages that provides easy-to-user menu-based or graphics
based interfaces

Example: the user of a tax package that stores a variety of
personal financial data for tax purposes.

24 Shiva Bhattarai
System Analysts and Application Programmers
(Software Engineers)


System analysts

determine the requirements of end users, especially naïve
and parametric end users, and develop specifications for
standard canned transactions.

Application programmers

implement these specifications as programs; then they test,
debug, document and maintain these canned transactions

Such analysts and programmers, commonly referred
to as software developers or software
engineers.

25 Shiva Bhattarai
Workers behind the Scene


DBMS system designer, typically not interested in the
database content itself. They include the following
categories:

DBMS system designers and implementer

Design and implement the DBMS modules and interface as a software package.

DBMS, consists of many components or modules including modules for
implementing the catalog, query language processing, interface processing,
accessing and buffering data, controlling concurrency and handling data
recovery and security.

DBMS interface with other system software such as OS and compilers for
various programming languages.

Tool developers

Operators and maintenance personnel

26 Shiva Bhattarai
Workers behind the Scene


DBMS system designer, typically not interested in the
database content itself. They include the following
categories:

Tool developers

Design and implement tools, software packages that facilitate database
modeling and design and database system design and improved performance.

Optional package tools purchased separately, includes package for database
design, performance monitoring, natural language or graphical interfaces,
prototyping, simulation and test data generation

Operators and maintenance personnel

System administration personnel

Responsible for the actual running and maintenance of the hardware and
software environment for the database system.

27 Shiva Bhattarai
Advantages of Using the DBMS Approach


Controlling redundancy

Restricting unauthorized access

Providing persistent storage

Providing storage structures and search techniques for efficient
query processing

Providing backup and recovery

Providing multiple user interfaces

Enforcing integrity constraints;

Reduced application development time;

Flexibility

Availability of up-to-date information

Economies of scale

28 Shiva Bhattarai
Data redundancy and inconsistency

29 Shiva Bhattarai
Controlling redundancy


Redundancy means storing the same data multiples times that lead to the
several problems.

Traditional file system cannot control redundancy of data as each user
defines and maintains the needed files for a specific application to run.
There is the possibility that two user are maintaining the same data files
for different applications.

Redundancy leads to the

duplication of effort i.e. when multiple copies of a data need to be updated

data inconsistency (while updating the database)

wastage of storage space.

The change made by one user does not reflect in the files used by another
user, that leads to the inconsistency of data.

DBMS controls redundancy by maintaining a single repository of data that is
defined once and is accessed by many users, as there is no or less
redundancy, data remains consistent.

30 Shiva Bhattarai
Restricting unauthorized access


DBMS provides a security and authorization
subsystem, which the DBA uses to create accounts
and to specify account restrictions.

Since multiple user share a large database, most
users will not be authorized to access all
information in the database.

For example, financial data is often considered
confidential, and only authorized persons are
allowed to access such data.

Some user may only be permitted to retrieve data,
where as others are allowed to retrieve and update.

31 Shiva Bhattarai
Providing persistent storage


Object-oriented database systems uses the persistent
storage for program objects and data.

In OOP paradigm value of the program variables or objects
are discarded once a program terminates (called transient
object), however OOP database they can be store in the
permanent files, which often involves converting these
complex structure into a format suitable for file storage.
furthermore, they can be reused.

A complex object in C++ can be stored permanently in an
OO DBMS. Such object is said to be persistent object, since
it survive the termination of program execution and can
later be directly retrieved by another C++ program.

32 Shiva Bhattarai
Providing Storage Structures and Search
Techniques for Efficient Query Processing


DBMS must provide capabilities for efficiently
executing queries and updates.

The DBMS maintains indexes (typically in the
form of trees and hash tables) that are utilized
to improve the execution time of queries and
updates and is the responsibility of the DBA.

The query processing and optimization module
is responsible for choosing an efficient query
execution plan for each query submitted to the
system.

33 Shiva Bhattarai
Providing Backup and Recovery


The backup and recovery subsystem of DBMS
approach must provide facilities for backup,
recovering from hardware or software failures.

For example: if the computer system fails in
the middle of transaction, the recovery system
is responsible for making sure that the
database is restored in the previous state. Or
recovery system should ensure the transaction
is resumed from the point at which it was
interrupted.

34 Shiva Bhattarai
Providing Multiple User Interfaces


Depending upon the varying level of technical
knowledge use of database, DBMS should
provide a variety of user interface.

For example, query languages for casual users,
programming language interfaces for
application programmers, forms and/or
command codes for parametric users, menu-
driven interfaces for stand-alone users.

35 Shiva Bhattarai
Enforcing Integrity Constraints


Most database applications have certain
integrity constraints that must hold for the data.

A DBMS should provide capabilities for defining
and enforcing these constraints. The most
simplest type of integrity constraint involves
specifying a data type for each data item.

Another kind of constraint is referential
integrity, which says that if the database
includes an entity that refers to another one, the
latter entity must exist in the database.

36 Shiva Bhattarai
Database Applications


Your Job...

37 Shiva Bhattarai
Assignment - 1


Define the following terms:data, information,
database, DBMS, database system, information,
program-data independence, persistent object,
meta-data,and transaction-processing application.

Discuss the main characteristics of the database
approach and how it differs from traditional file
systems.

Discuss the capabilities that should be provided
by a DBMS.

What are the responsibilities of the DBA and the
database designers?

38 Shiva Bhattarai
Other References

https://www.cambridgeinternational.org/Images
/285017-data-information-and-knowledge.pdf
Database Design – 2nd Edition by Adrienne Warr
and Nelson Eng is used under a CC BY 4.0
International License.
http://www.navodayaengg.in/wp-content/upload
s/2015/09/L4-Advantages-of-using-DBMS-approa
ch.pdf
https://www.geeksforgeeks.org/bbms-advantag
es-dbms-file-system/

39 Shiva Bhattarai

You might also like