MI0025 Database Management System (MBA - Is)
MI0025 Database Management System (MBA - Is)
Answer:
DBMS: - A DBMS is a complex set of software programs that control the
organization , storage and retrieval of data in a database.
The various procedures carried on in DBMS
1. The process of specifying the data types, structures and constraints
is called Defining the database.
2. The process of storing the data on some storage medium.
3. Manipulating the Database-involves the retrieval (activity of finding)
of required data and modifying it depending on the requirement.
Traditional file system Vs Modern Database Management System
Traditional file system Modern Database Management
System
Traditional file system is the system This is the Modern way which has
that was followed before the advent replaced the older concept of file
of DBMS i.e., it is the older way. system.
In Traditional file processing, data • Data definition is part of the
definition is part of the application DBMS
program and works with only specific • Application is independent and
application. can be used with any
application.
File systems are Design Drive; they • One extra column (Attribute)
require design/coding change when can be added without any
new kind of data occurs. difficulty.
E.g: In a traditional employee the • Minor coding changes in the
master file has Emp_name, Emp_id, Application program may be
Emp_addr, Emp_design, Emp_dept, required.
Answer:
Data independence
Data independence is defined as the ability to modify a schema definition in
one level without affecting a schema definition in a higher level.
There are two kinds.
1. Physical data independence:
This is the ability the physical scheme without causing application
programs to be rewritten. Modifications at this level are usually to
improve performance.
2. Logical data independence:
This is the ability to modify the conceptual scheme without causing
application programs to be rewritten. This is usually done when the logical
structure of database is altered. Logical data independence is harder to
achieve, as the application programs are usually heavily dependent on
the logical structure of the data. An analogy is made to abstract data
types in programming languages.
Answer:
(i). There are several standards techniques for allocating the blocks of a file
on disk. In contiguous (sequential) allocation the file blocks are allocated to
consecutive disk blocks. This makes reading the whole file very fast, using
double buffering, but it makes reading the whole file very fast, and using
double buffering, but it makes expanding the file difficulty. A combination of
the two allocation clusters of consecutive disk blocks, and the clusters are
linked together. Clusters are sometimes called segments or extents.
File Headers: A file headers or file descriptor contains information about a
file, that is needed by the header and includes information to determine the
Database Management System
Page (MBA - IS)
5
Sikkim Manipal University
Q.2. (ii) Describe the concept of variable length records. Describe the
characteristics of magnetic disk and magnetic tape storage devices.
Answer:
Variable length records
Computer-file record that may vary in the number of characters or fields it
includes from one record to another. Although a variable-length record may
have a maximum size, its length is otherwise determined by the amount of
information necessary to establish the record. For example, a name and
address record might require as few as four fields and as many as six or
even more. Variable-length records give the file owner added flexibility but
may consume more computer time than fixed-length records.
Q.3. (i) Discuss the criteria for bad relational schemas. Discuss the
attribute semantics as an information measure of goodness of a
relation schema.
Answer:
The following are the good and bad relation schemas.
A. Semantic of attributes
B. Reducing the redundant values in tuples.
C. Reducing the null value in tuples
D. Disallowing spurious tuples.
A. Semantic of attributes:
Understanding the meaning of the attribute values in the tuple is the
attribute values in the tuple are referred as semantics. Addition to this
semantic also specifies how they are related to one another. Whenever
we groups attribute to form a relation, we assume that a certain meaning
is associated with the attributes. This meaning is called Semantics, and
specifies how the attribute values in a tuple relate to one another.
B. Reducing the redundant values in tuples:
Q.3 (ii) Discuss the Transaction Processing Concepts. List and explain
the desirable properties of transactions.
Answer:
Transaction Processing Concepts.
2. Consistency:
The basic idea ensuring atomicity is as follows. The database system
keeps back of the old values of any data on which a transaction
performs a write, and if the transaction dose not complete its
execution, the old values are restored to make it appear as through
the transaction was never executed.
3. Durability:
Once a transaction changes the database and the changes are
committed, these must never be lost because of subsequent failures.
The users need not worry about the incomplete transactions. Partially
executed transactions can be rolled back to the original state; ensuring
durability is the responsibility of the recovery management component
of the DBMS.
-End of Assignment-