1 Database And Database Users

Database Management System · Unit 1 · 2 hrs

Database and Database Users

Exam-focused notes for Database and Database Users (Database Management System, CSC265): what the TU syllabus asks and how it has actually been tested, with 4 solved past questions from this unit.

Database and Database Users in short

This unit sets up the vocabulary of the whole course: what a database and a DBMS actually are, why the database approach replaced file processing, and who the people are that build, run and use a large database.

Database and Database Users: notes

Introduction

Data are raw facts, recorded from observation, measurement or experiment, that carry no meaning on their own. Information is data that has been processed into a form that is meaningful to whoever receives it. A database is a collection of related data organized in a way that reflects some aspect of the real world (a miniworld) and is built and populated for a specific purpose, such as a university database holding students, courses and grades.

A database management system (DBMS) is the software that lets users define, create, maintain and control access to a database. It bundles together the database itself, the rules that govern it, and the programs that manipulate it, so it is best described as a general-purpose, computerized record-keeping system. Its two central goals are to store data conveniently and to retrieve it efficiently when needed. Oracle, MySQL, SQL Server and MS Access are common examples.

The database approach shows up across almost every domain: banking systems track customers, accounts and balances; airline systems handle reservations and schedules; telecommunication systems log calls and generate bills; university systems record students, courses and marks; and manufacturing systems track orders and production.

What this unit covers

  • Introduction
  • Characteristics of the Database Approach
  • Actors on the Scene
  • Workers behind the Scene
  • Advantages of Using the DBMS Approach

Advantages of Using the DBMS Approach

2080 · 5 marks

What is fat-file system? What are the advantages of using DBMS approach? [5]

Show solved answer

Fat File System and Advantages of DBMS Approach


Part 1: Fat File System (File Processing System)

A fat file system (also called a file processing system or flat file system) is a traditional approach to data management where data is stored in separate, independent files managed directly by individual application programs. Each application maintains its own set of files, and there is no centralized control or management of the data.

Key characteristics:

  • Data is stored in isolated files with no central coordination
  • Each application program defines and manages its own data files
  • Data is accessed through application-specific programs
  • There is no standard interface for accessing or sharing data across applications

Major problems of the fat file system:

  • Data redundancy and inconsistency - same data stored in multiple files
  • Difficulty in accessing data - no flexible query mechanism
  • Data isolation - data scattered in various files and formats
  • Integrity problems - difficult to enforce constraints
  • Atomicity problems - difficult to ensure all-or-nothing operations
  • Concurrent access anomalies - multiple users accessing same file causes problems
  • Security problems - difficult to enforce access control

Part 2: Advantages of Using DBMS Approach

A good DBMS provides the following advantages:

1. Providing Backup and Recovery

The backup and recovery subsystem of a DBMS is responsible for recovery. For example, if the computer fails in the middle of a complex update transaction, the recovery system ensures the database is restored to the state it was in before the transaction started executing. Disk backup is also necessary in case of catastrophic disk failure.

2. Providing Multiple User Interfaces

Many types of users with varying levels of technical knowledge use a database. A DBMS provides a variety of user interfaces including:

  • Apps for mobile users
  • Query language for casual users
  • Programming language interfaces for application programmers
  • Forms and commands for parametric users
  • Menu-driven and natural language interfaces for standalone users
  • Graphical User Interfaces (GUIs)

3. Flexibility

It may be necessary to change the structure of a database as requirements change. Modern DBMS allow certain types of evolutionary changes to the structure of the database without affecting existing application programs. For example, a new user group may emerge that needs additional information, requiring new files or extended data elements.

4. Availability of Up-to-Date Information

As soon as a user's update is applied to the database, all other users can immediately see that update. This availability of up-to-date information is essential for many transaction-processing applications such as reservation systems or banking databases.

5. Reduced Data Redundancy and Inconsistency

By centralizing data management, DBMS minimizes duplication of data across multiple files, thereby reducing inconsistency.

6. Enforcing Integrity Constraints

DBMS allows integrity constraints to be defined and automatically enforced, ensuring data accuracy and validity.


In summary, the DBMS approach overcomes all the major drawbacks of the fat file system by providing centralized, controlled, secure, and flexible data management with support for multiple users and recovery mechanisms.

Open this answer on its own page →

2076 · 10 marks

What are the advantages of using Database Management System over traditional filing system? Explain different data models with example.[10]

--- A Database Management System (DBMS) is a software system that enables users to define, create, maintain, and control access to a database. Traditional file systems store data in flat files managed by individual application programs, which leads to several problems that DBMS solves. --- In tra...

Open this answer on its own page →

Actors on the Scene

2078 · 10 marks

What are different types of Database users and their roles? Explain the Data independence with example.[10]

--- A database typically has many types of users, each of whom may require a different perspective or view of the database. A view may be a subset of the database or it may contain virtual data. Since a multiuser DBMS serves users with a variety of distinct applications, it must provide facilitie...

Open this answer on its own page →

Characteristics of the Database Approach

2080.1 · 5 marks

What are the characteristics of database approach? Explain. [5]

The database approach has several important characteristics that distinguish it from traditional file-based systems. Among these, three most important characteristics form the basis of the three-schema architecture, which was proposed to help visualize and understand the structure of database sys...

Open this answer on its own page →