100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

Advanced Databases - Exam style questions and answers

Rating
1.0
(1)
Sold
2
Pages
4
Uploaded on
26-11-2013
Written in
2012/2013

Final year - Advanced Databases Exam style practice questions and answers









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
November 26, 2013
Number of pages
4
Written in
2012/2013
Type
Other
Person
Unknown

Content preview

Advanced Databases B – Exam Practice Questions & Answers

Recovery

1. Describe the mechanisms that can be employed in database recovery in a multi-user
environment. Show how these mechanisms can be used to recover from the different
types of failure. Mention the following in your answer: (25 Marks)

 Commit and Rollback

Refers to the set of actions used to ensure that an application program either makes all
changes to the resources represented by a single unit recovery or recovery, or make no
changes at all.
The two phase commit protocol provides commit and roll back.
It verifies that either all changes or no changes are applied even if one of the elements
(like the application, system or resource manager) fails.
The protocol allows for restart and recovery processing to take place after system or
subsystem failure.

 Transaction Log file

A transaction log is a history of actions executed by a database management system to
guarantee (ACID) properties over crashes or failures.
If, after a start, the database is found in an inconsistent state or not been shutdown
properly, the database management system reviews the database logs for uncommitted
transactions and rolls back the changes made by these transactions.
All transactions that are already committed but whose changes were not materialized in
the database are re-applied, to ensure atomicity and durability of transactions.

 Before images and after images

When a transaction requires an update (change) to be carried out on the database,
Before images & After Images will be placed in transaction log file.
For example in the following salary increase takes place in an employee file:




The before image is a copy of a record as it exists in the database before it is updated, an
after image is the copy of the record taken immediately after it has been updated.




 Checkpoints
A marker is placed in the transaction log at a point when any outstanding updates in
Chandni Karia Page 1 of 4
£2.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
chandnikaria
1.0
(1)

Reviews from verified buyers

Showing all reviews
8 year ago

1.0

1 reviews

5
0
4
0
3
0
2
0
1
1
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
chandnikaria University of Hertfordshire (London)
View profile
Follow You need to be logged in order to follow users or courses
Sold
4
Member since
12 year
Number of followers
2
Documents
3
Last sold
6 year ago

1.0

1 reviews

5
0
4
0
3
0
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions