100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Advanced Databases - Exam style questions and answers £2.99   Add to cart

Other

Advanced Databases - Exam style questions and answers

1 review
 3427 views  2 purchases

Final year - Advanced Databases Exam style practice questions and answers

Preview 1 out of 4  pages

  • November 26, 2013
  • 4
  • 2012/2013
  • Other
  • Unknown
All documents for this subject (1)

1  review

review-writer-avatar

By: abdulhasnath • 7 year ago

avatar-seller
chandnikaria
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller chandnikaria. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for £2.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

72042 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy revision notes and other study material for 14 years now

Start selling
£2.99  2x  sold
  • (1)
  Add to cart