DBMS NOTES
DBMS NOTES
DBMS NOTES
What is a Database?
A database is a collection of related data which represents some aspect of the
real world. A database system is designed to be built and populated with data
for a certain task.
What is DBMS?
Database Management System (DBMS) is a software for storing and retrieving
users’ data while considering appropriate security measures. It consists of a
group of programs which manipulate the database. The DBMS accepts the
request for data from an application and instructs the operating system to
provide the specific data. In large systems, a DBMS helps users and other third-
party software to store and retrieve data.
DBMS allows users to create their own databases as per their requirement. The
term “DBMS” includes the user of the database and other application programs.
It provides an interface between the data and the software application.
Hierarchical database
Network database
Relational database
Object-Oriented database
Hierarchical DBMS
In a Hierarchical database, model data is organized in a tree-like structure. Data
is Stored Hierarchically (top down or bottom up) format. Data is represented
using a parent-child relationship. In Hierarchical DBMS parent may have many
children, but children have only one parent.
Network Model
The network database model allows each child to have multiple parents. It
helps you to address the need to model more complex relationships like as the
orders/parts many-to-many relationship. In this model, entities are organized in
a graph which can be accessed through several paths.
Relational Model
Relational DBMS is the most widely used DBMS model because it is one of the
easiest. This model is based on normalizing data in the rows and columns of the
tables. Relational model stored in fixed structures and manipulated using SQL.
Object-Oriented Model
In Object-oriented Model data stored in the form of objects. The structure which
is called classes which display data within it. It is one of the components of
DBMS that defines a database as a collection of objects which stores both data
members values and operations.
Advantages of DBMS
DBMS offers a variety of techniques to store & retrieve data
DBMS serves as an efficient handler to balance the needs of multiple
applications using the same data
Uniform administration procedures for data
Application programmers never exposed to details of data representation
and storage.
A DBMS uses various powerful functions to store and retrieve data
efficiently.
Offers Data Integrity and Security
The DBMS implies integrity constraints to get a high level of protection
against prohibited access to data.
A DBMS schedules concurrent access to the data in such a manner that
only one user can access the same data at a time
Reduced Application Development Time
Disadvantage of DBMS
DBMS may offer plenty of advantages but, it has certain flaws-
Not recommended when you do not have the budget or the expertise to operate
a DBMS. In such cases, Excel/CSV/Flat Files could do just fine.
What is a DBA?
Short for database administrator, a DBA designs, implements,
administers, and monitors data management systems and
ensures design, consistency, quality, and security.
The day-to-day activities that a DBA performs as outlined
in ITIL® Service Operation include:
Data control language (DCL) controls access to the data that users store within
a database. Essentially, this language controls the rights and permissions of the
database system. It allows users to grant or revoke privileges to the database.
Here's a list of DCL statements:
Subschema
Data Abstraction
Data Abstraction refers to the process of hiding irrelevant
details from the user. So, what is the meaning of irrelevant
details
1. View Level
2. Conceptual Level
3. Physical Level
Refrential Integrity