Professional Documents
Culture Documents
A DBMS is general purpose software that manages the database and provides
facilities for storing, accessing and maintaining the data.
Advantages of DBMS
1. Reduction of Redundancies
Duplication of information is reduced. In database approach, data can be
stored at a single place, which saves space and does not permit inconsistency.
2. Shared Data
A DBMS allows the sharing of database under its control by any number of
application programs or users.
1
Database Management System
3. Data Independence
DBMS separates data descriptions from data. Hence it is not affected by
changes. This is called Data Independence, where details of data are not exposed.
DBMS provides an abstract view and hide details.
5. Improved Security
Only authorized users may use the database by granting privileges given by
the database administrators (DBA) by providing username and password.
Disadvantages of DBMS
1. High initial investment & possible need for additional hardware.
2. Overhead for providing generality, security, recovery integrity & concurrency control.
The system catalog stores the definition of this file and whenever a request to
access information is made, the DBMS software refers to the catalog to determine the
structure of STUDENT file and the position and size of the various data items and the
constraints which exist if any.
3. Data Abstraction
2
Database Management System
A data model is used to hide storage details and present the users with a
conceptual view of the database.
Data Models
A data model is a set of concepts that can be used to describe the structure of the
database and the different relationship and constraints which hold the data in the database.
Schema
Schema defines the tables, the fields in each table and the relationships between fields
and tables.
Instances
It is used to describe a complete database environment, including the RDBMS
software, table structure, stored procedures and other functionalities.
DBMS Architecture
In order to implement the below identified characteristics, a three-schema architecture
is proposed,
Separation of data from the programs which use these data.
Provide each application program with a separate interface or use a separate view.
Store the description of the database with its constraints separately as metadata in the
system catalog
Three - Schema Architecture
In this architecture, schemas can be defined at the following three levels,
1. Internal or Physical level
2. Conceptual or Logical level
3. External or View level
……………
External External External External External
View View View View View
Conceptual level
DBA
Internal or Physical
level
3
Stored Database
Database Management System
1. Internal Level
It describes the physical storage structure of the database. The internal schema
uses a physical data model & describes the complete details of data storage & access
paths for the database.
2. Conceptual Level
It describes the structure of whole database for a community of users. It hides the
details of physical storage structures & concentrates on describing entities, data types,
relationships, user operations & constraints. There is only one conceptual schema per
database.
3. External Level
It includes a number of external schemas or user views. The user can be either an
application program or an end user. It describes the part of the database that a particular
user is interested in and hides the rest of the database from user.
Eg: In college database, the user group in the office views only the personal details of
student, where as accounts department views the fees details.
Data Independence
The capacity to change the schema at one level of database system with out
having to change the schema at the next higher level. The disjointing of data descriptions
from the application programs that uses the data is called Data Independence.
There are two types of data independence,
1. Physical Independence
The ability to modify the physical level without causing application programs to
be re-written. Changes in the physical files are induced to improve the performance of the
system for faster update & retrieval.
2. Logical Independence
The ability to modify the conceptual level without causing application program
to re-written. This is usually done when logical structure of database is altered.
Eg: Inserting one more column namely, contact_no to the CUSTOMER database should
not affect the external views.
Data Manipulation involves retrieval of existing data, insertion of new data & deletion
of data or modification of existing data.
Extraction of information from the database using DML operation is called a
Query.
Eg: SQL> SELECT * from STUDENT
WHERE Reg_no=12345;
The two types of DML statements are ,
1. High level or Non Procedural DML
In this, the user has to just indicate the data which has to be retrieval from the
database without bothering about the method or steps involved in retrieval process.
Database Users
Based on all the requirements & the important characteristics, database users can
be classified into the following types
Functions of DBA
i. He plans & creates databases.
ii. He manages database availability
iii. Manages storage based on design
iv. Manages physical and logical structure
v. Manages security
vi. Network Administration
5
Database Management System
vii. He takes Backups regularly & recovers the database, if it is accidentally erased.
viii. Tuning the performance of database.