Home » Database Management System » Unit 1: Introduction » Briefly describe the overall structure of a DBMS. OR Draw the overall structure of a DBMS and explain its various components.

Briefly describe the overall structure of a DBMS. OR Draw the overall structure of a DBMS and explain its various components.

Support this post with a reaction:

3,749 views

A DBMS is not one single block it is made of many parts (modules), and each part does a specific job.

Broadly, the whole architecture can be divided into 3 main layers:

  1. Query Processor
  2. Storage Manager
  3. Physical Storage

1. Query Processor

The job of the query processor is simple: it takes the high-level query written by the user (like SQL) and converts it into low-level instructions that the system can actually run.

PartWhat it does
DDL InterpreterHandles DDL statements (like CREATE, ALTER). It saves the structure information into the data dictionary.
DML Compiler / ParserConverts the SQL query into low-level instructions that the database engine can understand. It also checks for syntax errors.
Query OptimizerLooks at different ways to run the same query, and picks the best (fastest, most efficient) way to do it.
Query Execution EngineTakes the final optimized plan, runs it by talking to the Storage Manager, and returns the result to the user.

2. Storage Manager

The storage manager works like a bridge between the data stored on the disk and the queries/programs that need that data.

PartWhat it does
Buffer ManagerManages the RAM (cache memory). It brings the needed data blocks from the hard disk into memory, so operations run faster.
File ManagerManages disk space and decides how data is stored/organized on the physical storage.
Transaction ManagerMakes sure transactions run safely and correctly, even if there is a power cut or system crash.
Authorization and Integrity ManagerChecks if the user has permission to access the data, and makes sure all the rules (constraints) are followed.

3. Physical Disk Storage

This is the actual hardware where the data is permanently stored.

PartWhat it does
Data FilesStore the actual data  all the rows and tables.
IndicesHelp find data quickly, just like an index page at the back of a book helps you find a topic fast.
Data Dictionary (System Catalog)Stores metadata — information about table structures, columns, constraints, and user access rights (basically, “data about the data”).