0% found this document useful (0 votes)
16 views54 pages

Adavanced DBMS Chap 1

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

Adavanced DBMS Chap 1

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

Collage of health science

department of health informatics


Advanced database management
system

prepared by: Alex. A(MPH)


Chapter one: Introduction to advanced database
Objectives
At the end of this chapter students should able to Know:
 The over view of advanced database system
 The defnitions of DBMS
 Database application programs
 Terminologies of Database
 Basic concepts and principles of DB
 Properties of Database
 Types of Database system
 Characteristics of Database approaches
 Components of a Database System
 Database Development Process

By A.A
Introduction to advanced database
Database is now such an integral part of our day-to-day life.
it is a collection of related data and the Database Management System (DBMS)
Database is a single, possibly large repository of data that can be used
simultaneously by many departments and users.
Instead of disconnected files with redundant data, all data items are integrated
with a minimum amount of duplication.
The database is no longer owned by one department but it is a shared corporate
resource.
The database holds not only the organization’s operational data but also a
description of this data.

12/22/2024 By A.A
DBMS
The DBMS is the software that interacts with the users’ application programs and
the database. It provides the following facilities:

It allows users to define the database, usually through a Data Definition Language
(DDL).
The DDL allows users to specify the data types and structures and the
constraints on the data to be stored in the database.

It allows users to insert, update, delete, and retrieve data from the database,
usually through a Data Manipulation Language (DML).
Having a central repository for all data and data descriptions allows the DML
to provide a general inquiry facility to this data, called a query language.
12/22/2024 By A.A
DBMS.....
It provides controlled access to the database. For example, it may provide:
A security system, which prevents unauthorized users accessing the database;
An integrity system, which maintains the consistency of stored data;
A concurrency control system, which allows shared access of the database;
A recovery control system, which restores the database to a previous
consistent state following a hardware or software failure;
A user-accessible catalog, which contains descriptions of the data in the
database.
12/22/2024 By A.A
Database application programs
Users interact with the database through a number of application programs that
are used to create and maintain the database and to generate information.

These programs can be conventional batch applications or, more typically


nowadays, they will be online applications.

The application programs may be written in some programming language or in


some higher-level fourth-generation language.

12/22/2024 By A.A
Terminologies of Database
• Data: known facts that can be recorded and have implicit meaning

• Database: is a collection of information that is organized so that it can be


easily accessed, managed and updated.

• Database system: is the collection of database and DBMS software


together.

It is composed of 5 major parts: Hardware, Software (DBMS), People,


Procedure and Data

12/22/2024 By A.A
Terminologies of Database cont’d…
• Database Management System (DBMS): is a collection of programs
that enables users to create and maintain a database.

The primary goal of a DBMS is to provide a way to store and


retrieve data/information that is both convenient and efficient.

• A database model is a blueprint for how data is stored in a


database which is used to create a database.

• A query: is a database object that can be used to extract or show


information in a datasheet view.

12/22/2024 By A.A
Terminologies of Database cont’d…
• Table: A list of related information in column and rows.

Each Row in a table is considered as record (Eg. your information in


the phone book is a record)

Each Column in the table is a category or a field (a column of phone


numbers in the phone book would be considered as a field)

One item of data, such as your phone number in the phone book is
called a Data value.

12/22/2024 By A.A
Basic concepts and principles of DB

• Databases and database systems are an essential component of


life in modern society as database technology have a major impact
on the growing use of computers

• 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:

• if we go to the bank to deposit or withdraw funds

• if we make a hotel or airline reservation


12/22/2024 By A.A
Basic concepts and principles cont’d….
• The DBMS is a general-purpose software system that facilitates the
processes of defining, constructing, manipulating, and sharing
databases among various users and applications.

• Defining a database involves specifying the data types, structures


and constraints of the data to be stored in the database.

• The database definition or descriptive information is also stored by the


DBMS in the form of a database catalog or dictionary; it is called meta-
data.

• 12/22/2024
The database and DBMS software
By A.A together are the database system
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.

• 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/22/2024 By A.A
Basic concepts and principles cont’d….

12/22/2024 By A.A
Basic concepts and principles cont’d….

12/22/2024 By A.A
Basic concepts and principles cont’d….

