VOOZH about

URL: https://www.analyticsvidhya.com/blog/2022/08/understanding-the-need-for-dbms/

⇱ Understanding the need for DBMS - Analytics Vidhya


India's Most Futuristic AI Conference Is Back – Bigger, Sharper, Bolder

  • d
  • :
  • h
  • :
  • m
  • :
  • s

Understanding the need for DBMS

NEHAAL Last Updated : 20 Aug, 2022
5 min read

This article was published as a part of the Data Science Blogathon.

Introduction

A Database is a collection of inter-related data, and a Database Management System is a set of programs that helps users create and maintain this data. DBMS is a computer-based data record-keeping system. DBMS provides enhanced security for storing and retrieving data and has various techniques to reduce Redundancy and Duplication of Data. But, ever wondered why DBMS? Didn’t we have alternate solutions for storing data? What makes Database a go-to option for every developer to store their data?

In this article, We will have a walkthrough of the traditional File systems, their failures, and how DBMS helps overcome them. We will also learn about Data Abstraction, schemas, instances, and different DBMS types.

File Systems

A file system is a software application that keeps files on a computer device organized and updated. It controls how data is stored and retrieved in blocks of files. Traditionally, database applications were built directly with the help of file systems. Data is stored in a file, which is located in the directory. A directory can have many other files or be a part of another directory. File System follows a hierarchical approach to storing data.

πŸ‘ Distributed File System Icon - Free PNG & SVG 1630988 - Noun Project

The file system stores the data about the data, i.e., the Metadata. Metadata includes the name of the file, length of the file, location of the file, etc. The file system allocates memory for the files in variable block sizes. Sometimes, the file size is too large compared to the required space. This gives rise to an unused block of space called the slack space. The file system is committed to maintaining the changes to the data/files by regularly updating the metadata and the file directories. The file system provides multiple ways to handle unauthorized data access. It includes passwords stored in the metadata or permissions in the form of permission bits and access control lists.

Drawbacks of File Systems

1. Data Redundancy: duplication of data in different files.

2. Data access difficulty: A new program every time to carry out new tasks.

3. Data Isolation: Multiple files and file format makes data isolation difficult.

4. Integrity problem: Managing and updating new constraints is difficult.

5. Atomicity: Failure in the middle of an operation may lead to an inconsistent state with partial updates only.

6. Security problems: Difficult to restrict user access to all the data.

Solution- DataBase Management System

A database is a collection of data used to efficiently and optimally search, insert, and delete data. A database management system is a software application to manage the database. DBMS examples include Oracle SQL, MySQL, and MongoDB, which provide a platform to create, modify and delete databases and help store and retrieve data. The main purpose of introducing DBMS was to overcome the failures of the File systems.

Data Abstraction:

Data abstraction is hiding the user from unnecessary or irrelevant data. It offers a distinct perspective and aids in achieving data independence, which enhances data security.

The 3 levels of Abstraction are:

1. Physical Level(lowest level): It describes how a record is stored

2. Logical Level(conceptual level): It describes the data and the relationship between them.

3. View Level(highest level): Application programmers hide datatype details as well as other important data from some users for security purposes.

πŸ‘ Data Abstraction and Data Independence - GeeksforGeeks

Source: GeeksForGeeks

Schema and Instances:

Schema is the logical structure of the database, while Instance is the actual content of the database at a particular point in time.

Types of DBMS

  • Centralized Database: A database located, kept, and maintained in a single location is referred to as a centralized database (often abbreviated CDB). Most frequently, this location is a mainframe computer, server CPU, or other central computer or database system.
  • Relational Database: To organize data in tables, rows, and columns, we use a relational database (RDB). By connecting tables, an RDB may create links, or relationships, between information, making it simple to comprehend and acquire insights into how different data points are related. e.g., MySQL, Oracle SQL
  • Distributed Database: A distributed database comprises two or more files spread across various places, whether the same network connects them. The database is split up into different physical places for storage and processing, and numerous database nodes are involved.
  • NoSQL: Unlike relational databases, NoSQL databases store data in an unstructured format. As a result, we categorize them as β€œnon-SQL” or β€œNon-Relational Database” and divide them into different flexible data model categories. Pure document databases, key-value stores, wide-column databases, and graph databases are some examples of NoSQL database types. For instance,  MongoDB is a document database while Neo4J is a graph-based NoSQL database.

Features of DBMS

πŸ‘ DBMS Features | Definition | Benefits | Characteristics

Source: educba

  • Data Integrity: Data integrity is all about the accuracy and consistency of the data in the database. Given that DBMS contains numerous databases, it is crucial. These databases all contain information that is accessible to several individuals. As a result, it is crucial to guarantee that the data is accurate and consistent across all databases for all users.
  • Data Security: A database’s key notion is data security. Under no circumstances should unauthorized users be permitted access to the database, which violates the integrity constraints. A DBMS gives businesses a better foundation for data privacy, enabling them to offer increased data security.
  • Reduced Data Inconsistencies: When distinct versions of the same data appear in different locations, data inconsistency exists between files. The database guarantees data consistency and eliminates data duplication. Additionally, there is no data inconsistency because all users promptly reflect database updates.
  • Faster Data Access: The DBMS assists users in providing quick responses to queries, resulting in accurate and quick data access. Validity, precision, and the time required to read the data are all ultimately improved by higher quality. Although it offers a framework to simplify improving data quality, it does not ensure the quality of the data.
  • Simplicity: DBMS provides a clear, straightforward, logical view that helps us understand data better. Many activities, including deletion, insertion, and creation, are simple while using DBMS.
  • Recovery and Backup: DBMS handles recovery and backup automatically. In addition, it repairs databases after crashes or system failures to prevent them from returning to their original state.

