BCA / B.Tech 13 min read

Data Dictionary in Hindi

RK

लेखक Ratan Kumawat · संस्थापक, NotesMedia

प्रकाशित:

त्वरित सारांश और मुख्य बिंदु

  • • विषय फोकस: DBMS Notes in Hindi | डीबीएमएस नोट्स (BCA / B.Tech Syllabus)
  • • मुख्य विषय: Data Dictionary in Hindi - General Topics
  • • अवलोकन: Quick Answer: DBMS में Data Dictionary एक centralized repository (संग्रह) है जो database के metadata यानी "data about data" को store करती है। इसमें dat...
  • • मुख्य अवधारणाएं: Data dictionary, Metadata tables views Hindi, Dictionary management,
Quick Answer: DBMS में Data Dictionary एक centralized repository (संग्रह) है जो database के metadata यानी "data about data" को store करती है। इसमें database की tables, columns, data types, constraints, keys, views और user permissions की पूरी जानकारी सुरक्षित रहती है। इसे system catalog भी कहते हैं, और इसके दो मुख्य प्रकार होते हैं: Active Data Dictionary (जो DBMS से अपने आप update होती है) और Passive Data Dictionary (जिसे manually maintain किया जाता है)।

Data Dictionary in DBMS in Hindi क्या है?

जब आप किसी database में काम करते हैं, तो database में दो तरह की चीजें store होती हैं: पहला actual data (जैसे student का नाम, roll number, marks), और दूसरा उस data की बनावट यानी structure की जानकारी। Data की बनावट, नियम और स्वरूप की जानकारी को metadata कहा जाता है। Data dictionary इसी metadata को व्यवस्थित तरीके से store करने वाली जगह है।

Advertisement

सरल शब्दों में कहें तो जैसे एक सामान्य dictionary में शब्दों के अर्थ और उनके rules लिखे होते हैं, वैसे ही database की data dictionary में database के हर component का पूरा विवरण दर्ज होता है। इसे DBMS का दिमाग या blueprint भी कह सकते हैं। DBMS क्या है, यह समझने के बाद data dictionary को समझना बहुत आसान हो जाता है, क्योंकि DBMS का कोई भी query engine data dictionary पढ़े बिना काम नहीं कर सकता।

Data dictionary को database जगत में कई नामों से जाना जाता है:

  • System Catalog: क्योंकि यह पूरे database system की catalog सूची रखती है।
  • Metadata Repository: क्योंकि इसमें सिर्फ metadata store होता है।
  • Data Directory: कुछ systems में इसे data directory भी बोला जाता है।

जब भी कोई user कोई SQL query लिखता है (जैसे SELECT * FROM Student;), तो DBMS सबसे पहले data dictionary में जाकर check करता है कि क्या Student नाम की table सच में exist करती है? क्या user के पास उस table को देखने की permission है? अगर सब सही होता है, तभी query execute होती है। Database के structure को detail में समझने के लिए पढ़ें: Database Schema in Hindi.

+-------------------------------------------------------------+
|                          USER / DBA                         |
+-------------------------------------------------------------+
                               |
                               | (SQL Query / DDL Command)
                               v
+-------------------------------------------------------------+
|                         DBMS Engine                         |
|   +-------------------+             +-------------------+   |
|   |  Query Processor  | <---------> |  DATA DICTIONARY  |   |
|   +-------------------+  (Metadata) | (System Catalog)  |   |
|                                     +-------------------+   |
+-------------------------------------------------------------+
                               |
                               | (Access Data Files)
                               v
+-------------------------------------------------------------+
|                     ACTUAL DATABASE                         |
|             [Tables, Records, Files, Indexes]               |
+-------------------------------------------------------------+

Main Purpose of Data Dictionary (मुख्य उद्देश्य)

Data dictionary का मुख्य purpose database को सुरक्षित, व्यवस्थित और consistent बनाए रखना है। बिना data dictionary के एक multi-user database manage करना असंभव है। इसके प्रमुख उद्देश्य नीचे दिए गए हैं:

  • Centralized Metadata Management: Database के सभी components का विवरण एक ही जगह सुरक्षित रहता है, जिससे DBA (Database Administrator) को पूरे system पर control मिलता है।
  • Data Integrity सुनिश्चित करना: यह check करती है कि table में डाला जाने वाला record तय किए गए rules और limits के अनुसार हो। Data Integrity in Hindi के नियमों को enforce करने का काम data dictionary की information से ही होता है।
  • Security और Access Control: कौन सा user किस table या view को read कर सकता है और किसे write करने का अधिकार है, यह verify करना data dictionary का काम है।
  • Query Optimization में मदद: DBMS का query optimizer data dictionary से table size, index availability और data distribution पढ़कर सबसे तेज़ execution plan चुनता है।
  • Redundancy और Inconsistency रोकना: एक ही attribute को अलग-अलग tables में अलग data type मिलने पर confusion होता है; data dictionary standards बनाए रखने में मदद करती है।

