SlideShare a Scribd company logo
What is DBMS Architecture
• Database System Architecture refers to the
design and structure of a database system,
which includes the components and
processes that work together to store,
manage, and retrieve data efficiently.
• It provides a framework for organizing and
interacting with data, ensuring data
integrity, security, and performance.
Three-Level Architecture (ANSI-SPARC
Architecture) of DBMS
It provides a clear separation between the physical
storage of data, the logical structure of the database,
and how users interact with the data.
a. External Level (View Level)
Users interact with the database and Queries are submitted
to the database system.
b. Conceptual Level (Logical Level)
The DBMS translates user queries into a logical structure
using the conceptual schema.
Ensures data integrity and enforces constraints.
c. Internal Level (Physical Level)
The DBMS maps the logical structure to the physical storage
using the internal schema.
Retrieves or modifies data on disk.
1. External Level (View Level)
This is the highest level of abstraction and represent how users or
applications view the data. Different users may have different
views of the same database, depending on their specific needs.
Key Features:
• Provides a user-specific view of the database.
• Hides irrelevant or sensitive data from users.
• Multiple external views can exist for a single database.
• Enhances security by restricting access to sensitive information.
Components:
• External Schemas (Views): Define how data is presented to users
• User Interfaces: Forms, reports, or applications that users
interact with to access the database.
2. Conceptual Level (Logical Level)
This level describes the logical structure of the entire database for
all users. It acts as an intermediary between the external and
internal levels.
Key Features:
• Represents the global view of the database.
• Defines the overall structure, including entities, relationships,
constraints, and data types.
• Independent of specific user views or physical storage details.
Components:
• Conceptual Schema: Describes the logical structure of the
database, which includes tables, attributes, relationships, and
constraints (e.g., primary keys, foreign keys).
• Metadata: Information about the database structure, such as
table names, column names, and data types.
3. Internal Level (Physical Level)
This level deals with the physical storage of data on the hardware. It
describes how data is stored in files, indexes, and storage structures.
Key Features:
• Focuses on the physical implementation of the database.
• Includes details like data compression, encryption, and disk
allocation.
• Optimizes storage efficiency and access speed.
Components:
• Internal Schema: Describes the physical storage structure of the
database. Includes file organization, indexing methods, and storage
allocation.
• Storage Structures: Data files, index files, and log files.
• Access Methods: Techniques for accessing data, such as B-trees,
hashing, and sequential access.
Advantages of the Three-Level Architecture
1. Data Independence: Changes at one level do not affect
the other, making the system more flexible and
maintainable.
Example: Adding a new column to a table does not require
changes to user applications.
2. Security: Users only see the data they are authorized to
access.
3. Efficiency: Physical storage can be optimized without
affecting the logical structure or user views.
4. Scalability: The database can grow and evolve without
disrupting existing appilcations.
Components of Database System Architecture
Interaction between Components:
• Users submit queries or requests
to the database system.
• The Query Processor interprets
and optimizes the queries,
generating an execution plan.
• The Storage Manager retrieves or
modifies the data by interacting
with Disk Storage.
• The results are returned to the
Users through the Query
Processor.
1. Users
Users are the individuals or applications that interact with the database system. They can be
categorised into different types based on their roles and level of interaction with the database:
A. End users:
• These are the individuals who interact with the database through applications or interfaces.
• Examples: Students accessing their grades from university portal.
B. Application programmers:
• These are developers who write applications that interact with the database.
• They use programming languages (e.g., Java, Python) and database APIs (e.g., JDBC, ODBC) to create
software that accesses and manipulates data.
C. Database administrators:
• These are responsible for managing and maintaining the database system.
• Tasks including creating and managing user accounts ensuring data security optimising performance
and performing backups and recovery.
2. Query Processor
The Query Processor is a critical component of the DBMS that handles user queries and ensures they are
executed efficiently. It translates high level queries into low level instructions that the database system can
understand and execute.
Components of the Query Processor:
• DDL Interpreter:
• Processes Data Definition Language(DDL) statements, such as CREATE, ALTER, and DROP.
• Updates the database schema and metadata.
• DML compiler:
• Processes Data Manipulation Language statements, such as SELECT, INSERT, UPDATE, and DELETE.
• Converts these statements into intermediate form for execution.
• Query optimizer:
• Determines the most efficient way to execute a query.
• Considers factors like indexes, join order, and access paths to minimise execution time and resource
usage.
• Execution engine:
• Exhibits the low level instructions generated by DML Compiler and Query Optimizer.
• Interacts with Storage Manager to retrieve modify data.
3. Storage Manager
The Storage Manager is responsible for managing the storage, retrieval, and organization of data on disk. It
ensures that data is stored efficiently and can be accessed quickly when needed.
Components of the Storage Manager:
• File Manager:
• Manages the allocation of disk space and organizes data into files.
• Handles file creation, deletion, and access.
• Buffer Manager:
• Manages the transfer of data between disk and main memory (RAM).
• Uses a buffer pool to cache frequently accessed data, reducing disk I/O and improving performance.
• Index Manager:
• Manages indexes, which are data structures (e.g., B-trees, hash tables) that speed up data retrieval.
• Ensures indexes are updated when data is modified.
• Transaction Manager:
• Ensures the ACID properties (Atomicity, Consistency, Isolation, Durability) of transactions.
• Manages concurrency control and recovery.
4. Disk Storage
Disk Storage refers to the physical storage devices (e.g., HDDs, SSDs) where the database data is permanently
stored. It is the lowest level of the database architecture and is managed by the Storage Manager. It ensures
that data is retained even after system is powered off.
Parts of Disk Storage:
• Data Files:
• Store the actual data in the form of tables, records, and fields.
• Organized into blocks or pages for efficient access.
• Index Files:
• Store indexes that provide fast access to data.
• Examples: B-trees, hash indexes.
• Log Files:
• Store transaction logs for recovery purposes.
• Record all changes made to the database to ensure durability and support rollback/rollforward
operations.
• Metadata Files:
• Store information about the database schema, such as table structures, constraints, and user
permissions.
Types of Database System Architectures
a. Centralized Database Architecture
• A single server hosts the database, and all users access it from the
same location.
• Suitable for small organizations with limited data.
b. Client-Server Architecture
• The database is hosted on a server, and clients (users or
applications) access it over a network.
• Two-Tier Architecture: Clients directly interact with the database
server.
• Three-Tier Architecture: Includes an intermediate application
server between clients and the database server.
c. Distributed Database Architecture
• Data is stored across multiple servers or locations.
• Improves scalability and fault tolerance.
• Examples: Google Spanner, Apache Cassandra.
Conclusion
Database system architectures are the backbone of
modern data management systems. They provide the
structure and tools needed to store, retrieve, and
manage data efficiently while ensuring scalability,
security, and reliability. By understanding the different
types of architectures and their components,
organizations can design systems that meet their
specific needs and adapt to future challenges.
Whether it's a centralized system for small
applications or a distributed cloud-based system for
large-scale enterprises, the right architecture ensures
that data remains a valuable and accessible resource.
Department of Computer Science and Engineering
Thank you