• Database manipulation involves querying and updating.

Examples of queries are as follows:

Retrieve the transcript—a list of all courses and grades—of ‘Smith’

List the names of students who took the section of the ‘Database’ course
offered in fall 2008 and their grades in that section

List the prerequisites of the ‘Database’ course

12/22/2024 By A.A
Basic concepts and principles cont’d….
Examples of updates include the following:
• Change the name ‘Smith’ to John

• 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.

12/22/2024 By A.A
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.

• These requirements are documented in detail and transformed into a


conceptual design that can be represented and manipulated using
some computerized tools so that it can be easily maintained, modified,
and transformed into a database implementation.

• The design is then translated to a logical design that can be


expressed in a data model implemented in a commercial DBMS.

12/22/2024 By A.A
Properties of Database
• Completeness

• Integrity

• Flexibility

• Efficiency

• Usability

12/22/2024 By A.A
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

• It requires the complete understanding of database structure,


relationships and constraints

12/22/2024 By A.A
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

12/22/2024 By A.A
Properties of Databases cont’d….
Flexibility
• Ensures that a database can evolve (without requiring excessive
effort) to satisfy changing user requirements.
• Ability to upgrade or change the functionality of database up to
the current need
• Ability to support wide area of data types

12/22/2024 By A.A
Properties of Databases cont’d….
Efficiency
• Ensures that users do not have unduly long response times when
accessing data
• The database should be able to perform effectively

• The designer has to choose the right DBMS, the right access
path in order to improve the efficiency

12/22/2024 By A.A
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

12/22/2024 By A.A
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
Provide an organizational structure for data

Provide a mechanism for querying, creating, modifying and


deleting data

12/22/2024 By A.A
Types of Database system
There are two types of database systems. These are:
a. Personal Database system: personal database systems typically:

• Support one application

• Have only a few tables

• Are simple in design

• Involve only one computer

• Support one user at a time

12/22/2024 By A.A
Types of Database system cont’d….
b. Enterprise-Level Database System: This systems typically:
• Support several users simultaneously (concurrent use)

• Support more than one application

• Involve multiple computers

• Are complex in design

• Have many tables

• Have many databases

12/22/2024 By A.A
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 file systems, each application is free to name data elements independently.

• In contrast, in a database, the names or labels of data are defined once, and
used repeatedly by queries, transactions, and applications

12/22/2024 By A.A
Characteristics cont’d….
• Data management passes through the different levels of development along
with the development in technology and services.

• These levels could best be described by categorizing into three levels of


development.

• 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.

• The major three levels (approaches) are;

• Manual Approach

• Traditional File Based Approach

• Database Approach

12/22/2024 By A.A
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:

• Human labor intensive

• Events and objects are written on files (paper)

• Files are labeled and stored in one or more cabinets.

• The cabinets could be kept in safe places for security purpose.

• Insertion and retrieval is done by searching first for the right cabinet then
for the right file then the information.

• One could have indexing system to facilitate access to the data.

12/22/2024 By A.A
Manual File Handling cont’d…
Limitations with all manual systems
• Prone to error

• Difficult to update, retrieve, integrate

• You have the data but it is difficult to compile the information

• Significant amount of duplication of data

• Cross referencing is difficult

Solution
• The computerized approaches evolved to overcome this limitations
• File based approach  decentralised
• Database approach centralised
12/22/2024 By A.A
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.

• Each program defines and manages its own data

• Applications developed in an ad-hoc (created or done for a


particular purpose as necessary) and opportunistic manner

• File based systems were an early attempt to computerize the


manual filing system.
12/22/2024 By A.A
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

• Data files are developed for individual applications

• Application programs are data dependent

• Data requirements for applications derived independently

• Even though the approach evolved over time, the basic structure is
still similar but not identical.
12/22/2024 By A.A
File based approach cont’d…
• Limitations of the traditional file based approach

• The most significant problem is the “update anomalies”.

• We have three types of update anomalies:

• Modification Anomalies

• Deletion Anomalies

• Insertion Anomalies

12/22/2024 By A.A
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.
12/22/2024 By A.A
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 file systems, each application is free to name data elements


independently.

• In contrast, in a database, the names or labels of data are defined once,


and used repeatedly by queries, transactions, and applications
12/22/2024 By A.A
Benefits of database systems
Controlling redundancy

Restricting unauthorized access

Data can be shared

Improved data accessibility

Quality data can be maintained

Inconsistency can be avoided

Improved decision support

Providing backup and recovery

Enforcing integrity constraints


12/22/2024 By A.A
Limitations and risks of database approach
• Introduction of new professional and specialized personnel

• High cost to be incurred to develop and maintain the system

• Complex backup and recovery services from the users perspective

• Reduced performance due to centralization and data independency

• High impact on the system when failure occurs to the central system

12/22/2024 By A.A
Components of a Database System
There are five component of Database system

i. Hardware
• The DBMS and the application needs hardware to run.

• The hardware can be Personal, Mainframe, Network.

• 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

Eg. A client server architecture


- Clients: front end of DBMS
- Database Server: back end of DBMS
12/22/2024 By A.A
Components of a Database cont’d….
ii. Software
• It composed the DBMS and the application together with the operating
system.

• Application programs can be written in 3rd generation language.

• 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.

• It contain both the operational and metadata.

• The structure of the data base is called schema.

12/22/2024 By A.A
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
12/22/2024 By A.A
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.

• Administering these resources is the responsibility of the database


administrator.

12/22/2024 By A.A
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.

12/22/2024 By A.A
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

• It is the responsibility of database designers to communicate with all


prospective database users in order to understand their requirements and to
create a design that meets these requirements

• 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.
12/22/2024 By A.A
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.

• The final database design must be capable of supporting the requirements


of all user groups.

12/22/2024 By A.A
Actors on the Scene cont’d….
Designers can be:
• Logical Designers

• Concerned with identifying the data, entities and attributes,


relationships and constraints

• Need a complete knowledge of the organization's data and


business rules
• Physical Designers
• Decide how the logical database designer is to be physically
realized

• Map the logical database design into a set of tables

• Select specific storage structures and access methods


12/22/2024 By A.A
• Design security measures
Actors on the Scene cont’d….
C. Application Developers

• Develop the application programs.

• Application programs provide the required functionality for the end user.

• Work based on the requirement specified by the system analyst.

• Each program contains statements that request the DBMS to perform


some operation on the database – retrieving, inserting, updating and
deleting data

12/22/2024 By A.A
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.

 A primary goal of a database system is to retrieve information from and store


new information in the database.

 People who work with a database can be categorized as database users or


database administrators.

 There are four different types of database-system users, differentiated by the


way they expect to interact with the system

12/22/2024 By A.A
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

• Their main job function revolves around constantly querying and


updating the database, using standard types of queries and updates
called canned transactions that have been carefully programmed
and tested.

• Casual end users occasionally access the database, but they may
need different information each time.

• They use a sophisticated database query language to specify their


requests and are typically middle- or high-level managers or other
occasional browsers.
12/22/2024 By A.A
Actors on the Scene cont’d….
• The tasks that such users perform are varied:

• Bank tellers check account balances and post withdrawals and


deposits.

• Reservation agents for airlines, hotels, and car rental companies check
availability for a given request and make reservations.

• Employees at receiving stations for shipping companies enter package


identifications via bar codes and descriptive information through buttons
to update a central database of received and in-transit packages.

12/22/2024 By A.A
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.

They submit each such query to a query processor, whose function is to


break down DML statements into instructions that the storage manager
understands.

• Standalone users maintain personal databases by using ready-made


program packages that provide easy-to-use menu-based or graphics-based
interfaces.

• An example is the user of a tax package that stores a variety of personal


financial data for tax purposes.

12/22/2024 By A.A
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 collection of these steps is sometimes referred to as the software


development life cycle (SDLC).

• 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.

12/22/2024 By A.A
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:

DBMS system designers and implementers design and


implement the DBMS modules and interfaces as a software
package

Tool developers design and implement tools—the software


packages that facilitate database modeling and design, database
system design, and improved performance.
12/22/2024 By A.A
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

 Although these categories of workers behind the scene are


instrumental in making the database system available to end users,
they typically do not use the database contents for their own
purposes.

12/22/2024 By A.A
12/22/2024 By A.A

You might also like