DMS Chapter5 Full
DMS Chapter5 Full
Presented By :
Mrs. Samidha Chavan
Lecturer -Department of Information Tech.
Vidyalankar Polytechnic, Wadala (Mumbai)
Unit 5 : Database Administration
1.Introduction to Database Administration :
1.Database Users
2.Create and delete users
3.Assign privileges
2.Transaction :
1.Concept
2.Properties and state of Transaction
3.Database Backup :
1.Types and Causes of Failure
2.Database backup introduction
3.types of database backups:Physical & Logical
Unit 5 : Database Administration
4.Data Recovery –
1. Recovery concepts
2. Recovery techniques -roll forward ,Rollback
Ans:
1. Hardware Failure/System crash:
There is a hardware malfunction that causes the loss of the content of volatile
storage, and it brings transaction processing to a halt. The content of non-
volatile storage remains intact and is not corrupted or changed.
2. Software Failure:
The database software or the operating system may be corrupted or fail to
work correctly, that may cause the loss of the content of volatile storage, and
results in database failure.
3. Media Failure:
A disk block loses its content as a result of either a head crash or failure during
a data transfer operation.
4. Network Failure:
A problem with network interface card or network connection and cause
network failure.
5. Transaction Failure
i) Logical error: the transaction can no longer continue with its normal
execution because of some internal condition, such as wrong input values,
data not found, data overflow or resource limit exceeded.
ii) System error: A system entered in state like deadlock
6. Application software Error:
The problem with software accessing the data from database. -This may
cause database failure as data cannot be updated using such application to
it. -Logical errors in the program cause one or more transaction failures.
7. Physical disaster
The problem was caused by floods, fire, earthquakes etc.
Q1. Explain Transaction Concept ?
Answer :
Transaction
• Transaction is logical units of work.
• It contains a group of tasks.
Operations of Transaction:
Read(X): Read operation is used to read the value of X from the
database and stores it in a buffer in main memory.
Write(X): Write operation is used to write the value back to the
database from the buffer.
For Example -
Transaction T1 : Transfer Rs.50 from account A to B
Q2. How to create and Drop Users?
Example:
If we want to create user named Ajay then following
command should be written:
Example
If user Ajay's schema contains no objects, then you can
drop Ajay’s by issuing the statement:
• The recovery system reads log files from the end to start. It reads log files
from T4 to T1.
• Recovery system maintains two lists, a redo-list, and an undo-list.
• transaction is committed after the checkpoint is crossed. Hence it puts T1,
T2 and T3 transaction into redo list.
• T4 will be put into undo list since this transaction is not yet complete and
failed.
Q7. Give difference between Rollback and Roll forward database
recovery Techniques.
Data Warehouse :
• Data warehousing can be defined as the process of data collection and storage
from various sources and managing it to provide valuable business insights.
• Extract, transform, and load (ETL) is the process of combining data from
multiple sources into a large, central repository called a data warehouse
Steps in Data Warehousing
1. Extraction of data - A large amount of data is gathered from various sources.
2. Transformation of data – It is cleansing of data .(The data is scanned for errors, and
any error found is either corrected or excluded. After being cleaned, the format is
changed from the database to a warehouse format.)
3. Loading data - Storing data in warehouse format.
DataMart :
• Data Mart is subset of Data warehouse .
• Data Mart is created for specific purpose as per business needs.
Data Warehouse Data Mart
It is enterprise wide and it has large Data Mart is department wise
storage capacity
It stores historical data and summarized It stores data about particular topic
data
Implementation is done within a year Implementation is done within a month
It is Flexible It is restrictive
Q9.Explain Data Lake ?
Data Lake :
• A data lake is a centralized repository designed to store, process, and secure large
amounts of structured, semi structured, and unstructured data.
• Data lakes can be used for big data analytics, machine learning, and other types
of intelligent action.
• Data lakes can be used for reporting and visualization.
• Data lakes can process data in real time or batch mode
Q10.Explain Data Mining ?
Data Mining :
• Data mining is the overall process of identifying patterns and extracting useful insights
from big data sets.
• This can be used to evaluate both structured and unstructured data
• It is commonly used to analyze consumer behaviors for marketing and sales teams.