DBMS
DBMS
DBMS
It is a collection of information.
The facts that can be recorded and which have implicit meaning known as
'data'.
Information :
• It is the data that has been converted into more useful or intelligible
form
Eg: Report Card sheet
Why we need information
1. To gain knowledge about the surroundings
2. To keep the system upto date
3. To know about the rules and regulation of the
society
Knowledge
• Human mind purposefully organize the information
and evaluate it to produce knowledge
• Ex: 238 - data
Mark of student – Information
Hard work – Knowledge
Types :
1) Fact Based : The knowledge gain from fundamentals
and through experiment
2) Heuristic Based Knowledge: It is the knowledge of
good practice and good judgment like hypothesis.
Data Vs Information
S.N Data Information
o
1 Data is the Raw Fact It is the processed Form of Data
2 It is not significant to It is Significant to Business
Business
3 Are Atomic level It is a collection of data
piece of information
4 Data doesnot help in It helps in decision making
decision making
(web browser)
Old Modern
Database Management System
Internals
• Storage management
• Query processing
• Transaction processing
Storage Management
• 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 following
tasks:
– Interaction with the file manager
– Efficient storing, retrieving and updating of data
• Issues:
– Storage access
– File organization
– Indexing and hashing
Storage manager components
• Authorization and integrity manager- tests for the
satisfaction of integrity constraints and checks the
authority of users to access data.
• Transaction manager-ensures that the database
remains in a consistent (correct) state
• File manager- manages the allocation of space on
disk storage and the data structures used to represent
information stored on disk.
• Buffer manager-responsible for fetching data from
disk storage into main memory
– Deciding what data to cache in main memory.
Query Processing
1. Parsing and translation
2. Optimization
3. Evaluation
Query Processing (Cont.)
• Alternative ways of evaluating a given query
– Equivalent expressions
– Different algorithms for each operation
• Cost difference between a good and a bad way
of evaluating a query can be enormous
• Need to estimate the cost of operations
– Depends critically on statistical information about
relations which the database must maintain
– Need to estimate statistics for intermediate results to
compute cost of complex expressions
Query Processor Components
• DDL interpreter- interprets DDL statements
and records the definitions in the data
dictionary.
• DML compiler- translates DML statements in a
query language into an evaluation plan
consisting of low-level instructions that the
query evaluation engine understands.
• Query evaluation engine- executes low-level
instructions generated by the DML compiler
Transaction Management
• A transaction is a collection of operations that
performs a single logical function in a database
application
• Transaction-management component ensures that
the database remains in a consistent (correct) state
despite system failures (e.g., power failures and
operating system crashes) and transaction failures.
• Concurrency-control manager controls the
interaction among the concurrent transactions, to
ensure the consistency of the database.
• Transaction manager consists of the concurrency-
control manager and the recovery manager.
Database Architecture