Data Dictionary के Components (इसमें क्या Store होता है?)

Data dictionary में सिर्फ actual values नहीं होतीं, बल्कि structure का पूरा record होता है। इसमें नीचे दी गई महत्वपूर्ण जानकारियां store की जाती हैं:

  • Tables की जानकारी: हर table का नाम, owner का नाम, create होने की तारीख और storage location।
  • Columns / Attributes की details: Column का नाम, उसका data type (जैसे INT, VARCHAR, DATE), size और default values।
  • Keys का विवरण: Table की Primary Key कौन सी है, Foreign Key किस दूसरी table से जुड़ी है, और Candidate Keys कौन सी हैं।
  • Constraints की जानकारी: Table पर लगे सभी rules जैसे NOT NULL, UNIQUE, CHECK constraint। इसके बारे में detail में पढ़ें: Database Constraints in Hindi.
  • Indexes का विवरण: कौन से column पर index बना है, index का type (B-Tree, Hash) क्या है।
  • Views की परिभाषा: View का नाम, उसकी SQL query definition और base tables।
  • Users और Privileges: Database users की list, उनके passwords (encrypted रूप में), roles और access permissions (SELECT, INSERT, UPDATE, DELETE)।
  • Physical Storage Details: Table disk पर किस tablespace में store है और उसने कितने blocks घेर रखे हैं।

Worked Example: Data Dictionary का Real Sample Table

मान लीजिए कॉलेज के database में एक Student table बनाई गई है। इस Student table के लिए Data Dictionary के अंदर metadata किस प्रकार organize होगा, इसे नीचे दिए गए practical sample से समझिए:

Table Metadata (Table-Level Entry)

Property Value Description
Table_Name Student_Master Table का unique technical नाम
Schema_Owner Admin_College इस table को create करने वाला user
Created_Date 2026-07-15 Table creation की तारीख
Primary_Key Student_ID इस table की main identifier key
Row_Count_Estimate 1200 Table में कुल अनुमानित records

Column / Field Metadata (Detailed Dictionary Entry)

Student_Master table के सभी columns की data dictionary entry इस प्रकार दिखाई देती है:

Column_Name Data_Type Size Null Allowed? Key / Constraint Description
Student_ID INT 4 bytes NO PRIMARY KEY छात्र का unique identification number
First_Name VARCHAR 50 chars NO NOT NULL छात्र का पहला नाम
Email_ID VARCHAR 100 chars YES UNIQUE Official email address
Birth_Date DATE 8 bytes NO CHECK (Birth_Date < '2010-01-01') छात्र की जन्म तिथि
Course_ID INT 4 bytes NO FOREIGN KEY (Course_Master) Course table से जुड़ा reference
Status CHAR 1 char NO DEFAULT 'A' Active ('A') या Inactive ('I')

जब भी कोई query run होती है, DBMS engine इसी table को पढ़कर तय करता है कि डाला गया data सही format में है या नहीं। उदाहरण के लिए, अगर कोई user Email_ID में duplicate value डालेगा, तो DBMS data dictionary का UNIQUE rule देखकर तुरंत error फेंक देगा।

Types of Data Dictionary in DBMS in Hindi

DBMS के अंदर integration और update mechanism के आधार पर data dictionary दो प्रकार की होती है:

1. Active Data Dictionary

Active Data Dictionary वह होती है जो DBMS software के साथ पूरी तरह जुड़ी होती है और अपने आप (automatically) update होती है।

  • जब भी कोई Developer या DBA DDL command (जैसे CREATE TABLE, ALTER TABLE, या DROP TABLE) चलाता है, तो DBMS खुद-ब-खुद data dictionary को उसी पल update कर देता है।
  • इसमें manual काम बिल्कुल नहीं होता।
  • DBMS का query processor हर SQL query को execute करने से पहले active data dictionary को सीधे consult करता है।
  • Oracle, MySQL, Microsoft SQL Server और PostgreSQL जैसे सभी modern RDBMS active data dictionary का इस्तेमाल करते हैं।
  • इसे data-driven dictionary भी कहा जाता है।

2. Passive Data Dictionary

Passive Data Dictionary वह होती है जो DBMS engine से सीधे तौर पर जुड़ी नहीं होती और अपने आप update नहीं होती।

  • इसे database designer, systems analyst या DBA manually update करता है।
  • यह अक्सर किसी external document, Excel spreadsheet, text file या अलग documentation tool के रूप में maintain की जाती है।
  • अगर database में table का structure बदल दिया जाए और designer passive data dictionary में लिखना भूल जाए, तो dictionary और actual database में अंतर आ जाता है। इसे out of sync होना कहते हैं।
  • इसका इस्तेमाल मुख्य रूप से system planning, initial database design phase और project documentation के लिए होता है।

