DBMS QB Solution
DBMS QB Solution
DBMS QB Solution
● A person who has central control of the both the data and programs that access those data,
over the system is called a database administrator (DBA). Coordinates all the activities of
the database system; the database administrator has a good understanding of the
enterprise’s information resources and needs.
● Database administrator’s duties include:
● Schema definition. The DBA creates the original database schema by execut-
ing a set of data definition statements in the DDL.
● Storage structure and access-method definition.
● Schema and physical-organization modification. The DBA carries out changes
to the schema and physical organization to reflect the changing needs of the
organization, or to alter the physical organization to improve performance.
● Granting of authorization for data access. By granting different types of
authorization, the database administrator can regulate which parts of the
database various users can access. The authorization information is kept in a
special system structure that the database system consults whenever someone
attempts to access the data in the system.
● Routine maintenance. Examples of the database administrator’s routine
maintenance activities are:
◦ Periodically backing up the database, either onto tapes or onto remote
servers, to prevent loss of data in case of disasters such as flooding.
◦ Ensuring that enough free disk space is available for normal operations,
and upgrading disk space as required.
◦ Monitoring jobs running on the database and ensuring that performance
is not degraded by very expensive tasks submitted by some users.
● Specifying integrity constraints
● Acting as liaison with users
• Integrity problems
• Integrity constraints(e.g. account balance > 0) become part of program code
• Hard to add new constraints or change existing ones.
•
Atomicity of updates
Failures may leave database in an inconsistent state with partial updates
carried out.
E.g. transfer of funds from one account to another should either complete or
not happen at all.
• Physical level. The lowest level of abstraction describes how the data are actually
stored. The physical level describes complex low-level data structures in detail.
• Logical level. The next-higher level of abstraction describes what data are stored
in the database, and what relationships exist among those data. The logical level
thus describes the entire database in terms of a small number of relatively simple
structures. Although implementation of the simple struc tures at the logical level may
involve complex physical-level structures, the user of the logical level does not need
to be aware of this complexity. This is referred to as physical data independence.
Database administrators, who must decide what information to keep in the database,
use the logical level of abstraction.
• View level. The highest level of abstraction describes only part of the entire
database. Even though the logical level uses simpler structures, complexity remains
because of the variety of information stored in a large database. Many users of the
database system do not need all this information; instead, they need to access only
a part of the database. The view level of abstraction exists to simplify their
interaction with the system. The system may provide many views for the same
database.
4.Explain characteristics of DBMS.
A Database Management System (DBMS) is software that facilitates the management,
organization, retrieval, and manipulation of data in a structured manner. Here are some
key characteristics of a DBMS:
1. Data Abstraction:
- DBMS provides a level of abstraction that separates the physical storage details from
the user. Users interact with the data through high-level queries and commands without
needing to understand the underlying storage structure.
2. Data Integrity:
- DBMS enforces data integrity constraints to maintain the accuracy and consistency
of the data. This includes enforcing rules such as primary keys, foreign keys, and data
validation rules.
3. Data Security:
- DBMS offers security mechanisms to control access to the database. It ensures that
only authorized users can perform specific operations on the data and provides features
like authentication, authorization, and encryption to protect data.
5. Data Independence:
- DBMS provides both logical and physical data independence. Logical data
independence allows changes to the database schema without affecting the application
programs. Physical data independence allows changes to the physical storage without
affecting the logical schema.
For the system to be usable, it must retrieve data efficiently. The need for efficiency
has led designers to use complex data structures to represent data in the database.
Since many database-system users are not computer trained, developers hide the
complexity from users through several levels of abstraction, to simplify users’
interactions with the system:
• Physical level. The lowest level of abstraction describes how the data are actually
stored. The physical level describes complex low-level data structures in detail.
• Logical level. The next-higher level of abstraction describes what data are stored
in the database, and what relationships exist among those data. The logical level
thus describes the entire database in terms of a small number of relatively simple
structures. Although implementation of the simple struc tures at the logical level may
involve complex physical-level structures, the user of the logical level does not need
to be aware of this complexity. This is referred to as physical data independence.
Database administrators, who must decide what information to keep in the database,
use the logical level of abstraction.
• View level. The highest level of abstraction describes only part of the entire
database. Even though the logical level uses simpler structures, complexity remains
because of the variety of information stored in a large database. Many users of the
database system do not need all this information; instead, they need to access only
a part of the database. The view level of abstraction exists to simplify their
interaction with the system. The system may provide many views for the same
database.
6. Explain Generalization.
These sub groupings become lower-level entity sets that have attributes or
participate in relationships that do not apply to the higher-level entity set.
Attribute inheritance – a lower-level entity set inherits all the attributes and
relationship participation of the higher- level entity set to which it is linked.
For eg:
Here we can see that the specialization of person allows us to distinguish among
person entities according to whether they correspond to employees or students: in
general, a person could be an employee, a student, both, or neither.