Unit 1 Summary
Unit 1 Summary
Mary Jacob
Application programs/Queries
DBMS Software
S/w to process Queries/programs
Stored Stored
database database
definition
(Metadata)
1
Database users:
Actors on the scene:
The persons whose jobs involve the day to day use of the large database are called actors on the
scene.
Database Administrators (DBA):
DBA is the chief administrator to oversee and manage the resources i.e (the primary resource is
the database itself and the secondary resource is DBMS and related software)
He is responsible for authorizing access to the database for coordinating and monitoring its uses
for acquiring software and hardware resources as needed.
He is responsible for breach of security poor response time etc.
Database designers:
They are responsible for identifying data to be stored in the database and for choosing
appropriate structures to represent and store the data.
They have to study the requirements of the various users to come up with the design that meets
the requirements.
This task is done before the database is implements populated with data.
They also talk to the perspective users & develop the view for different users t meet their
processing requirements.
End users:
End users are the people where jobs require the access to the Database for querying, updating &
generating reports several categories of end users.
Casual End users:
They occasionally access the database but they may need different information each time.
They use a sophisticated database query language to specify their requests & are typically middle
of high level manager or occasional browsers.
Naïve or parametric End users:
They job revolves around constantly querying and updating the database using standard types of
queries & updates called canned transactions.
Eg. Bank tellers, reservation clerks etc.
Sophisticated End users:
They familiarize themselves with the facilities of the DBMS, to implement their applications to
meet their complex requirements.
Eg. engineers, scientists etc.
Stand alone users:
They maintain personal database by using ready made program packages. They are easy to use
menu of graphical Interfaces.
System analysts and Application programmers:
System Analyst: They study the requirements of End users specially having users and make the
specifications for canned transactions.
Application programmer: They implement the specifications as programs. i.e., test debug,
document & maintain the canned transactions. Both together are called Software engineers.
3. Flexibility
DBMS allows certain types of changes to the structure of the database without affecting the
stored data and the existing application programs.
5. Economies of scale
Wasteful overlap of resources and personnel can be avoided by consolidating data and
applications across departments.
The data is sorted hierarchically, using a downward tree. This model uses pointers to navigate
between stored data. It was the first DBMS model.
Like the hierarchical model, this model uses pointers toward stored data. However, it does not
necessarily use a downward tree structure.
iii. Relational data model (RDBMS, Relational database management system)The data is stored in two-
dimensional tables (rows and columns). The data is manipulated based on the relational theory of
mathematics.
It provides the concepts that describe the details of how data is stored in the computer. Physical Data
Model describes the storage of data in the computer by representing information such as record formats,
record orderings and access path. Concepts provided by these models are generally meant for computer
specialists, not for typical end users.
Student
Name Id phone
Course
Meta Data: The DBMS stores the description of the schema constructs and constraints called meta data
in DBMS catalog.
Internal level:
The internal schema uses a physical data model and describes the complete details of data storage
and access path of the database.
Conceptual Level:
This level has a conceptual schema, which describes the structure of the whole database for a
community of users.
It hides the details of physical storage structure and concentrates on describing entities, data types,
relationships, constraints and user operations.
Each external schema describes the part of the database that a particular user group is interested
in and hides the rest of the database from that user group.
Mappings:
9
The three schemas are only descriptions of data and the actual data exists only at physical level.
Each user group refers to only the external schema and the DBMS must transfer the request against the
conceptual schema and then to the internal schema for processing over the stored database.
If the request is the database retrieval, the data extracted from the stored database should be
reformatted to the external view of user. This process of transferring requests and results between levels is
called mapping.
Data Independence:
It is the capacity to change the schema at one level of the database system without having to change the
schema at the next higher level.
It is the capacity to change the conceptual schema without having to change external schemas or
application programs.
It is the capacity to change the internal schema without to change the conceptual schemas.
The DDL is used by DBA and database designers to define the conceptual and internal schema when
there is no clean separation between them. If a clear separation is maintained between the conceptual and
internal schema then DDL is used to define only the conceptual schema.
VDL is used to specify the user views and their mappings to the conceptual schema
DML is used to perform the various manipulations on the database such as to retrieve, insert, delete,
modify etc.
10
High level DML’s can either be entered interactively from a terminal or it can be embedded in a
general purpose programming language.
This must be embedded in a general purpose programming language. This DML retrieves
individual record from the database and processes each separately. Therefore it is called record at
a time DML.
In the above both low level and high level DML’s when embedded in a programming language. The
language is called host language and the DML is called the data sublanguage.
DBMS Interfaces:
1. Menu Based Interfaces:
This Interface provides the user with a list of options called menu that leads the user through the
formulation of a request.
Query is composed in step by step by picking options from a menu that is displayed by the system.
Users can fill out the form entries or certain entries using which the queries will be created.
DBMS’s will have the form specification languages that help programmers to specify such form.
GUI displays schema to the user in diagrammatic form and user can specify the request by
manipulating the diagram.
Natural language interface has its own schema and a set of words to interpret the request.
Parametric users like bank tellers have a small set of operations that must be performed
repeatedly.
It is the set of privileged commands used by the DBA staff, to create accounts, grant
authorizations etc.
The database and DBMS catalog is stored on the disk. Access to the disk is controlled primarily by the
operating system which schedules disk input/output.
A higher level stored data manager module of DBMS controls access to DBMS information that is
stored on the disk (i.e.) database or DBMS catalog. It uses the basic operating system services for
carrying out low level data transfer between disk and main storage.
The DDL compiler processes schema definitions specified in DDL and stores the descriptions of the
schema in the DBMS catalog.
The run time database processor handles database accesses at run time. It receives the retrieval or
update operations and carries them out on the database.
The Query Compiler handles high level queries that are entered interactively. It passes, analyzes and
compiles or interprets a query by creating database access code and then generates calls to the run time
processor for executing the code.
Pre-compiler extracts DML commands from an application program written in host programming
language. These commands are send to DML Compiler for compilation into object code for database
access.
The rest of the program is sent to host language compiler. The object code for DML commands and the
rest of the program are linked forming canned transactions, whose executable code includes calls to the
runtime database processor.
i. Loading:
It is used to load the existing data files such as text files or sequential files into the database when the
source file format and target file format is different, this utility does the conversion automatically.
ii. Backup:
This creates a backup copy of the database, usually dumping the entire database on the tape. Incremental
backups are also used to record the change to the previous backup.
13
This is used to reorganize a database file into a different file organization to improve performance.
It monitors database usage and provides statistics files to improve performance. Other utilities exist for
sorting, file compressions etc.
It stores catalog information about schemas and constraints, as well as design decisions,
usage standards, application program descriptions, user information. It is also called as
information repository. It can be accessed directly by DBA or users when needed.
Communication software
It allows the users at remote locations to access the database through computer terminals,
workstations or personal computers. It is connected to the database through data
communications hardware such as phone lines, local area networks etc.
The relational Data Model represents a database as a collection of tables, where each table can be
stored as a separate file.
14
The network data model represents data in terms of records and also 1: N relationship.
These add new object storage capabilities to the relational systems at the core of modern
information systems, by encapsulating methods with data structures.
A single user system supports one user at a time. It is used mainly in personal computers.
A multiuser system supports multiple users at a time, which is implemented in most of the
computers.
Centralized DBMS
It contains the database at only one computer site, which can support multiple users.
Distributed DBMS
It contains the database and DBMS software stored over many sites connected by network.
Homogeneous
The participating DBMS’s are loosely coupled and have a degree of local autonomy.
These support a large number of concurrent transactions without imposing excessive delays.
Special purpose
It is a package developed to suit the needs of a particular user, which cannot be used by other
users.
General purpose
5. Based on Cost
Majority of DBMS cost more. Single user low-end system that works with microcomputers cost
relatively lesser between $100 and $3000.
***********************
16