Conclusion

Traditionally, File systems were used for storing and maintaining data in an environment. The drawbacks of the File systems made it difficult for developers and users to continue with file systems. Hence, an efficient storing and retrieving technique – Database Management System was introduced to counter the drawbacks of the File systems. DBMS provides improvised data integrity, security, faster access, and the recovery and backup feature. It also reduces data inconsistencies and redundancies through various techniques. Hence, DBMS was replaced with the traditional file systems.

In this article,

  • We learned about the traditional data storing technique, i.e., the file system
  • We saw its drawbacks
  • We learned about DBMS and types of DBMS
  • We finally saw the features of DBMS, which helped us overcome the drawbacks of File systems.

Thank you for reading the article. If you like my article, feel free to connect with me on Linkedin.

The media shown in this article is not owned by Analytics Vidhya and is used at the Author’s discretion.

πŸŽ“ I'm a Final-year Undergrad pursuing my BTech in Computer Science from MIT Academy Of Engineering, Pune. As a curious learner, I am also working on my honors in Data Science to expand my expertise in this domain.

Login to continue reading and enjoy expert-curated content.

Free Courses

Generative AI - A Way of Life

Explore Generative AI for beginners: create text and images, use top AI tools, learn practical skills, and ethics.

Getting Started with Large Language Models

Master Large Language Models (LLMs) with this course, offering clear guidance in NLP and model training made simple.

Building LLM Applications using Prompt Engineering

This free course guides you on building LLM apps, mastering prompt engineering, and developing chatbots with enterprise data.

Improving Real World RAG Systems: Key Challenges & Practical Solutions

Explore practical solutions, advanced retrieval strategies, and agentic RAG systems to improve context, relevance, and accuracy in AI-driven applications.

Microsoft Excel: Formulas & Functions

Master MS Excel for data analysis with key formulas, functions, and LookUp tools in this comprehensive course.

Responses From Readers

Flagship Programs

GenAI Pinnacle Program| GenAI Pinnacle Plus Program| AI/ML BlackBelt Program| Agentic AI Pioneer Program

Free Courses

Generative AI| DeepSeek| OpenAI Agent SDK| LLM Applications using Prompt Engineering| DeepSeek from Scratch| Stability.AI| SSM & MAMBA| RAG Systems using LlamaIndex| Building LLMs for Code| Python| Microsoft Excel| Machine Learning| Deep Learning| Mastering Multimodal RAG| Introduction to Transformer Model| Bagging & Boosting| Loan Prediction| Time Series Forecasting| Tableau| Business Analytics| Vibe Coding in Windsurf| Model Deployment using FastAPI| Building Data Analyst AI Agent| Getting started with OpenAI o3-mini| Introduction to Transformers and Attention Mechanisms

Popular Categories

AI Agents| Generative AI| Prompt Engineering| Generative AI Application| News| Technical Guides| AI Tools| Interview Preparation| Research Papers| Success Stories| Quiz| Use Cases| Listicles

Generative AI Tools and Techniques

GANs| VAEs| Transformers| StyleGAN| Pix2Pix| Autoencoders| GPT| BERT| Word2Vec| LSTM| Attention Mechanisms| Diffusion Models| LLMs| SLMs| Encoder Decoder Models| Prompt Engineering| LangChain| LlamaIndex| RAG| Fine-tuning| LangChain AI Agent| Multimodal Models| RNNs| DCGAN| ProGAN| Text-to-Image Models| DDPM| Document Question Answering| Imagen| T5 (Text-to-Text Transfer Transformer)| Seq2seq Models| WaveNet| Attention Is All You Need (Transformer Architecture) | WindSurf| Cursor

Popular GenAI Models

Llama 4| Llama 3.1| GPT 4.5| GPT 4.1| GPT 4o| o3-mini| Sora| DeepSeek R1| DeepSeek V3| Janus Pro| Veo 2| Gemini 2.5 Pro| Gemini 2.0| Gemma 3| Claude Sonnet 3.7| Claude 3.5 Sonnet| Phi 4| Phi 3.5| Mistral Small 3.1| Mistral NeMo| Mistral-7b| Bedrock| Vertex AI| Qwen QwQ 32B| Qwen 2| Qwen 2.5 VL| Qwen Chat| Grok 3

AI Development Frameworks

n8n| LangChain| Agent SDK| A2A by Google| SmolAgents| LangGraph| CrewAI| Agno| LangFlow| AutoGen| LlamaIndex| Swarm| AutoGPT

Data Science Tools and Techniques

Python| R| SQL| Jupyter Notebooks| TensorFlow| Scikit-learn| PyTorch| Tableau| Apache Spark| Matplotlib| Seaborn| Pandas| Hadoop| Docker| Git| Keras| Apache Kafka| AWS| NLP| Random Forest| Computer Vision| Data Visualization| Data Exploration| Big Data| Common Machine Learning Algorithms| Machine Learning| Google Data Science Agent
πŸ‘ Av Logo White

Continue your learning for FREE

Forgot your password?
πŸ‘ Av Logo White

Enter OTP sent to

Edit

Wrong OTP.

Enter the OTP

Resend OTP

Resend OTP in 45s

πŸ‘ Popup Banner
πŸ‘ AI Popup Banner