Hello Everyone, Welcome to Rajasthan Polytechnic Blogs.
Subject - Introduction to DBMS CS 4002(Same as CI/IT 4002)
Branch - Computer Science Engineering
Semester - 4th Semester
UNIT 1: INTRODUCTION TO DBMS
This chapter gives an introduction to Database Management Systems (DBMS) and covers the following topics:
1.1. Introduction to DBMS 🗃️
A Database Management System (DBMS) is a software that manages databases. It provides an interface between users and the database. In simpler terms, a DBMS helps to store, modify, and extract information from a database efficiently.
Key Points:
- A database stores data in a structured way.
- A DBMS provides security, manages user access, and ensures data integrity.
- Examples of DBMS: MySQL, Oracle, PostgreSQL, SQL Server, MongoDB.
Why DBMS?
- It makes data easily accessible.
- Provides a way to store large amounts of data.
- Handles complex queries, ensuring fast and accurate results.
1.2. Components of DBMS 🧩
A DBMS consists of several key components that work together to manage databases:
- Database Engine 🏭: This is the core service that handles data storage, retrieval, and manipulation.
- Database Schema 🗂️: Defines the structure of the data (tables, columns, etc.). It is a blueprint of the database.
- Query Processor 🖥️: Interprets and executes the queries submitted by users.
- Transaction Management 🔄: Ensures that operations are executed correctly, maintaining data consistency.
- Storage Manager 🏢: Manages the physical storage of data on disk and ensures it is retrieved efficiently.
Diagram:
1.3. Advantages of DBMS 🌟
A DBMS offers several advantages over traditional file-based systems:
- Data Redundancy Control 🔄: It reduces data duplication. A single version of data is stored and accessed.
- Data Integrity ✅: Ensures that data is accurate and consistent.
- Data Security 🔒: Only authorized users can access the data.
- Backup and Recovery 🛡️: If a system crashes, DBMS can restore the data from a backup.
- Multiple User Access 👥: Multiple users can access and modify data simultaneously.
- Data Independence 📂: The structure of the database can be changed without affecting applications.
1.4. Database System vs File System 💾
The Database System and File System are both used to store data, but they differ significantly:
Feature | Database System (DBMS) | File System |
---|---|---|
Data Management | Structured, uses tables, indexes, etc. | Flat, no complex structure |
Data Redundancy | Minimizes redundancy, keeps data consistent | High redundancy, data is duplicated |
Concurrency | Supports multiple users and transactions | Limited support for multiple users |
Security | High, with encryption and access controls | Basic, lacks advanced security |
Backup/Recovery | Automated, easy to recover data | Requires manual intervention |
Scalability | High, can handle large amounts of data | Limited scalability for large data |
Example: Think of a File System as a file cabinet where files are stored in folders, and a Database System as an organized library where books are categorized with specific rules for easy retrieval.
1.5. Database System Concepts and Architecture 🏛️
A database system is structured with 3 Levels of Architecture:
- Internal Level (Physical Level) 🔒: How data is stored physically on the disk.
- Conceptual Level (Logical Level) 🧠: What data is stored and its relationships.
- External Level (View Level) 👀: How users interact with the data (what data is visible to them).
Diagram:
1.6. Application Architecture of DBMS 🖥️🏗️
In a DBMS, there are different layers for data processing:
- Client-Server Architecture: A client requests data from a server. The server handles the database operations and returns results.
- Three-Tier Architecture: Divided into:
- Presentation Layer: User interface (client).
- Application Layer: Business logic and processing.
- Data Layer: The DBMS where the actual data is stored.
Diagram:
1.7. Overall Database Structure 🏗️
A Database consists of multiple components like tables, rows, columns, and keys. The main components are:
- Table 📝: Data is stored in tables, which are similar to spreadsheets (rows and columns).
- Row (Tuple) ➡️: A single record in the table.
- Column (Attribute) 📊: A data field in the table.
- Primary Key 🔑: A unique identifier for each row in the table.
- Foreign Key 🔗: A field in one table that is linked to the primary key in another table.
Diagram:
Conclusion 🌐
- DBMS is crucial for managing large amounts of data.
- It provides efficient ways of storing, retrieving, and securing data.
- The architecture of DBMS ensures that users can interact with data in an organized manner, reducing errors and improving productivity.
With a DBMS, you can ensure data integrity, security, and scalability while supporting multiple users and handling complex queries.
0 Comments