DCIT55 (LEC) | Finals Flashcards
mechanisms for restoring a database quickly and accurately after loss or damage
database recovery
provide backup copies of portions of the entire database and you can use operating system commands, or SELECT . . . INTO SQL commands to perform backups
backup facilities
full backup of a database
cold backup
only a selected portion of the database is shut down from use
hot backup
maintain an audit trail of transactions and database changes
journalizing facilities
by which DBMS periodically suspends all processing and synchronizes its files and journals to establish a recovery point
checkpoint facility
all transactions in progress are completed, and the journal files are brought up to date
checkpoint facility
allows the DBMS to restore the database to a correct condition and restart processing transactions when a failure occurs and then resumes processing user questions
recovery manager
at least two database copies must be kept and updated simultaneously. When a media failure occurs, the processing is switched to a duplicate database copy
disk mirroring
a technique that involves reprocessing the day’s transactions (up to the point of failure) against the backup copy of the database
restore/rerun
a sequence of steps that constitute some well-defined business activity
business transaction
Normally, it requires several actions against the database
business transaction
When processing transactions, the DBMS must ensure that the transactions follow four well-accepted properties called the
ACID properties
The transaction cannot be subdivided, and hence, it must be processed in its entirety or not at al
atomic
Any database constraints that must be true before the transaction must also be true after the transaction
consistent
Changes to the database are not revealed to users until the transaction is committed
isolated
Changes are permanent
durable
The back out, or undo, of unwanted changes to the database
backward recovery/rollback
Used to reverse the changes made by transactions that have aborted, or terminated abnormally
backward recovery/rollback
A technique that starts with an earlier copy of the database
forward recovery/roll forward
it (the results of good transactions) quickly moves the database to a later state
after-images
➢ A transaction in progress that terminates abnormally.
➢ Human error, input of invalid data, hardware failure, and deadlock
➢ Recovery technique: rollback
aborted transactions
➢ When the error data have been processed, the database may be recovered in one of the following ways:
a. If the error is discovered soon enough, backward recovery may be used.
b. If only a few errors have occurred, a series of compensating transactions may be introduced through human intervention to correct the errors.
c. If the first two measures are not feasible, it may be necessary to restart from the most recent checkpoint before the error occurred, and subsequent transactions processed without the error.
➢ Recovery technique: rollback
incorrect data
➢ Some components fail, but the database is not damaged.
➢ Power loss, operator loss, loss of communications transmission and system software failure.
system failure