Introduction to the location of corrupted redo logs in Oracle databases

Source: Internet
Author: User

The following article describes how to determine the location and status of the damaged redo log of an Oracle database, I hope that you will read the following articles to help you learn about the location and status of damaged redo logs of Oracle databases.

1. If the database is available:

 
 
  1. select * from v$logfile;  
  2. svrmgrl>select * from v$log; 


2. If the Oracle database is terminated abnormally:

 
 
  1. svrmlgr>startup mount;  
  2. svrmgrl>select * from v$logfile;  
  3. svrmgrl>select * from v$log; 

Among them, the status of logfile is INVALID, indicating that this set of log files are damaged; the status of log is Inactive, indicating that the redo log files are Inactive; the status of Active indicates that the redo log files are Active; current: indicates that the redo log is a log file currently in use.

The corrupted log file is not activated:

1. Delete the corresponding log group:

 
 
  1. svrmgrl>alter database drop logfile group group_number; 

2. Recreate the corresponding log group:

 
 
  1. svrmgrl>alter database add log file group group_number 
    ’log_file_descritpion’,…) size log_file_size; 

The corrupted log file is active and non-current:

1. Clear the corresponding log group:

 
 
  1. svrmgrl>alter database clear unarchived logfile group group_number; 

The corrupted log file is the current active log file. Run the following command to clear the corresponding log group:

 
 
  1. svrmgrl>alter database clear unarchived logfile group group_number; 

If clearing fails, incomplete restoration based on time points is allowed. Open the Oracle database and back up the database in an appropriate way:

 
 
  1. svrmgrl>alter database open; 

The above content describes the location and status of the redo logs that are damaged to the Oracle database. We hope this will help you in this regard.

Article by: http://www.programbbs.com/doc/3406.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.