[Oracle Logfile recovery] archived and non-current Redo LogFile is damaged

Source: Internet
Author: User

Background:

Now, I want to practice Incremental backup of rman. The original test database is in non-archive mode.

After the shutdown instance is shut down, the open instance cannot start.

Sys @ Oracle10> alter database open;
Alter database open
*
ERROR at line 1:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/oracle10/redo01.log'

Here, we can see that the log file in log group 1 is damaged.

View v $ log view

Sys @ ORACLE10> select group #, sequence #, archived, status from v $ log;

GROUP # SEQUENCE # ARC STATUS
---------------------------------------
1 2 YES INACTIVE
3 1 YES INACTIVE
2 3 NO CURRENT

You can know that the reorganization is not in the current status and has been archived.

Use the clear command to recreate the log file

Sys @ ORACLE10> alter database clear logfile group 1;

Database altered.

If the log group is not archived, you must:

Alter database clear unarchived logfile group 1;

Open the database and back up the database again.

Sys @ ORACLE10> alter database open;

Database altered.

Related Article

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.