Professional Documents
Culture Documents
INSTITUTE
Name: Catalan, Gabriele Angela L. OF COMPUTER STUDIES
SECTION: BSAIT 3-1
MODULE 8 SELF-CHECK
1. Explain the following statement: a transaction is a logical unit of work.
All data integrity constraints must be met for the database to be consistent. A
transaction must move the database from one consistent state to another to establish
database consistency. Accepting an incomplete transaction will result in a database
state that is inconsistent. To avoid this, the database management system ensures that
all database activities associated with a transaction are completed before the
transaction is committed to the database.
INSTITUTE
c. Isolation - Isolation meansOF COMPUTER
multiple STUDIES
transaction occurs parallelly without
interfering each other.
As the name implies, the Transaction Log keeps track of all transactions as well as
database changes that occur each day. Because it restores database consistency in the
event of a system failure, it is one of the most important elements in a database. Unless
you are completely certain of the consequences, you should never delete or move your
transaction log.
INSTITUTE Replication
d. Supporting Transactional OF COMPUTER STUDIES
- Transaction log of every database is
monitored by a Log Reader Agent for purpose of transactional replication.
5. Suppose your database system has failed. Describe the database recovery process and
the use of deferred-write and write-through techniques.
Deferred-Write - The transaction does not immediate update database, instead, only
update log file. Then when transaction reach commit point, it will update the physical
database.
Write-Through - The database is update right away during the transaction execution.
Restore - a datafile or control file from backup is to retrieve the file onto disk from a
backup location on tape, disk, or other media, and make it available to the database
server.
Database Recovery
• There are many situations in which a transaction may not reach a commit or
abort point.
• In any of these situations, data in the database may become inconsistent or lost.