Data Base Management System
Data Base Management System
Data Inconsistency
Data Inconsistency means different copies of the same
data are not matching. That means different versions of
same basic data are existing. This occurs as the result
of update operations that are not updating the same
data stored at different places.
Data Isolation
Data are scattered in various files, and the files may be
in different format, writing new application program to
retrieve data is difficult.
Integrity Problems
The data values may need to satisfy some integrity
constraints. For example the balance field Value must be
grater than 5000. We have to handle this through
program code in file processing systems. But in database
we can declare the integrity constraints along with
definition itself.
Atomicity Problem
It is difficult to ensure atomicity in file processing
system.For example transferring $100 from Account A
to account B.If a failure occurs during execution there
could be situation like $100 is deducted from Account A
and not credited in Account B.
logical schema
physical schema
Database Instance
Definition: The term instance is typically used to
describe a complete database environment, including the
RDBMS software, table structure, stored procedures and
other functionality. It is most commonly used when
administrators describe multiple instances of the same
database.
Disadvantages of a DBMS
1. Privacy and security Reduces :-When the information is centralized and is made
available to user from remote locations, the possibility is of destruction of data is often
more than in a conventional file system. For Exp. of remote location is bank A/c in
banking system , everyone can use. Then to reduce the chances of an authorized user
accessing sensitive information, it is necessary to take technical measures.
2. Cost of using DBMS is High : Additional Hardware cost :To run new applications
additional hardware and storage space is required for execution and storage
Cost of migration: it also includes a cost of migration from a traditionally separate
application environment to integrated one.
Cost of training staff: To run a new staff , we need training of new staff. Moreover
recruitment of new staff is required , which helps in running the system
3. Threat To Data Integrity : Since a large number of users could be using a database
concurrently , technical safe Guards are necessary to ensure data remain correct during
operation.
4. Complexity of Backup and recovery : While centralization reduces the duplication
and cuplication requires that the database be backup so that in case of failure of data can
be removed.
5. Data quality is reduced: Since the database is accessible to users remotely adequate
controls are needed to handle user’s updation. So as to control the quality of data.
1)A DBMS has to be persistent 1)RDBMS is based on relational
(it should be accessible when the model, in which data is
program created the data donot represented in the form of
exist or even the application that relations, with enforced
created the data restarted). relationships between the tables.
5.)It requires low Software and 5)It requires High software and
Hardware Requirements hardware requirements.
>it Does not support distributed >it support distributed Data base
Data base architecture. architecture.
DBMS Functions'
One of the main reasons for using DBMS is to have a central control of
both data and the programs accessing those data. A person who has
such control over the system is called a Database Administrator(DBA).
The following are the functions of a Database administrator
Schema Definition
Storage structure and access method definition
Schema and physical organization modification.
Granting authorization for data access.
Routine Maintenance
Schema Definition
The Database Administrator creates the database schema by executing
DDL statements. Schema includes the logical structure of database
table(Relation) like data types of attributes,length of
attributes,integrity constraints etc.
Routine Maintenance
Some of the routine maintenance activities of a DBA is given below.