Active vs Passive Data Dictionary (Comparison Table)

Comparison Point Active Data Dictionary Passive Data Dictionary
Update Mechanism DDL commands चलने पर automatically update होती है DBA या developer manually update करता है
DBMS Integration DBMS software का internal और अभिन्न हिस्सा है DBMS से अलग standalone file या documentation है
Data Consistency हमेशा 100% accurate और database के साथ synchronized रहती है Human error के कारण out of sync होने का खतरा रहता है
Query Verification DBMS हर query को run करने से पहले इसे verify करता है DBMS runtime पर इसे सीधे check नहीं करता
Maintenance Effort शून्य manual effort, system खुद संभालता है लगातार manual entry और documentation effort चाहिए
Real-World Example Oracle का USER_TABLES, MySQL का INFORMATION_SCHEMA Excel sheet, Word document या design software file
Advertisement

Data Dictionary in Software Engineering in Hindi

अक्सर विश्वविद्यालय की परीक्षाओं में पूछा जाता है कि Software Engineering में Data Dictionary क्या है? DBMS और Software Engineering दोनों में इसका concept मिलता-जुलता है, लेकिन Software Engineering में इसका scope data flow तक फैला होता है।

Software Engineering में data dictionary Structured Analysis phase का एक महत्वपूर्ण tool है। जब Systems Analyst किसी software का Data Flow Diagram (DFD) बनाता है, तो DFD सिर्फ यह दिखाता है कि data कहाँ से कहाँ बह रहा है। लेकिन उस data flow के अंदर कौन-कौन से data elements मौजूद हैं, उनकी definition data dictionary में लिखी जाती है।

Software Engineering data dictionary में special notations का इस्तेमाल किया जाता है:

Symbol Meaning उदाहरण / Use Case
= Composed of (से मिलकर बना है) Address = Street + City + PIN
+ And (जुड़ा हुआ) Name = First_Name + Last_Name
[ | ] Select one of (विकल्पों में से एक) Gender = [ Male | Female | Other ]
{ } Iteration / Repetition (बार-बार आना) Order = { Item_Name } (एक order में कई items)
( ) Optional (हो भी सकता है और नहीं भी) Customer_Info = Name + Phone + (Email)
* ... * Comment (टिप्पणी) * PIN code 6 अंक का होना चाहिए *

Software Engineering में इसका फायदा यह है कि पूरी development team (analyst, programmer, tester) एक ही terminology समझती है, जिससे communication gap खत्म हो जाता है।

Advantages और Disadvantages of Data Dictionary

Data dictionary के फायदे और सीमाएं नीचे दी गई हैं:

Advantages (लाभ)

  • Better Documentation: पूरे system की single source of truth मिल जाती है। नए developer के आने पर database समझना बहुत आसान हो जाता है।
  • Enhanced Security: Unauthorized access रुकता है क्योंकि permission tables data dictionary में central level पर check होती हैं।
  • Data Independence: Application programs को physical storage की चिंता नहीं करनी पड़ती; data abstraction बना रहता है।
  • Impact Analysis: अगर किसी table के column का data type बदलना हो, तो DBA data dictionary देखकर पता लगा सकता है कि कौन-कौन से programs और views इससे प्रभावित होंगे।
  • Automated Integrity: Constraints automatically enforce होते हैं, जिससे गलत record database में नहीं जा पाता।

Disadvantages (कमियां व सीमाएं)

  • System Overhead: Active data dictionary को लगातार update और read करने में CPU और memory resources खर्च होते हैं।
  • Design Complexity: शुरुआती तौर पर comprehensive data dictionary design करना जटिल काम है।
  • Single Point of Failure: अगर active data dictionary corrupt हो जाए, तो पूरा DBMS क्रैश हो सकता है और कोई भी query काम नहीं करेगी।
  • Passive System में Out of Sync: Passive dictionary में अगर developer manual update भूल जाए, तो documentation गलत जानकारी देने लगता है।

Exam में कैसे लिखें (5 Marks Answer)

अगर BCA, MCA या B.Tech exam में 5 marks का question आए "Explain Data Dictionary in DBMS", तो पूरे marks पाने के लिए answer इस structure में लिखें:

  1. Definition (2 lines): Data dictionary DBMS की एक centralized repository है जो metadata (data about data) को store करती है। इसे system catalog भी कहते हैं।
  2. What it Stores (4 bullet points): Table structure, column data types, constraints (Primary Key/Foreign Key), और user access privileges।
  3. Types (2 points):
    • Active Data Dictionary: DBMS से automatically update होती है (जैसे Oracle, MySQL)।
    • Passive Data Dictionary: Manually maintain की जाती है (जैसे documentation/Excel files)।
  4. Mini Block Diagram: User → DBMS (Query Engine ↔ Data Dictionary) → Actual Database.
  5. Main Benefit (1 line): यह data integrity बनाए रखती है और query processing को optimize करती है।

