Database Management Systems (DBMS) Course-KCS-501: Lec 1 - R. S. Kohli
Database Management Systems (DBMS) Course-KCS-501: Lec 1 - R. S. Kohli
Course- KCS-501
Lec 1 – R. S. Kohli
Lecture 1
• Introduction of Database System
• Database System vs File System
Introduction
• DATABASE
• Organized collection of inter-related data that models some aspect of
the real-world.
• DBMS.
• A software system that enables users to store data, view data, access
(query) data and manipulate data.
Note: Course focuses on Relational Database Management System
Database Management System (DBMS)
A Database Management System (DBMS) is a bunch of software designed
to store and manage databases.
It is used to:
• Define, modify, and query a database
• Control access
• Permit concurrent access
• Maintain integrity
• Provide loading, backup, and recovery
• The DBMS is the software that interacts with the users’ application programs
and the database.
• DBMS allows users to create, manipulate, maintain data and control access
to database
• Users interact with the database through a number of application programs
that are used to create and maintain the database and to generate
information.
Database Applications
Databases are the core component of most computer applications.
Database Applications:
• Banking: all transactions
• Airlines: reservations, schedules
• Universities: registration, grades
• Sales: customers, products, purchases
• Online retailers: order tracking, customized recommendations
• Manufacturing: production, inventory, orders, supply chain
• Human resources: employee records, salaries, tax deductions
Database
Database - is an organized collection of related data, usually stored on disk. It
typically
• Duplication of data
Owing to the decentralized approach taken by each department, the file-
based approach encouraged uncontrolled duplication of data
Traditional File-Based Systems
• Fixed queries
As the requirement for new or modified queries come, a new
application has to be designed.
• Data isolation
-Multiple files and formats
-It is difficult for new applications to retrieve the appropriate data, which might be
stored in various files.
• Data Integrity
-Integrity constraints/data semantics (e.g., account balance > 0) become “buried”
in program code rather than being stated explicitly
-Hard to add new constraints or change existing ones in File System
Advantages of Database over File System
• Atomicity : Atomicity of a transaction refers to “All or nothing”, which means
either all the operations in a transaction executes or none. It is difficult to achieve
atomicity in file processing systems.
• Security problems
-Hard to provide user access to some, but not all, data in file system
-Data should be secured from unauthorised access
• Integrity of data
Problems with data integrity is another disadvantage of using a file-based
system. It refers to the maintenance and assurance that the data in a database
are correct
Database systems offer solutions to all the above problems in file
system
Simplified database system environment
RDBMS products
• Db2 from IBM.
• SQL Server from Microsoft.
• Oracle database from Oracle
• MySQL – open-source database, also
from Oracle.
• PostgreSQL – the most advanced
open source database
Key Terms
• concurrency: the ability of the database to allow multiple users access to
the same record without adversely affecting transaction processing
• data inconsistency: a situation where various copies of the same data are
conflicting
• data isolation: a property that determines when and how changes made by
one operation become visible to other concurrent users and systems
• data integrity: refers to the maintenance and assurance that the data in a
database are correct and consistent
• data redundancy: a situation that occurs when a field needs to be updated
in more than one file / database table
• database management software: a powerful software tool that allows you
to store, manipulate and retrieve data in a variety of ways
• file-based system: an application program designed to manipulate data
files