Lec 4. Database System Approach Vs File System Approach
Lec 4. Database System Approach Vs File System Approach
1) Self-Describing Nature of a Database System: The database system contains not only the database itself
but also a complete definition or description of the database structure and constraints.
This definition is stored in the system catalog, which contains information such as:
a) the Structure of each File,
b) the Type and Storage format of each Data Item, and
c) various constraints on the data.
• The information stored in the catalog is called META-DATA (also called as data about data), and it
describes the structure of the primary database.
• In traditional file processing, data definition is typically part of the application programs themselves.
Hence, these programs are constrained to work with only one specific database, whose structure is
declared in the application programs. For example, a C++ program may have “struct” or “class”
declarations to define its files.
• Whereas file-processing software can access only specific database, DBMS software can access diverse
databases by extracting the database definitions from the catalog and then using these definitions.
In advanced DBMS softwares user can define operations on the data as part of the database definitions.
• An operation (also called a function) is specified in two parts. The interface (or Signature) of an
operation includes the operation name and the data types of its arguments (or Parameters). The
implementation (or method) of the operation is specified separately and can be changed without
affecting the interface.
• User application programs can operate on the data by invoking these operations through their names and
arguments, regardless of how the operations are implemented. This may be termed as Program-
Operations Independence.
Characteristics that allows program-data independence and program-operation independence is called Data
Abstraction.
A DBMS provides users with a Conceptual Representation of data that does not include many of the details
of how the data is stored or how the operations are implemented.
If Accounts department needs only RollNo., Name and Fees only where as Library needs Name, Year and
Sem. And Registration office needs all the data related to the student. So the three users require three views.