Students की आम गलतियाँ (Common Mistakes)

Exams में data dictionary के सवालों पर students अक्सर ये 4 गलतियां करते हैं, इनसे बचें:

  • Data और Metadata को mix करना: कई students लिखते हैं कि data dictionary में users का personal data (जैसे marks, salary) store होता है। यह गलत है। Data dictionary में सिर्फ metadata (data type, size, table rules) store होता है, actual customer data नहीं।
  • System Catalog को अलग मानना: System catalog और Data dictionary दो अलग चीजें नहीं हैं। Modern relational databases में ये दोनों एक ही concept के दो नाम हैं।
  • Active और Passive का उल्टा लिखना: याद रखिए, "Active" का मतलब software खुद automatically update करता है; "Passive" का मतलब इंसान manually update करता है।
  • Software Engineering symbols भूलना: जब सवाल software engineering के context में आए, तो notations (=, +, [ ], { }) जरूर लिखें, सिर्फ DBMS की definition लिखने से पूरे marks नहीं मिलते।

Exam के लिए Important Questions

Short Questions (2–3 marks)

  1. Data Dictionary क्या है? इसे एक वाक्य में define कीजिए। (Metadata यानी data about data को store करने वाली centralized repository)
  2. Active और Passive Data Dictionary में क्या मुख्य अंतर है? (Active automatically update होती है, जबकि Passive manually update की जाती है)
  3. Metadata से आप क्या समझते हैं? दो उदाहरण दीजिए। (Data के बारे में data, जैसे column data type और primary key rule)
  4. DBMS में System Catalog का क्या काम है? (Database schema, tables, users और constraints की cataloging करना)
  5. Software Engineering data dictionary में { } curly brackets का क्या अर्थ है? (Iteration यानी data element का बार-बार दोहराया जाना)

Long Questions (5–10 marks)

  1. Data Dictionary क्या है? DBMS में इसके components, main purpose और architecture को diagram के साथ समझाइए।
  2. Active Data Dictionary और Passive Data Dictionary की तुलना कीजिए। Database administration में इनके क्या फायदे और नुकसान हैं?
  3. Software Engineering में Data Dictionary की क्या भूमिका है? DFD के साथ इसका संबंध और इसके विभिन्न notations को examples के साथ समझाइए।
  4. Query Processing और Security enforcement में Data Dictionary कैसे मदद करती है? एक sample data dictionary table बनाकर समझाइए।

FAQs

Data dictionary in DBMS in Hindi क्या है?

DBMS में data dictionary एक ऐसा सिस्टम संग्रह है जिसमें database के सभी tables, columns, data types, keys, constraints और user permissions का विवरण (metadata) सुरक्षित रहता है। DBMS इसी के आधार पर queries को check और execute करता है।

Active data dictionary और passive data dictionary में कौन सी बेहतर है?

Active data dictionary हमेशा बेहतर होती है क्योंकि यह DBMS से जुड़ी होती है और DDL commands चलने पर automatically update हो जाती है। इसमें human error की गुंजाइश नहीं होती और यह हमेशा 100% accurate रहती है।

Main purpose of data dictionary क्या है?

Data dictionary का मुख्य purpose metadata को centralized रखना, data integrity rules लागू करना, query optimizer को fast execution में मदद करना और यह सुनिश्चित करना है कि केवल authorized users ही data access कर सकें।

क्या आम user Data Dictionary को सीधे UPDATE query से बदल सकता है?

नहीं। सुरक्षा कारणों से regular users को data dictionary की system tables पर direct UPDATE या DELETE चलाने की permission नहीं होती। यह केवल DDL commands (जैसे CREATE, ALTER) या internal DBMS processes से ही update होती है।

अक्सर पूछे जाने वाले प्रश्न (FAQs)

Quick Answer: DBMS में Data Dictionary एक centralized repository (संग्रह) है जो database के metadata यानी "data about data" को store करती है।
DBMS Notes in Hindi | डीबीएमएस नोट्स के पाठ्यक्रम में Data Dictionary in Hindi एक महत्वपूर्ण अध्याय है। यह मुख्य सिद्धांतों, परीक्षा प्रश्नों और सूत्रों को समझने के लिए अत्यधिक आवश्यक है।
हाँ, NotesMedia पर आपको Data Dictionary in Hindi के महत्वपूर्ण प्रश्नोत्तर, हल किए गए उदाहरण और नोट्स बिल्कुल मुफ्त मिलेंगे। अधिक अभ्यास के लिए आप हमारा ऐप भी डाउनलोड कर सकते हैं।
Advertisement