Learning Objectives
By the end of this topic you will be able to:
Define a DBMS and explain its role
Describe the functions of a DBMS: concurrent access, integrity, security, backup and recovery
Explain transaction processing and ACID properties
Understand the role of the Database Administrator (DBA)
What is a DBMS?
Database Management System
A DBMS is software that manages the creation, maintenance, and use of databases. It provides an interface between the physical data storage and the applications and users that access it. Examples: MySQL, PostgreSQL, Oracle, Microsoft SQL Server, SQLite.
Abstraction: applications interact with the DBMS through a query language (SQL), not with the physical storage directly. The DBMS handles how data is physically stored and retrieved.
Multi-user access: a DBMS allows many users and applications to access the same database simultaneously, managing conflicts and ensuring data consistency.
ACID
Transaction Processing and ACID
A transaction is a sequence of operations treated as a single logical unit of work. If any step fails, the entire transaction is rolled back. The ACID properties guarantee reliability:
Atomicity: all operations in a transaction complete successfully, or none take effect (all or nothing). No partial updates.
Consistency: a transaction brings the database from one valid state to another. All integrity constraints remain satisfied.
Isolation: concurrent transactions execute as if they were serial (one after another). Intermediate states are not visible to other transactions.
Durability: once a transaction is committed, the changes are permanent even if the system fails immediately afterwards (stored to non-volatile storage).
Common Mistakes
Don’t Lose Marks
!
Confusing a database with a DBMS — a database is the organised collection of data; a DBMS is the software that manages it. MySQL is a DBMS; the data it manages is the database.
!
Saying Atomicity means transactions are fast — atomicity means transactions are indivisible (all or nothing), not that they are quick. An atomic transaction can take a long time but still succeeds or fails as a whole.
!
Forgetting to apply ACID to the given scenario — exam questions give a specific context (e.g. bank transfer, booking system). You must relate each ACID property to that specific scenario to gain marks, not just define it in the abstract.