In: Computer Science
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.
Answer)
Database recovery is considered as a process meant for restoring the database for correcting the state in such an event for the failure that it would help in restoring the database to the most recent as well as consistent state which would have been existed much before the system failure would happen.
Some of the major techniques meant for recovery from that of the non-catastrophic transaction failure like the deferred update or the immediate update where the database would get updated with regards to some of the operations of the transaction much earlier than the transaction reaching a specific limit.
Some of the database recovery problems could be crash or the instance recovery to the transaction consistent state which would be before the instance failure and this is a single instance configuration that would recover the database.
The other kind of form is the log-based recovery which is the sequence of records where every transaction would be maintained with some specific stable storages where the failure might happen and would get recovered from. When there is an operation that gets performed on a specific database then it would be logged and recorded as well. This will be used to track the information.
It is appropriate to use before the failure instances to prevent any database crashes.
Please comment in case you need any other inputs.
Please share a like if you find the answer helpful.
Thank you.