Sei sulla pagina 1di 12

DATABASE RECOVERY

SYSTEM

Presented by,
Naga mahesh
Nupur Roy
Md Mojahid Islam
Mukesh Narayn
Nithin Joseph
DATA BASE RECOVERY SYSTEM
•The recovery system is an integral part of the database
system.

•System crash due to hardware failure r software errors r


logical errors in the program that is accessing the database.

•Theno. of recovery techniques depends on the atomicity


property of transactions.
Transaction: A single unit of work in which all
operations must b applied and completed to
produce a consistent database.

The database recovery process generally follows


a predictable scenario.

Itfirst determines the type and extent of the


required recovery.
If the entire database need to be recovered to a consistent
state the recovery uses the most recent backup copy of the
database is known as consistent state.

The backup copy is then rolled forward to restore all


subsequent transactions by using the transaction log
information.

Ifthe database needs to be recovered but the committed


portion of the database is still unstable , the recovery
process uses the transaction log to undo all the
transactions that were not committed.
Some DBMS s provide functions that
allows the DBA to schedule automatic
database backups to secondary storage
devices like disks,cds,tapes….
Levels of database backup:
A full backup r dump of the database.
Only the last modifications done to the
DB.
A backup of transaction log only
Failures of database
There are many types of failures that can affect database processing. Some failures
affect the main memory only, while other involve secondary storage. Following are the
types of failure:

 Hardware failures

 Software failures

 Network failures

 Media failures

 Application software errors

 Natural physical disasters

 Carelessness

 Sabotage
Types of Data Base Recovery

There are two types data base recovery used

•Forward Recovery

•Backward Recovery
Forward ward Recovery (or Redo)
It is also known as Roll Forward, when the any type
of physical damage in that situation Forward
Recovery procedure is used.
Ex;
• Crash of disk pack during writing of data to data
base.
• Or failure during flushing buffers to secondary
storage.
The data base buffers occupy an area in
the main memory. The flushing operation
can be triggered by the commit operation
of the transaction or automatically in the
event of buffers becoming full.
Recovery manager redo so that transaction’s
updates to the data base. The redoing of
transaction updates is called Forward
Recovery or Roll Forward.

So, to create the lost disk due to these reason, the


system begins reading the most recent copy of the
lost data and the transaction log of the changes to it.
Continue …………..
entries from the first one that was recoded
after the copy of data base.
In this way the transaction executed by
performing in the log entries.
That is brings the lost data base copy up to the
level.
Media Recovery
Media recovery based on storing of data when there is a
head crash on the disk.
Media recovery is based on periodically making a copy of
the data base.
In simplest form of media recovery, before system start up,
the bulk copy is performed for all disks being run on
transactional system.
When the system is corrupted or lost , the system replaced
with back up disk and normal recovery process is performed.
ROLL BACK

ROLL FORWARD.

Potrebbero piacerti anche