Redo log file recovery scenarios

What is an Online Redo Log File

The most crucial structure for recovery operations is the Online redo log file, which consists of two or more preallocated files that store all changes made to the database as they occur. Every instance of an OracleDatabase has an associated redo log to protect the database in case of an instance failure.

In most cases, an online redo log file will exist in any of the following states

  1. current -> log writer pointing to the log file.
  2. Active -> an online redo log file which is needed for recovery, or redo log file with data not written to archive log
  3. inactive -> an online redo log file which is not needed for recovery

So, we will discuss the steps to perform to recover online redo log file which is lost with any of the above states.

Check the current logfiles in  a database using  v$logfile

How to add a logfile member to a group

How to drop a logfile member from a group

How to drop a logfile group

How to add a logfile group

How to recover loss of Member of the Inactive Redo Log group

How to recover loss of Member of the Current redo log group

Step 1: get the last archive log number generated and execute the below command

Here, 16 is the archive log number.

Summary

[table id=2 /]

 

Words from dbapath

Thank you for giving your valuable time to read the above information. I hope the content served your purpose in reaching out the blog.
Suggestions for improvement of the blog are highly appreciable. Please contact us for any information/suggestion/feedback.

If you want to be updated with all our articles

please follow us on Facebook | Twitter
Please subscribe to our newsletter.