CIE AS & A Level Computer Science, section 8.2 (Database Management Systems (DBMS))
What a DBMS is
A database management system (DBMS) is the software that creates, manages and controls access to a database.
Features that address file-based problems
| Feature | Purpose |
|---|---|
| Data management, including a data dictionary | stores the structure of the database: the tables, fields, data types, keys and relationships |
| Data modelling | lets designers describe the data and the links between tables (such as with an E-R diagram) |
| Logical schema | the overall logical design of the database (tables, fields and relationships), independent of how the data is stored physically |
| Data integrity | enforces validation rules, primary keys and referential integrity so data stays consistent |
| Data security | access rights for individuals or groups of users, and backup and recovery procedures |
The data dictionary is useful to developers and to the DBMS itself, for example listing each field's name, type and size.
Software tools in a DBMS
- Developer interface: tools for designing and building the database, such as creating tables, forms and reports, and writing queries, often with a graphical or SQL interface.
- Query processor: takes a query (usually in SQL), checks it, works out the best way to carry it out, and retrieves or changes the data.
Worked example
A school office user can only view student contact details (access rights), a teacher can edit marks, and the administrator can change the structure. The DBMS checks each user's rights for every request, and rejects any attempt to enter a class that does not exist (referential integrity).
Common mistake: describing a DBMS as "the database". The database holds the data; the DBMS is the software that manages it. Also, a data dictionary holds data about the data (its structure), not the data itself.
Exam tip: give each feature and say which file-based problem it solves. For the data dictionary, mention it stores table and field definitions.
Check yourself
What is stored in a data dictionary?
Information about the database structure: tables, fields, data types, keys and relationships.
What does the query processor do?
It interprets a query, decides how to run it and retrieves or changes the data.
How does a DBMS improve data security?
It uses access rights for users and groups, and backup and recovery procedures.