More Related Content

Similar to What is dbms architecture, components of dbms architecture and types of dbms architecture (20)

Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
chatkall46
 
Rdbms
RdbmsRdbms
Rdbms
Muhammad Adeel Rajput
 
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMDatabase Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
moronfolabukunmi
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
Mukund Trivedi
 
Dbms unit 1
Dbms unit 1Dbms unit 1
Dbms unit 1
SaiGupta18
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbms
Rupali Rana
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptx
AshmitKashyap1
 
CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)
Dilawar Khan
 
CST204 DBMS Module-1
CST204 DBMS Module-1CST204 DBMS Module-1
CST204 DBMS Module-1
Jyothis Menon
 
Database Management system intro.pptx
Database  Management  system  intro.pptxDatabase  Management  system  intro.pptx
Database Management system intro.pptx
sivamathi12
 
fundamentals of database power point 1-4.pptx
fundamentals of database power point 1-4.pptxfundamentals of database power point 1-4.pptx
fundamentals of database power point 1-4.pptx
nafirom3
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management Systems
Dr. SURBHI SAROHA
 
PHP/MySQL First Session Material
PHP/MySQL First Session MaterialPHP/MySQL First Session Material
PHP/MySQL First Session Material
National IT Professionals Association of Afghanistan
 
DBMS
DBMS DBMS
DBMS
addisonabner
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
NILESH UCHCHASARE
 
Data concepts
Data conceptsData concepts
Data concepts
Sachidananda M H
 
Data resource management and DSS
Data resource management and DSSData resource management and DSS
Data resource management and DSS
RajThakuri
 
Lec20.pptx introduction to data bases and information systems
Lec20.pptx introduction to data bases and information systemsLec20.pptx introduction to data bases and information systems
Lec20.pptx introduction to data bases and information systems
samiullahamjad06
 
DBMS introduction
DBMS introductionDBMS introduction
DBMS introduction
BHARATH KUMAR
 
Lecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.pptLecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.ppt
DeeptimaanKrishnaJad
 
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMDatabase Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
moronfolabukunmi
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
Mukund Trivedi
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbms
Rupali Rana
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptx
AshmitKashyap1
 
CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)
Dilawar Khan
 
CST204 DBMS Module-1
CST204 DBMS Module-1CST204 DBMS Module-1
CST204 DBMS Module-1
Jyothis Menon
 
Database Management system intro.pptx
Database  Management  system  intro.pptxDatabase  Management  system  intro.pptx
Database Management system intro.pptx
sivamathi12
 
fundamentals of database power point 1-4.pptx
fundamentals of database power point 1-4.pptxfundamentals of database power point 1-4.pptx
fundamentals of database power point 1-4.pptx
nafirom3
 
Data resource management and DSS
Data resource management and DSSData resource management and DSS
Data resource management and DSS
RajThakuri
 
Lec20.pptx introduction to data bases and information systems
Lec20.pptx introduction to data bases and information systemsLec20.pptx introduction to data bases and information systems
Lec20.pptx introduction to data bases and information systems
samiullahamjad06
 

Recently uploaded (20)

Webinar On Steel Melting IIF of steel for rdso
Webinar  On Steel  Melting IIF of steel for rdsoWebinar  On Steel  Melting IIF of steel for rdso
Webinar On Steel Melting IIF of steel for rdso
KapilParyani3
 
fy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
fy06_46f6-ht30_22_oil_gas_industry_guidelines.pptfy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
fy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
sukarnoamin
 
Electrical and Electronics Engineering: An International Journal (ELELIJ)
Electrical and Electronics Engineering: An International Journal (ELELIJ)Electrical and Electronics Engineering: An International Journal (ELELIJ)
Electrical and Electronics Engineering: An International Journal (ELELIJ)
elelijjournal653
 
Air Filter Flat Sheet Media-Catalouge-Final.pdf
Air Filter Flat Sheet Media-Catalouge-Final.pdfAir Filter Flat Sheet Media-Catalouge-Final.pdf
Air Filter Flat Sheet Media-Catalouge-Final.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
ISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdf
ISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdfISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdf
ISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
Software Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha TasnuvaSoftware Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha Tasnuva
tanishatasnuva76
 
Influence line diagram for truss in a robust
Influence line diagram for truss in a robustInfluence line diagram for truss in a robust
Influence line diagram for truss in a robust
ParthaSengupta26
 
ENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdfENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdf
TAMILISAI R
 
ISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdf
ISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdfISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdf
ISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
Software Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance OptimizationSoftware Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance Optimization
kiwoong (daniel) kim
 
ISO 4548-9 Oil Filter Anti Drain Catalogue.pdf
ISO 4548-9 Oil Filter Anti Drain Catalogue.pdfISO 4548-9 Oil Filter Anti Drain Catalogue.pdf
ISO 4548-9 Oil Filter Anti Drain Catalogue.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
ManiMaran230751
 
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
하이플럭스 / HIFLUX Co., Ltd.
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning ModelEnhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
UNIT-1-PPT-Introduction about Power System Operation and Control
UNIT-1-PPT-Introduction about Power System Operation and ControlUNIT-1-PPT-Introduction about Power System Operation and Control
UNIT-1-PPT-Introduction about Power System Operation and Control
Sridhar191373
 
Digital Crime – Substantive Criminal Law – General Conditions – Offenses – In...
Digital Crime – Substantive Criminal Law – General Conditions – Offenses – In...Digital Crime – Substantive Criminal Law – General Conditions – Offenses – In...
Digital Crime – Substantive Criminal Law – General Conditions – Offenses – In...
ManiMaran230751
 
Introduction of Structural Audit and Health Montoring.pptx
Introduction of Structural Audit and Health Montoring.pptxIntroduction of Structural Audit and Health Montoring.pptx
Introduction of Structural Audit and Health Montoring.pptx
gunjalsachin
 
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdfSoftware_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
VanshMunjal7
 
Highway Engineering - Pavement materials
Highway Engineering - Pavement materialsHighway Engineering - Pavement materials
Highway Engineering - Pavement materials
AmrutaBhosale9
 
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDINGMODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
Dr. BASWESHWAR JIRWANKAR
 
Webinar On Steel Melting IIF of steel for rdso
Webinar  On Steel  Melting IIF of steel for rdsoWebinar  On Steel  Melting IIF of steel for rdso
Webinar On Steel Melting IIF of steel for rdso
KapilParyani3
 
