Lecture 2
Lecture 2
System
Introduction
By Aiman Naeem
A file-based system is a method of storing and organizing data
in separate files, where each department or application
manages its own data independently.
Systems • Data Redundancy: The same data might be stored in multiple files, leading to
wasted storage space and potential inconsistencies.
• Data Isolation: Data is isolated in separate files, making it difficult to access
related information across files without complex procedures.
• Data Integrity Issues: Maintaining consistency across files is challenging, especially
when data is updated in one file but not in others.
• Difficulty in Data Retrieval: Searching and retrieving data often requires writing
custom programs, making it more time-consuming and prone to errors.
Advantage: With a
Definition: Application
centralized database,
programs are software
applications across the
that interact with the
Types: organization can access
database by issuing SQL
the same data in real-
commands to retrieve or
time, providing a unified
modify data.
view of the information.
Online Applications:
Batch Applications: Allow real-time
Used for processing large interaction with the
volumes of data at once. database, typically
through a user interface.
Views in a DBMS
Definition: A view is a virtual table
derived from the database,
showing a subset of the data
based on specific requirements.
Benefits:
Security: Sensitive data can
be hidden from certain users
by restricting their access to
specific views.
Customization: Different
departments can have
customized views of the data,
tailored to their specific
needs.
Data Independence: Changes
to the underlying database do
not affect the view if the
structure of the view remains
the same.
Components Hardware: The physical infrastructure where the DBMS runs,
ranging from personal computers to large-scale servers.
of the DBMS
Software: Includes the DBMS itself, operating systems, and
Environment application programs that interact with the database.
Roles in the
DBMS
Environment
Each role is vital to the management,
design, development, and use of the
database.
Manages data
resources and policies.
(DA): conceptual/logical
design.
Advises senior
management.
Database database.
Handles security,
Inserting data
Use programming
languages to create
Role:
operations for:
Application
Updating data
Developers
Common languages include
third-generation and fourth-
generation languages.
Deleting data
Role: End Users
Object-
File-Based Hierarchical Relational Commercial Oriented & Web & XML
ER Model
Systems & Network Model RDBMSs Object- Integration Modern
(1976,
(1960s- DBMS (Mid- (1970, E.F. (1979- Relational (Mid- Trends:
Chen):
onwards): 1960s): Codd): onwards): DBMS 1990s):
(1990s):
Data Consistency
• Updates occur in one location, ensuring all users see the latest
data.
• Minimizes data inconsistencies.
Sharing of Data
Increased Concurrency
Enforcement of Standards
If the data needs are straightforward, and the application is small, a full-fledged DBMS may be overkill.
Small organizations or projects with tight budgets may not justify the investment.
If the data is not expected to grow or change frequently, and the system is not complex, the overhead of a DBMS
may not be necessary.
to Use Real-time systems with strict performance requirements might require more specialized, low-latency solutions.
In some cases, when data is highly distributed or frequently changing in an environment like IoT, a DBMS may not be
ideal.
Specialized distributed databases or NoSQL systems might be better suited.
Applications with very specific or niche requirements (e.g., proprietary data structures or formats) might require
custom-built systems rather than a generic DBMS.
List List four government sectors in your country that use database systems.
Any
administrators.
Questions? Describe Describe the main characteristics of the database approach and contrast it
with the file-based approach.
Describe the five components of the DBMS environment and discuss how
Describe they relate to each other.