CHAPTER 1-Introduction To DBMS - Final
CHAPTER 1-Introduction To DBMS - Final
• Redundancy problem
-Repetitive data
• Data-inconsistency problem
-Incorrectness of data
• Lack of data integration
- Complex and time consuming
What is a Database?
• Database is a collection of interrelated data
• Database is a shared, integrated computer structure that stores:
End- user data:
-raw facts of interest to the end-user
Meta data:
-through which the end-user data are integrated & managed.
-The metadata provides a description of the data characteristics and
the set of relationships that link the data found within the database.
• Database is an organized collection of data of an organization or
enterprise.
What is a DBMS?
• DBMS (Database Management System)
• It is a collection of programs that manages structure & controls
access to the data stored in the database.
• It includes tools to add, modify or delete data from the database,
ask questions (or queries) about the data stored in the database
and produce reports.
• DBMS serves as the intermediary between the user & the
database.
Types of Database
* Depending on the number of users accessing the database:
1. Single-user database system:
• It supports only one user at a time.
• When a single-user database runs on a personal computer, it
is also called a desktop database system.
2. Multi-user database system:
• It supports multiple users at the same time.
• When a multi-user database supports relatively small
number of users, it is called as a workgroup database
system.
• If the database is used by many users across globe, it is
known as enterprise database system .
Types of Database
RDBMS supports
DBMS does not support distributed database.
RDBMS stores data in distributed database.
DBMS stores data as file.
tabular form.
It deals with large
It deals with small quantity of data.
amount of data.
Multiple data elements
Data elements need to
can be accessed at the Keys and indexes do not
access individually. Data redundancy is common in this model.
same time. allow Data redundancy.
It supports multiple
It supports single user.
users.
Examples: MySQL,
Examples: XML, Window Registry, Forxpro, PostgreSQL, SQL Server,
dbaseIIIplus etc. Oracle, Microsoft
Access etc.
Data Model
• Data model is a collection of conceptual tools for
describing data, data relationships, data
semantics and consistency constraints.
• That means a data model provides a way to
describe the design of a database.
• It is relatively simple representation, usually
graphical, of complex real-world data structures.
• Data modeling is considered as the most
important part of the database design process.
Basic Building Blocks of Data Model
Entity
• An entity is anything about which data are to be collected and
stored.
• An entity represents a particular type of object in the real world.
Entity Set
• Set of entities of the same type that share the same properties are
called as entity sets.
Attribute
• An attribute is a characteristic of an entity.
Constraints
• A constraint is a restriction placed on the data.
• Constraints are important because they help to ensure data integrity.
Relationship
Basic Building Blocks of Data Model
Different types of relationship are:
• One-to-One (1:1) Relationship:
2. External/Conceptual Mapping
• It defines the correspondence between a
particular external view and the conceptual view.
• Logical Data Independence indicates that the
conceptual schema can be changed without
affecting the existing external schemas.
Types of Database Users
1. Naive Users
• They are the normal or unsophisticated users who
interact with the system by invoking application
programs that have been written previously.
• The typical user interface for naive users is a form
interface, where the user can fill in appropriate fields of
the form.
2. Application Programmers
• They are computer professionals who write application
programs to access data from the database.
• Application programmers can use different tools to
develop user interfaces
Types of Database Users
3. Sophisticated Users
• They interact with the system without creating any
application program.
• Rather, they form their requests in a database query
language and submit each such query to a query
processor.
• Analysts who submit queries to explore data in the
database fall in this category
4. Specialized Users
• They are sophisticated users who write specialized
database applications that don’t fit into the
Roles of a Database Administrator(DBA)
• The person who has central control of the whole
database system is called DBA.
• The DBA coordinates all the activities of the database
system.
The roles of DBA are:
• DBA creates the original database schema by
executing a set of DDL statements
• DBA defines and controls the access methods for the
different users
• DBA carries out changes to the schema and physical
organization to reflect the changing needs of the
Roles of a Database Administrator(DBA)
The roles of DBA are:
• By granting different types of authorization, DBA can
regulate which parts of the database various users can
access
• DBA specifies the different types of constraints to
different tables or objects
• DBA is responsible for the periodically backing up the
database
• DBA ensures that enough free disk space is available for
normal operations and upgrading disk space as required
• DBA monitors the jobs running on the database and
ensures that the performance is not degraded by very
Database Architecture
Components of Database
The functional components of a database system can
be broadly divided into:
• The storage manager is important because
databases typically require a large amount of storage
space
• The query processor is important because it helps
the database system simplify and facilitate access to
data
• The overall computer system consists of four
modules as:
-Hardware, Operating system, File management
Storage Manager
• A storage manager is a program module that provides the
interface between the low-level data stored in the
database and the application programs and queries
submitted to the system.
• The storage manager is responsible for the interaction
with the file manager.
• Storage manager is responsible for storing, retrieving and
updating data in the database
The storage manager components include:
1. Authorization and Integrity Manager:
• This module tests for the satisfaction of integrity
constraints and checks the authority of users to access
Storage Manager
2. Transaction Manager:
• Transaction manager ensures that the database remains in a
consistent (correct) state despite system failures and
concurrent transaction executions proceed without
conflicting
3. File Manager:
• This module manages the allocation of space on disk storage
and data structures used to represent information stored on
the disk.
4. Buffer Manager:
• Buffer manager is responsible for fetching data from the disk
storage into main memory.
• The buffer manager is a critical part of the database system
Storage Manager
The storage manager implements data structures as part of
the physical system implementations:
• Data files: These are files in the physical memory used to
store the database itself
• Data Dictionary: Data dictionary stores the metadata
(data about data) that provides the information about the
definitions of the data items and their relationships,
authorizations, and usage statistics.
-In addition, any changes made to the physical structure
of the database are automatically recorded in the data
dictionary
• Indices: Indices are used to provide faster access to data
Query Processor
• The work of query processor is to execute the query
successfully
• The major components of query processor include:
1. DDL Interpreter: This is the interpreter used to interpret DDL
statements and records the definitions in the data dictionary
2. DML Compiler: DML compiler translates the DML statements
in a query language into an evaluation plan consisting of low-
level instructions that the query evaluation engine
understands.
- When a user wants to perform a DML operation, the data
dictionary has to be checked for the validation purpose
3. Query Evaluation Engine: This module executes the low-level
instructions generated by the DML compiler
MCQ
Which is not TRUE?
I. Storage manager is required for DBMS.
II.Query processor is required for DBMS.
III. Data dictionary is a part of query evaluation engine.
IV. Authorization and integrity manager is essential for
DBMS.
A. I
B. II
C. III
D. IV
Application Architecture used for database