fy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
fy06_46f6-ht30_22_oil_gas_industry_guidelines.pptfy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
fy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
sukarnoamin
 
Electrical and Electronics Engineering: An International Journal (ELELIJ)
Electrical and Electronics Engineering: An International Journal (ELELIJ)Electrical and Electronics Engineering: An International Journal (ELELIJ)
Electrical and Electronics Engineering: An International Journal (ELELIJ)
elelijjournal653
 
Software Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha TasnuvaSoftware Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha Tasnuva
tanishatasnuva76
 
Influence line diagram for truss in a robust
Influence line diagram for truss in a robustInfluence line diagram for truss in a robust
Influence line diagram for truss in a robust
ParthaSengupta26
 
ENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdfENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdf
TAMILISAI R
 
Software Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance OptimizationSoftware Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance Optimization
kiwoong (daniel) kim
 
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
ManiMaran230751
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning ModelEnhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
UNIT-1-PPT-Introduction about Power System Operation and Control
UNIT-1-PPT-Introduction about Power System Operation and ControlUNIT-1-PPT-Introduction about Power System Operation and Control
UNIT-1-PPT-Introduction about Power System Operation and Control
Sridhar191373
 
Digital Crime – Substantive Criminal Law – General Conditions – Offenses – In...
Digital Crime – Substantive Criminal Law – General Conditions – Offenses – In...Digital Crime – Substantive Criminal Law – General Conditions – Offenses – In...
Digital Crime – Substantive Criminal Law – General Conditions – Offenses – In...
ManiMaran230751
 
Introduction of Structural Audit and Health Montoring.pptx
Introduction of Structural Audit and Health Montoring.pptxIntroduction of Structural Audit and Health Montoring.pptx
Introduction of Structural Audit and Health Montoring.pptx
gunjalsachin
 
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdfSoftware_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
VanshMunjal7
 
Highway Engineering - Pavement materials
Highway Engineering - Pavement materialsHighway Engineering - Pavement materials
Highway Engineering - Pavement materials
AmrutaBhosale9
 
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDINGMODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
Dr. BASWESHWAR JIRWANKAR
 
Ad

