Professional Documents
Culture Documents
Database CH 1
Database CH 1
Systems
6-2
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified
What is Data?
• The term data refers to known raw facts about things like
people, places, events and concepts.
• The word raw indicates that the facts have not yet been
processed to reveal their meaning.
• Data is any fact that can be recorded (or) stored into a
computer hard disk.
• there are various forms of data, like video, audio image,
graphics, text document,
• Data is the foundation of information, which is the bedrock of knowledge—
that is, the body of information and facts about a specific subject.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 6-3
Information and Knowledge
• Information is the processed data presented in a form suitable for human
interpretation.
• Information is the result of processing raw data to reveal its meaning.
• Knowledge:
knowledge.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 6-4
Database
• A database is an organized collection of interrelated data, generally
stored and accessed electronically from a computer system.
• It contains information relevant to an enterprise.
• Management of data involves both defining structures for storage of
information and providing mechanisms for the manipulation of
information.
• The database is an important assets for many organizations.
• Database touch all aspects of our lives.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-5
Database (Cont.)
• The database is an integrated collection of facts about an organization.
• Organization can be a University or a department in a University , Insurance companies,
Manufacturing companies, Banks, Airlines, Telecommunications, Governmental and Non-
governmental Organizations, Research institutions ,etc.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-6
Database (Cont.)
• A database can be defined accurately using its basic implicit properties:
– It represents some aspects of the Mini-world
– Any assortment of data is not a data base.
– It is a collection logically coherent data
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-7
Database Management System
• Database Management System is a program or software which is used to
construct, manipulate and retrieve the data in the database.
• A database management system (DBMS) is a collection of usually complex
pieces of software that allows a user to define, create, manipulate and protect
and manage access to a database.
• The primary goal of a DBMS is to provide a way to store and retrieve database
information that is both convenient and efficient.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-8
Database Systems
• A database system is a collection of interrelated data and a
set of programs that allow users to access and modify these
data.
• Database systems are used to manage collections of data
that are:
– Highly valuable,
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-9
Database Systems (Cont’d…)
• A modern database system is a complex software system whose
task is to manage a large, complex collection of data.
• The database system must ensure the safety of the information
stored, despite system crashes or attempts at unauthorized
access.
• Database systems are ubiquitous today, and most people interact,
either directly or indirectly, with databases many times every day.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-10
Database Applications Examples
Here are some of the applications of database system
• Enterprise Information
– Sales: customers, products, purchases
– Accounting: payments, receipts, assets
– Human Resources: Information about employees, salaries,
payroll taxes.
• Manufacturing: management of production, inventory, orders, supply
chain.
• Banking and finance
– customer information, accounts, loans, and banking transactions.
– Credit card transactions
– Finance: sales and purchases of financial instruments (e.g.,
stocks and bonds; storing real-time market data
• Universities: registration, grades
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-11
Database Applications Examples (Cont.)
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-12
Purpose of Database Systems
In the early days, database applications were built directly on top of file systems, which
leads to:
• Data redundancy and inconsistency
– data is stored in multiple file formats resulting induplication of
information in different files
• Difficulty in accessing data
– Need to write a new program to carry out each new task
• Data isolation
– Multiple files and formats
• Integrity problems
– Integrity constraints (e.g., account balance > 0) become “buried” in
program code rather than being stated explicitly
– Hard to add new constraints or change existing ones
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-13
13
Purpose of Database Systems (Cont.)
• Atomicity of updates
– Failures may leave database in an inconsistent state with partial updates
carried out
– Example: Transfer of funds from one account to another should either complete
or not happen at all
• Concurrent access by multiple users
– Concurrent access needed for performance
– Uncontrolled concurrent accesses can lead to inconsistencies
• Ex: Two people reading a balance (say 100) and updating it by withdrawing
money (say 50 each) at the same time
• Security problems
– Hard to provide user access to some, but not all, data
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 141-14
Example University Database
• Mini-world for a University Database example: Part of a
UNIVERSITY environment.
• Some mini-world entities:
– STUDENTs
– PRE-REQUISITE COURSEs
– COURSEs
– DEPARTMENTs
– INSTRUCTORs
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 15
University Database Example
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 16
Example University Database(Continued…)
• Some mini-world relationships:
– STUDENTs take COURSEs
– COURSEs have PRE-REQUISITE COURSEs
– INSTRUCTORs teach COURSEs
– COURSEs are offered by DEPARTMENTs
– STUDENTs major in DEPARTMENTs
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 17
Example Relational Database Snapshot
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 18
Evolution of Database Systems
• Two approaches to convert data to information:
– File-based
• Developed starting from 1960’s
• Stores, manipulates, retrieves data from large flat files
– Database (relational systems)
• Developed by E. F. Codd of IBM the early 1980's
• Widely used today
Evolution of
Database
Systems
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 19
File-Based Approach
• A file is a collection of related information
• A system of files and collection of application programs
manipulating them is a file-based system
University
File-Based System
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 20
Limitations of File-Based Approach
• Much efforts for ad hoc query answering:
– What is the average grade for Mr.Negacy’s students?
– List the activities for all students enrolled in CoSc2041.
– Which personnel are students as well as staff?
• Other limitations:
– Duplication of data
– Data dependency
– Slow development, high maintenance and fixed queries
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 21
Database Users and Administrators
• 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
• Naïve users
• Application programmers
• Sophisticated users
– database administrators.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-22
database users
• Naive users are unsophisticated users who
interact with the system by using predefined user
interfaces, such as web or mobile applications.
• The typical user interface for naive users is a forms
interface, where the user can fill in appropriate
fields of the form.
• Naive users may also view read reports generated
from the database.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-23
database users
• Application programmers are computer professionals who
write application programs. Application programmers can
choose from many tools to develop user interfaces.
• Sophisticated users interact with the system without
writing programs. Instead, they form their requests either
using a database query language or by using tools such as
data analysis software.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-24
Database Administrator
A person who has central control over the system is called a database administrator
Schema
(DBA). definition of a DBA include:
Responsibilities
Storage structure and access-method definition
Routine maintenance
Periodically backing up the database
Ensuring that enough free disk space is available for normal
operations, and upgrading disk space as required
Monitoring jobs running on the database
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-25
Responsibilities of DBA
• Schema definition.
The DBA creates the original database schema by executing
a set of data definition statements in the DDL.
•Storage structure and access-method definition.
The DBA may specify some parameters pertaining to the
physical organization of the data and the indices to be created.
• 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 performance.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-26
Responsibilities of DBA (Cont’d.)
• Granting of authorization for data access.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-27
Responsibilities of DBA (Cont’d.)
• Routine maintenance.
Monitoring jobs running on the database and ensuring that performance is not degraded by very expensive
tasks submitted by some users.
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-28
Fundamentals of Database Systems
© 2024, Gebriye E. Dept. Computer Science HCIA Security, HCIA R&S and HCIP R&S Certified 1-29