Question

In: Computer Science

Database Design - Recovery Choose a database recovery problem and then propose a solution using the...

Database Design - Recovery

Choose a database recovery problem and then propose a solution using the techniques such as Log-based recovery, shallow paging, etc.

Briefly describe the technique, when it is appropriate to use and what recovery problem it solves.

Solutions

Expert Solution

Like any other computer system, databases are also subject to failures but the data stored in it must be available as and when required. It facilities for fast recovery. It also has the property of atomicity which means either transaction is completed successfully or the transaction should have no effect on the database.

Log-based recovery

Log-based recovery works as follows −

  • The log file is kept on a stable storage media.Log is used to maintain records of actions performed by a transaction. It contains information about the start and end of each transaction and also contains any updates which occur in the transaction.

  • When a transaction enters the system and starts execution, it writes a log about it.

<Tn, Start>
  • When the transaction modifies an item X, it writes logs as;

<Tn, A, B, C>

It reads Tn has changed the value of A, from B to C.

  • When the transaction finishes, it logs −
<Tn, commit>

The techniques used to recover the lost data due to system crash, transaction errors, viruses, catastrophic failure, incorrect commands execution, etc.


Related Solutions

Database Management Question: Choose a database recovery problem and then propose a solution using the techniques,...
Database Management Question: Choose a database recovery problem and then propose a solution using the techniques, such as log-based recovery or shadow paging, etc. Briefly describe the technique, when it is appropriate to use, and what recovery problem it solves.
please design a hybrid solution using different geodetic systems. and propose a new geodetic solution using...
please design a hybrid solution using different geodetic systems. and propose a new geodetic solution using space-born, air-born, terrestrial geodetic systems. It can be lloked like you propose a new geodetic system in the immenient future or in the 22nd century?
b. Propose a Disaster Recovery Plan (DRP) to the organization to eliminate the problem in the...
b. Propose a Disaster Recovery Plan (DRP) to the organization to eliminate the problem in the future. [25 marks] Guideline: Google search and download a business continuity plan or DR plan template. DR team, DR servers DR backup. Testing DR monthly. Plan A failure then failover to Plan B.
Describe a real world business problem and propose a solution or solutions to the problem by...
Describe a real world business problem and propose a solution or solutions to the problem by applying managerial economics concepts. Focus on a problem and its solutions. What will be the pros and cons of the solution or solutions.
Choose a clinical topic and design a search strategy for searching an online database such as...
Choose a clinical topic and design a search strategy for searching an online database such as CINAHL or MEDLINE. Reflect on your search strategy, for example, what search terms did you initially use, what new terms did you discover as you searched, how did you limit/refine your search?
Propose a policy (which means a political solution) to a given problem. The objective is to...
Propose a policy (which means a political solution) to a given problem. The objective is to convince readers that this prescribed policy provides the best political ideas and tools to tackle and solve the problem. *Use child violence as the topic* Include: -The title of the policy -The stake holders involved in this issue, including individuals, groups, institutions, government, etc. -Description of the proposed policy in detail. -List of steps for raising awareness -by your group- and mobilizing public to...
Database __________ which is the logical design of the database, and the database _______ which is...
Database __________ which is the logical design of the database, and the database _______ which is a snapshot of the data in the database at a given instant in time. a) Instance, Schema b) Relation, Schema c) Relation, Domain d) Schema, Instance
Explain the liquid junction potential in the electrochemical cells. Propose a suitable solution for this problem.
Explain the liquid junction potential in the electrochemical cells. Propose a suitable solution for this problem.
propose a solution to fix a current problem and a longer-term course of action to prevent...
propose a solution to fix a current problem and a longer-term course of action to prevent a long term problem in Nucor, innovation, And change the case. If there are no recognized issues, focus on the positives that make the organization work well.
propose a solution to fix a current problem and longer-term course of action to prevent a...
propose a solution to fix a current problem and longer-term course of action to prevent a longer term problem in the Lombardi leadership case study
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT