DB 1
DB 1
1
OOP COURSE OUTLINE
Credits/Contacts 4/5
Prerequisite COSC2071
5.2 Normalization
Final Exam------------------------------------(50%)
INTRODUCTION TO DATABASE
12
1. What is Database
Database is a very large integrated collection of data
data
1. What is Database-----
What is a Database?- It is a collection of related facts
Filing Cabinet
Hard disk full of data
Diary
Library
DBMS + Database
=
Database System 16
2. Database Approaches
Data management passes through the different levels
of development. The common are discussed as
follows:
I. Manual Approach
19
Let us also build phone address book
Abebe A. 0911164743
Seble K. 0912150844
Ayele L. 0913170841
Elfinesh W. 0911169673
Ermias H. 0912151043
Worku A. 0911199904
Worku D. 0912620410
Abebe D. 0914556768
20
Limitations of the Manual Approach
1. Problem of Data Organization
2. Problem of Efficiency
3. Prone to error
23
2. Traditional File Based Approach
This approach uses computer for data processing to
the business community, via the device for data
storage and processing increase.
personnel departments.
Eg.
28
personnel writes in C
Limitations of Traditional File-Based Approach-----
Suppose payroll wants to know when a certain employee will be
on pension.
7. Data Anomalies
A. Modification Anomalies:
29
A problem experienced when one or more data value is
Limitations of Traditional File-Based Approach-----
B. Deletion Anomalies:
C. Insertion Anomalies:
management systems.
3. Database Approach-----
The database systems is presented for user with a
view of data organized as tables called relations
33
3. Database Approach-----
A Database is a shared collection of logically related data
designed to meet the information needs of an organization-
(Centralized System).
The database contains not only the database itself but also a
complete definition or description of the database.
38
Limitations and Risk of Database Approach------
Complexity in designing and managing data
The cost and risk during conversion from the old to the
new system
Most of those functions are transparent to end users, and most can
be achieved only through the use of a DBMS. They include:
Security Management
A modern DBMS provides storage not only for the data, but
also for related data entry forms or screen definitions, report
definitions, data validation rules, procedural code, structures
to handle video and picture formats, and so on.
43
Although the user sees the unit, the DBMS actually stores
the database as a single data storage in multiple physical
data files.
procedures.
DBMS Functions-----
5. Data Integrity Management
For example, the DBMS might provide access to the database via the
Internet through the use of Web browsers.
49
Database System Environment------
Taking a DBMS as a system, To design and use a
database, there will be the interaction or integration of
Hardware, Software, Data, Procedure and People.
1. Hardware:
2. Software:
50
3. Procedure:
5. People:
2. Analysis:
3. Design:
3. Database Development Life Cycle (DDLC)
A. Conceptual Design:
B. Logical Design:
55
4. Implementation:
software resources
5. Roles in Database Design and Use------
Involves in all steps of database development
4. End Users
STUDENTs
COURSEs
Examples of updates:
Change the class of ‘Lemma’ to sophomore
Create a new section for the ‘Database’ course for this semester
Enter a grade of ‘A’ for ‘Lemma’ in the ‘Database’ section of last
semester
63
Data Abstraction(Categories of data models)
Data can be described at three levels of abstraction
Physical schema
65
Typical DBMS Structure/Database System
66
Database Components(Structure)
1. Disk space (storage) manager
2. Buffer manager
allows the query evaluation system to request data from lower levels
67
Database Components(Structure)------
4. Query evaluation
most modern DBMSs will optimize queries
There are often multiple equivalent queries
The query optimizer determines an efficient execution plan for a
query
5. Transaction lock manager
responsible for allowing concurrent access
While maintaining data integrity
6. Recovery manager
responsible for maintaining a log and restoring the system after
a crash
68
Database System Architecture
i. Centralized and Client-Server Architectures
Centralized DBMS: combines everything into single
system including- DBMS software, hardware,
application programs and user interface processing
software.
a. Specialized Servers
It includes the with Specialized
following three things:functions:
File Servers
Printer Servers
Web Servers
E-mail Servers
b. Clients:
Provide appropriate interfaces and a client-version of the
c. DBMS Server
(LAN: local area network, wireless network, etc.)
Provides database query and transaction services to the
clients
stores the web connectivity software and the rules and business logic (constraints) part of the
application used to access the right amount of data from the database server
acts like a conduit for sending partially processed data between the database server and the client.