DBMS Unit1
DBMS Unit1
5) Security Breaches: Centralization also means that the data is accessible from a single
source, namely the database. This increases the severity of security breaches (breaking) and
disrupting the operation of the organization.
Database Administrator: The people who have central control of both data and the
programs that access those data in the database is called the Database Administrator (DBA).
Functions of the DBA are,
1. Schema Definition: The DBA creates the original database schema by writing a set
of definitions that are translated by a special language called a Data Definition Language
(DDL). The result of compilation of DDL statements is a set of tables of databases that is
stored permanently in a special file called data dictionary or dta directory which contains
metadata that is, data bout data.
2. Storage Structure and Access Methods: The DBA create storage structure and
access methods by writing a set of definitions, which are translated by the data definition
language compiler.
3. 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.
4. Granting of Authorization for Data Access: The DBA can grants permissions for
accessing different parts of the database to various users.
5. Integrity-constraint Specification: The data values stored in the database must
satisfy a consistent constraint (condition) specified only by DBA, known as integrity
constraint. So that, the data values stored in the database must be according to integrity
constraints.
6. Routine Maintenance:
i) DBA periodically updates the database, to prevent loss of data in case of disasters.
ii) DBA ensures that there is enough free space available for doing normal operations.
iii) DBA monitors all the jobs running on the database and ensures that performance is
not degraded by very expensive tasks submitted by some users.
VIEW OF DATA:
Database is a collection of large volumes of data. A user will not always require the complete
data. The responsibility of the database system is to provide only the data that is required to
the user.
Similarly, a programmer who wishes to enhance the features of database system is not
concerned about the data, but need to know how the data is stored. Hence different users need
different view of data.
3. View level: Design of database at view level is called view schema. This generally
describes end user interaction with database systems
Application programs hide details of data types. Views can also hide information (e.g.,
salary) for security purposes.
Features:
a) It is the highest level of abstraction.
b) It describes only a part of the whole Database for particular group of users.
c) This view hides all complexity.
d) It exists only to simplify user interaction with system.
e) The system may provide many views for the whole system.
Instances and Schemas: Databases change from time to time as information is inserted and
deleted. The view of collection information stored in the database at that particular moment is
called an “instance” of the database.
Design of a database is called the schema or The overall design (plan) of the database to
store the information is called as database “Schema”.
For example, declaration of variable is a plan to store the data is known as “Schema”.
Assign the value into a variable is nothing but “instance”.
DATA MODELS:
Data model means to model the data i.e., to give a shape to the data and to give a
figure to the stored data. A data model makes it easier to understand the meaning of
the data by its figure.
The data model can be used to convey the designers understanding of the information
requirement of the organization. Increasingly, organizations are standardizing the way
that they model data by selecting a particular approach to data modeling and using it
throughout their database development projects.
A data model has a collection of tools for describing Data, Data relationships, Data
semantics, and Data constraints.
The data models are divided into three different groups.
1. Object-based logical models.
2. Record based logical models.
3. Physical data model.
Relational model: The relational model represents both data and relationship among data in
the form of tables. Each table has multiple columns and each column has a unique name.
Consider the following relational model.
The description of data in terms of tables are called as relations. From the above customer
and account relations, we can make a condition that customer details are maintained in
customer relation database and their deposit details are maintained in account relation
database.
Network Model: Data in the network model are represented by collection of records and
relationships among data are connected by links. The links can be viewed as pointers. The
records in the database are represented in the form of graphs.
Hierarchical Model: Hierarchical model is same as the network model i.e. data in the
hierarchical model are also represented by collection of records and relationships among data
are connected by links. The links can be viewed as pointers. But, the difference from network
model is that the records in the database are represented in the form of tr
The relational model differs from the network and hierarchical models. It means, the
relational model does not use pointers or links.
Physical Data Models:
Physical data models are used to describe data at the lowest level, which explains how the
data is actually stored using complex low-level data structures. Actually the physical data
models are rarely used.
Two types of physical data models are,
1. Unifying model. 2. Frame-memory model.
DATA INDEPENDENCE:
The ability to modify a scheme definition in one level without affecting a scheme definition
in a higher level is called data independence. 1. There are two kinds:
Logical data independence
The ability to modify the conceptual scheme without causing application programs to
be rewritten.
Immunity of external schemas to changes in the conceptual schema.
Usually done when logical structure of database is altered
Physical data independence
The ability to modify the internal scheme without having to change the conceptual or
external schemas.
Modifications at this level are usually to improve performance.
DATABASE SYSTEM ENVIRONMENT :
DBMS System Structure and its Components:
We can explain the overall structure of DBMS/System structure and its components by the
diagram
The flow of the data is unidirectional and forms a cycle. It is usually initiated by the client
requesting some kind of data and the server processing the request and sending some kind of
data back to the client via a protocol. Clients cannot directly talk to each other.
The client/server architecture was developed to deal with computing environments in which a
large
number of PCs, workstations, file servers, printers, database servers, Web servers, e-mail
servers, and other software and equipment are connected via a network
3-Tier Architecture
The 3-Tier architecture contains another layer between the client and server. In this
architecture, client can't directly communicate with the server.
The application on the client-end interacts with an application server which further
communicates with the database system.
End user has no idea about the existence of the database beyond the application server. The
database also has no idea about any other user beyond the application.
The 3-Tier architecture is used in case of large web application.