Module1 Notes
Module1 Notes
Introduction
2
DBMS Module1 CASP
1. Database Administrators
Administering the database resources is the responsibility of the
database administrator (DBA). The DBA is responsible for authorizing
access to the database, coordinating and monitoring its use, and
acquiring software and hardware resources as needed. The DBA is
3
DBMS Module1 CASP
2. Database Designers
Database designers are responsible for identifying the data to be
stored in the database. They choose appropriate structures to represent
and store this data. It is the responsibility of database designers to
communicate with all database users in order to understand their
requirements and to create a design that meets these requirements.
3. End Users
End users are the people whose jobs require access to the database for
querying, updating, and generating reports. The database primarily exists
for their use.
There are several categories of end users:
■Casual end users occasionally access the database, but they may
need different information each time. They use a sophisticated database
query language to specify their requests .
■ Naive or parametric end users make up a major portion of
database end users. They use program interfaces to use the database
system. Eg: _ Bank tellers, Reservation agents for airlines, hotels, and
car rental companies etc.
■ Sophisticated end users include engineers, scientists, business
analysts, and others who thoroughly familiarize themselves with the
facilities of the DBMS.They implement their own applications to meet
their complex requirements.
■ Standalone users maintain personal databases by using ready-
made program packages that provide easy-to-use menu-based or
graphics-based interfaces.
A typical DBMS provides multiple facilities to access a database.
Naive end users need to learn very little about the facilities provided by
the DBMS; they simply have to understand the user interfaces of the
standard transactions designed and implemented for their use.
Casual users learn only a few facilities that they may use repeatedly.
4
DBMS Module1 CASP
6
DBMS Module1 CASP
the structure of the database without affecting the stored data and the
existing application programs.
e) Economies of Scale.
DBMS enables the whole organization to invest in more powerful
processors, storage devices, or communication gear, rather than having
each department purchase its own (lower performance) equipment. This
reduces overall costs of operation and management.
7
DBMS Module1 CASP
8
DBMS Module1 CASP
9
DBMS Module1 CASP
12
DBMS Module1 CASP
The top part of Figure shows interfaces for the DBA staff, casual users
who work with interactive interfaces to formulate queries, application
programmers who create programs using some host programming
languages, and parametric users who do data entry work by supplying
parameters to predefined transactions.
The DBA staff works on defining the database and making
changes to its definition using the DDL and other privileged commands.
The DDL compiler processes schema definitions, specified in the DDL,
and stores descriptions of the schemas (meta-data) in the DBMS catalog.
13
DBMS Module1 CASP
interface. These queries are parsed and validated for correctness of the
query syntax by a query compiler that compiles them into an internal
form. This internal query is subjected to query optimization .The query
optimizer is concerned with the rearrangement and possible reordering
of operations, elimination of redundancies, and use of correct algorithms
and indexes during execution.
Application programmers write programs in host
languages such as Java, C, or C++ that are submitted to a precompiler.
The precompiler extracts DML commands from an application program
written in a host programming language. These commands are sent to
the DML compiler for compilation into object code for database access.
The rest of the program is sent to the host language compiler. The object
codes for the DML commands and the rest of the program are linked,
forming a canned transaction.
Canned transactions are executed repeatedly by parametric users,
who simply supply the parameters to the transactions. Each execution is
considered to be a separate transaction. An example is a bank
withdrawal transaction
In the lower part, the runtime database processor executes (1) the
privileged commands, (2) the executable query plans, and (3) the canned
transactions with runtime parameters.
It works with the system catalog . It also works with the stored data
manager, which in turn uses basic operating system services . The
runtime database processor handles other aspects of data transfer, such
as management of buffers in the main memory. Some DBMSs have their
own buffer management module while others depend on the OS for
buffer management.
16