Exercises · Q5
Q.What are the limitations of file system that can be overcome by a relational DBMS?
Telangana TsbieTextbookSubjective· 3mImportance★★★★★est
43% · 6/14 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →File systems store data in independent, program-owned flat files — which breeds duplication, contradiction, scattered un-combinable data, programs welded to file formats, race conditions, and almost no security or recovery. An RDBMS was designed point-by-point against these: one shared normalised database, constraints, data independence, transactions, access control, and backup/recovery.
Here is each file-system limitation and how a relational DBMS removes it:
| # | File-system limitation | How the RDBMS overcomes it |
|---|---|---|
| 1 | Data redundancy — each application keeps its own files, so the same data (a student's name/address) is stored many times | Single central database; each fact stored once, other relations hold only a primary-key/foreign-key reference to it |
| 2 | Data inconsistency — an update reaches some copies but not others, so files contradict each other | With only one stored copy there is nothing to fall out of sync; constraints validate what does go in |
| 3 | Data isolation — data scattered across many files, often in different formats, so combining information is hard | All data in one database with a uniform relational structure; a SQL JOIN combines any relations on demand |
| 4 | Program–data dependence — every program hard-codes the file's record layout; change the layout and all programs must be rewritten | Data independence: programs ask the DBMS by name (SELECT Name FROM Student); the physical storage can change without touching applications |
| 5 | Concurrent-access anomalies — two users updating the same file simultaneously overwrite each other, corrupting data | Transactions with concurrency control (locking) serialise conflicting updates safely; many users work at once |
| 6 | Poor data security — OS file permissions are all-or-nothing; you cannot let a clerk see names but not salaries | Fine-grained access control (GRANT SELECT (Name) ...), user accounts and privileges enforced by the DBMS |
| 7 | No integrity enforcement — nothing stops a file holding a duplicate roll number, a blank mandatory field, or marks = 999 | Declarative constraints: PRIMARY KEY, UNIQUE, NOT NULL, CHECK, FOREIGN KEY — the RDBMS rejects invalid data itself |
| 8 | No crash recovery / backup discipline — a failure mid-update leaves files half-written | Built-in backup and recovery; transactions are atomic — a crash rolls back to a consistent state |
| 9 | Difficult data access/query — every new question needs a new program to be written to scan the files | A general query language (SQL) answers ad-hoc questions instantly, no programming of file-scans needed |
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.