Chapter 1 Fundamental of Database System Updated
Chapter 1 Fundamental of Database System Updated
Chapter One:
Introduction to Database System
What is database
Database management system and its components
Database design life cycle
Roles in Database Design and Use
Database Architecture
1-3
1. What is Database
A very large integrated Collection of data.
A database is an organized collection of structured information, or data, typically stored
electronically in a computer system.
A database is usually controlled by a database management system (DBMS).
Database management system(DBMS) – a powerful tool(software package) for creating
and managing large amounts of data efficiently and allowing it to persist over long periods
of time, safely.
Data management involves both definition and the manipulation of the data
So the term database refers to a collection of data that is managed by a DBMS.
Thus the DB course is about:
How to organize data ;Supporting multiple users; Efficient and effective data
Diary
Data management passes through the different levels of development. The common are
three
1. Manual Approach
Data storage and retrieval follows the primitive and traditional way of information handling
where cards and paper are used for the purpose.
Example
Files for as many event and objects as the organization has are used to store information.
Each of the files containing various kinds of information is labelled and stored in one ore
more cabinets.
The cabinets could be kept in safe places for security purpose based on the sensitivity of
Since every application defines and manages its own data, the system is subjected
3. Database Approach
That database systems is presented for user with a view of data organized as tables
called relations.
IT emphasizes the integration and sharing of data throughout the organization.
Database is a collection of logically related data where these logically related data
comprises entities, attributes, relationships, and business rules of an organization's
information.
Database is deigned once and used simultaneously by many users.
1-9
Benefits of the database approach
Data can be shared: two or more users can access and use same data instead of storing data
in redundant manner for each user.
Improved accessibility of data: by using structured query languages, the users can easily
access data without programming experience.
Quality data can be maintained: the different integrity constraints in the database approach
will maintain the quality leading to better decision making
Integrity can be maintained: data at different applications will be integrated together with
additional constraints to facilitate validity and consistency of shared data resource.
Security measures can be enforced: the shared data can be secured by having different levels
of clearance
Speed: data storage and retrieval is fast
Centralized information control: since relevant data in the organization will be stored at one
repository, it can be controlled and managed at the central level.
1-10
The cost and risk during conversion from the old to the new system
High impact on the system when failure occurs to the central system.
1-11
2. Database Management System (DBMS)
A full scale DBMS should at least have the following services to provide to the user
i. Data storage, retrieval and update in the database
ii. A user accessible catalogue
iii. Transaction support service: ALL or NONE transaction, which minimize data
inconsistency.
iv. Concurrency Control Services: access and update on the database by different users
simultaneously should be implemented correctly.
v. Recovery Services: a mechanism for recovering the database after a failure must be
available.
vi. Authorization Services (Security): must support the implementation of access and
authorization service to database administrator and users.
vii. Integrity Services: rules about data and the change that took place on the data,
correctness and consistency of stored data, and quality of data based on business
constraints.
viii. Services to promote data independency between the data and the application
1-12
Database Languages
DBMS should have facilities to define the database, manipulate the content of the database
and control the database.
It provides the following facilities:
Data Definition Language (DDL):
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.
i. Hardware: These components are comprised of various types of personal
computers, mainframe or any server computers to be used in multi-user system,
network infrastructure, and other peripherals required in the system.
ii. Software: are collection of commands and programs used to manipulate the
hardware to perform a function. Like the DBMS software, application programs,
operating systems, network software, language software and other relevant
software.
iii. Procedure: this is the rules and regulations on how to design and use a database.
It includes procedures like how to log on to the DBMS, how to start and stop
iv. Data:
Data is the most important component to the user of the database.
There are two categories of data in any database system: that is Operational and
Metadata.
• Operational data is the data actually stored in the system to be used by the user.
• Metadata is the data that is used to store information about the database itself.
The structure of the data in the database is called the schema, which is composed of
the Entities, Properties of entities, and relationship between entities and business
constraints.
v. People:
this component is composed of the people in the organization that are responsible or play
a role in designing, implementing, managing, administering and using the resources in
the database.
1-15
3. Database Development Life Cycle (DDLC)
Major steps in database design are:
i. Planning: that is identifying information gap in an organization and propose a
database solution to solve the problem.
ii. Analysis: that concentrates more on fact finding about the problem or the opportunity.
Feasibility analysis, requirement determination and structuring, and selection of best
design method are also performed at this phase.
iii. Design:The phase is further divided into three sub-phases.
a. Conceptual Design: concise description of the data, data type, relationship
between data and constraints on the data.
» There is no implementation or physical detail consideration.
b. Logical Design: a higher level conceptual abstraction with selected specific data
model to implement the data structure.
» It is particular DBMS independent and with no other physical considerations.
iv. Implementation: the testing and deployment of the designed database for use.
v. Operation and Support: administering and maintaining the operation of the database
system and providing support to users.
1-17
5. Roles in Database Design and Use
There are group of roles played by different stakeholders of the designing and operation of
a database system. These are:
1. Database Administrator (DBA)
Responsible to oversee, control and manage the database resources
Authorizing access to the database & Involves in all steps of database development.
Accountable for problems like poor security, poor performance of the system.
database.
The application programmer implements these specifications as programs; code, test,
there are different group of users in this category. Like Naïve Users and
Sophisticated Users.
1-19
Example of a Database
Part of a UNIVERSITY environment. Information concerning students, courses, and
grades in a university environment.
• Some mini-world entities:
• STUDENTs
• COURSEs
• DEPARTMENTs
• INSTRUCTORs
Conceptual Schema
Physical Schema
DB
1-24
Typical DBMS Structure/Database System
DBMS
Query Evaluation
Database
1-25
Database Components(Structure)
Disk space (storage) manager – responsible for interaction with the OS file system.
Buffer manager – responsible for bringing pages into main memory from disk.
File and access code- allows the query evaluation system to request data from lower
levels
Query evaluation – most modern DBMSs will optimize queries
Transaction lock manager – responsible for allowing concurrent access
Recovery manager – responsible for maintaining a log and restoring the system after a
crash.
1-26
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.
• it includes the following three things:
B. Clients:
• Provide appropriate interfaces and a client-version of the system to access and utilize the server
resources.
• Clients maybe diskless machines or PCs or Workstations with disks with only the client software
installed.
• Connected to the servers via some form of a network.
(LAN: local area network, wireless network, etc.)
C. DBMS Server
• Provides database query and transaction services to the clients
• Sometimes called query and transaction servers
1-28
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.
• Additional Features- Security:
• encrypt the data at the server before transmission
Thanks!!!