What is dbms architecture, components of dbms architecture and types of dbms architecture

  • 1. What is DBMS Architecture • Database System Architecture refers to the design and structure of a database system, which includes the components and processes that work together to store, manage, and retrieve data efficiently. • It provides a framework for organizing and interacting with data, ensuring data integrity, security, and performance.
  • 2. Three-Level Architecture (ANSI-SPARC Architecture) of DBMS It provides a clear separation between the physical storage of data, the logical structure of the database, and how users interact with the data. a. External Level (View Level) Users interact with the database and Queries are submitted to the database system. b. Conceptual Level (Logical Level) The DBMS translates user queries into a logical structure using the conceptual schema. Ensures data integrity and enforces constraints. c. Internal Level (Physical Level) The DBMS maps the logical structure to the physical storage using the internal schema. Retrieves or modifies data on disk.
  • 3. 1. External Level (View Level) This is the highest level of abstraction and represent how users or applications view the data. Different users may have different views of the same database, depending on their specific needs. Key Features: • Provides a user-specific view of the database. • Hides irrelevant or sensitive data from users. • Multiple external views can exist for a single database. • Enhances security by restricting access to sensitive information. Components: • External Schemas (Views): Define how data is presented to users • User Interfaces: Forms, reports, or applications that users interact with to access the database.
  • 4. 2. Conceptual Level (Logical Level) This level describes the logical structure of the entire database for all users. It acts as an intermediary between the external and internal levels. Key Features: • Represents the global view of the database. • Defines the overall structure, including entities, relationships, constraints, and data types. • Independent of specific user views or physical storage details. Components: • Conceptual Schema: Describes the logical structure of the database, which includes tables, attributes, relationships, and constraints (e.g., primary keys, foreign keys). • Metadata: Information about the database structure, such as table names, column names, and data types.
  • 5. 3. Internal Level (Physical Level) This level deals with the physical storage of data on the hardware. It describes how data is stored in files, indexes, and storage structures. Key Features: • Focuses on the physical implementation of the database. • Includes details like data compression, encryption, and disk allocation. • Optimizes storage efficiency and access speed. Components: • Internal Schema: Describes the physical storage structure of the database. Includes file organization, indexing methods, and storage allocation. • Storage Structures: Data files, index files, and log files. • Access Methods: Techniques for accessing data, such as B-trees, hashing, and sequential access.
  • 6. Advantages of the Three-Level Architecture 1. Data Independence: Changes at one level do not affect the other, making the system more flexible and maintainable. Example: Adding a new column to a table does not require changes to user applications. 2. Security: Users only see the data they are authorized to access. 3. Efficiency: Physical storage can be optimized without affecting the logical structure or user views. 4. Scalability: The database can grow and evolve without disrupting existing appilcations.
  • 7. Components of Database System Architecture Interaction between Components: • Users submit queries or requests to the database system. • The Query Processor interprets and optimizes the queries, generating an execution plan. • The Storage Manager retrieves or modifies the data by interacting with Disk Storage. • The results are returned to the Users through the Query Processor.
  • 8. 1. Users Users are the individuals or applications that interact with the database system. They can be categorised into different types based on their roles and level of interaction with the database: A. End users: • These are the individuals who interact with the database through applications or interfaces. • Examples: Students accessing their grades from university portal. B. Application programmers: • These are developers who write applications that interact with the database. • They use programming languages (e.g., Java, Python) and database APIs (e.g., JDBC, ODBC) to create software that accesses and manipulates data. C. Database administrators: • These are responsible for managing and maintaining the database system. • Tasks including creating and managing user accounts ensuring data security optimising performance and performing backups and recovery.
  • 9. 2. Query Processor The Query Processor is a critical component of the DBMS that handles user queries and ensures they are executed efficiently. It translates high level queries into low level instructions that the database system can understand and execute. Components of the Query Processor: • DDL Interpreter: • Processes Data Definition Language(DDL) statements, such as CREATE, ALTER, and DROP. • Updates the database schema and metadata. • DML compiler: • Processes Data Manipulation Language statements, such as SELECT, INSERT, UPDATE, and DELETE. • Converts these statements into intermediate form for execution. • Query optimizer: • Determines the most efficient way to execute a query. • Considers factors like indexes, join order, and access paths to minimise execution time and resource usage. • Execution engine: • Exhibits the low level instructions generated by DML Compiler and Query Optimizer. • Interacts with Storage Manager to retrieve modify data.
  • 10. 3. Storage Manager The Storage Manager is responsible for managing the storage, retrieval, and organization of data on disk. It ensures that data is stored efficiently and can be accessed quickly when needed. Components of the Storage Manager: • File Manager: • Manages the allocation of disk space and organizes data into files. • Handles file creation, deletion, and access. • Buffer Manager: • Manages the transfer of data between disk and main memory (RAM). • Uses a buffer pool to cache frequently accessed data, reducing disk I/O and improving performance. • Index Manager: • Manages indexes, which are data structures (e.g., B-trees, hash tables) that speed up data retrieval. • Ensures indexes are updated when data is modified. • Transaction Manager: • Ensures the ACID properties (Atomicity, Consistency, Isolation, Durability) of transactions. • Manages concurrency control and recovery.
  • 11. 4. Disk Storage Disk Storage refers to the physical storage devices (e.g., HDDs, SSDs) where the database data is permanently stored. It is the lowest level of the database architecture and is managed by the Storage Manager. It ensures that data is retained even after system is powered off. Parts of Disk Storage: • Data Files: • Store the actual data in the form of tables, records, and fields. • Organized into blocks or pages for efficient access. • Index Files: • Store indexes that provide fast access to data. • Examples: B-trees, hash indexes. • Log Files: • Store transaction logs for recovery purposes. • Record all changes made to the database to ensure durability and support rollback/rollforward operations. • Metadata Files: • Store information about the database schema, such as table structures, constraints, and user permissions.
  • 12. Types of Database System Architectures a. Centralized Database Architecture • A single server hosts the database, and all users access it from the same location. • Suitable for small organizations with limited data. b. Client-Server Architecture • The database is hosted on a server, and clients (users or applications) access it over a network. • Two-Tier Architecture: Clients directly interact with the database server. • Three-Tier Architecture: Includes an intermediate application server between clients and the database server. c. Distributed Database Architecture • Data is stored across multiple servers or locations. • Improves scalability and fault tolerance. • Examples: Google Spanner, Apache Cassandra.
  • 13. Conclusion Database system architectures are the backbone of modern data management systems. They provide the structure and tools needed to store, retrieve, and manage data efficiently while ensuring scalability, security, and reliability. By understanding the different types of architectures and their components, organizations can design systems that meet their specific needs and adapt to future challenges. Whether it's a centralized system for small applications or a distributed cloud-based system for large-scale enterprises, the right architecture ensures that data remains a valuable and accessible resource.
  • 14. Department of Computer Science and Engineering Thank you