DBMS Basic Concepts
DBMS Basic Concepts
Concepts
DBMS
• Database Management System
• Term Database requires understanding of
data and information
• Data: It can be anything like name, place or
number, etc. Data usually refers to raw data, or
unprocessed data.
Data does not help in decision making Information helps in decision making
Database
• A database is a shared collection of logically
related data designed to meet the
information needs of an organization
• The related information when placed is an
organized form makes a database.
• The organization of data/information is
necessary because unorganized information
has no meaning.
Difference between Data &
Database
• Video is a data but youtube is a database.
• Image is a data but Instagram is an example
of database.
• Song is a data but Song.pk is an example of
database.
Purpose of DBMS
An example
•University Database:
Data about students, faculty, courses, research-
laboratories, course registration/enrollment etc.
Reflects the state of affairs of the academic
aspects of the university.
Purpose: To keep an accurate track of the
academic activities of the university.
Purpose of DBMS
Before DBMSs were introduced, organizations
usually stored information in file processing
system which has a number of disadvantages:
•Data redundancy and inconsistency
•Difficulty in accessing data
•Data isolation
•Integrity problems
•Atomicity problems
•Concurrent-access anomalies
•Security problems
Database Management System
• DBMS A database management system is the
software system that allows users to define,
create and maintain a database and provides
controlled access to the data.
• Examples:-Flipkart,Amazon,IRCTC,Facebook
etc.
• A database management system (DBMS) is
basically a collection of programs that enables
users to store, modify, and extract
information from a database as per the
requirements.
Common Operations performed on
databases
• To add new information(Insertion)
• To view or retrieve the stored
information(Retrievel)
• To modify or edit the existing(Updation)
• To remove or delete the unwanted
information(Deletion)
• Arranging the information in a desired order
etc.(Sort)
Components of Database
• Five major components in database system
environment:
– Hardware
– Software
– Data
– Users
– Procedures
Components of Database System
• Hardware: It is the actual computer system used for
keeping and accessing the database. DBMS hardware
consists of secondary storage devices like hard disks.
• Software: It is the actual DBMS. Between the physical
database itself and the users of system .
• All the requests from users for access to database are
handled by DBMS.
• This is the program which controls everything. The
DBMS software is more like a wrapper around the
physical database, which provides us with an easy-to-
use interface to store, access and update data.
Components of Database System
• Users: There are number of users who can
access or retrieve data on demand using the
applications and the interfaces provided by
DBMS. The users can be:
• Data base Administrator(DBA) (having all access
permissions)
• Application Programmers
• End Users: These are divided into:
– Naïve End User (user of ATM)
– Sophisticated user
Components of Database System
• Procedures: It refers to the instructions and rules that
govern the design and the use of the database.
• Example-Log on to the DBMS. Start and stop DBMS system.
Make backup copies of database. Handle h/w and s/w
failures.
Components :
• DDL Interpreter
• DML Compiler
• Query Evalualion Engine
Types of Database System
• On the Basis of Number of users
• On the basis of site Location
On the basis of Number of users
• Single user DBMS
In single user system the database resides on
one computer and is only accessed by one
user at a time. This one user may design,
maintain and write database programs.
• Multi user DBMS
Data is shared and integrated.Example-
Account dept.and Library dept. may need
student addresses.
On the Basis of Site Location
• Centralized System-Consists of single CPU
• Parallel System-Consists of multiple CPUs
• Distributed System-Physically distributed over
a computer network
• Client –Server system
Database Architecture
Two-tier and three-tier architecture
Two-tier architecture
• It is client-server architecture
• Direct communication
• Run faster(tight coupled)
• Two parts:
1) Client Application (Client Tier)
2) Database (Data Tier)
• On client application side the code is written for
saving the data in the SQL server database
Advantages:
Disadvantages: