Troubleshooting of corrupted logfile files (ORA-00327)

Source: Internet
Author: User

1, database log error ORA-00327, pay attention to the garbled here

  1. Errors in file/Oracle/app/oracle/diag/rdbms/tyolap/tyolap3/trace/tyolap3_lgwr_22388.trc:
  2. ORA-00327: Too Many I 31 (too M too <80> 3 ): <8c> <8d> WTI malong 102400 yundun 1048576
  3. ORA-00312: Memory <80> Memory I 31 memory M memory <80> 3: '+ DATA/tyolap/onlinelog/redo31a'
  4. Errors in file/oracle/app/oracle/diag/rdbms/tyolap/tyolap3/trace/tyolap3_lgwr_22388.trc:
  5. ORA-00321: Too Many I 31 (too M too <80> 3 ): <9f> o Lu Wu Yi Mei Yu I <99> n <98> Yu Mao ^
  6. ORA-00312: Memory <80> Memory I 31 memory M memory <80> 3: '+ DATA/tyolap/onlinelog/redo31a'

Check the error details. The redo file + DATA/tyolap/onlinelog/redo31a is damaged.

  1. [Oracle @ dtydb5 scripts] $ oerr ora 327
  2. 00327,000 00, "log % s of thread % s, physical size % s less than needed % s"
  3. // * Cause: A log file has shrunk insize. This is likely
  4. // To have been caused by operator or operating system error.
  5. // * Action: Restore the log file from backup. If backup isnot available,
  6. // Drop this log and re-create. If the database was shut down
  7. // Cleanly, no further action shocould be required; otherwise
  8. // Incomplete recovery may be required.
  9. [Oracle @ dtydb5 scripts] $ oerr ora 312
  10. 00312,000 00, "online log % s thread % s: '% S '"
  11. // * Cause: This message reports the filename for details of another message.
  12. // * Action: Other messages will accompany this message. See
  13. // Associated messages for the appropriate actionto take.
  14. [Oracle @ dtydb5 scripts] $ oerr ora 321
  15. 00321,000 00, "log % s of thread % s, cannot update log file header"
  16. // * Cause: Cannot write to the log file.
  17. // * Action: Restore the access to the file.

2. Check the trc file. The specific cause is not clear, but the log file is damaged.

DE: Problem Key 'ora 313 'was flood controlled (0x1) (no incident)
ORA-00313 :?????? 31 (???? 3 )?????
ORA-00313 :?????? 31 (???? 3 )?????
DDE rules only execution for: ORA 312
----- START Event Driven Actions Dump ----
---- END Event Driven Actions Dump ----
----- Start dde Actions Dump -----
Executing SYNC actions
----- Start dde Action: 'db _ STRUCTURE_INTEGRITY_CHECK '(Async )-----
DDE Action 'db _ STRUCTURE_INTEGRITY_CHECK 'was flood controlled
----- End dde Action: 'db _ STRUCTURE_INTEGRITY_CHECK '(flood controlled, 5 csec )-----
Executing ASYNC actions
----- End dde Actions Dump (total 0 csec )-----

3. Check the status of the redo file. The status is INVALID, the other is stale, and the system is still running normally.

  1. 31 3 575 2 536,870,912 YES ACTIVE
  2. 32 3 576 2 536,870,912 NOCURRENT
  3. GROUP # status type member is _
  4. -----------------------------------------------------------------------------
  5. 31 stale online + DATA/tyolap/onlinelog/redo31a NO
  6. ONLINE + DATA/tyolap/onlinelog/redo31b NO
  7. 32 invalid online + DATA/tyolap/onlinelog/redo32a NO
  8. ONLINE + DATA/tyolap/onlinelog/redo32b NO
  9. STATUS VARCHAR2 (7) Status of the log member:
  10. INVALID-File is inaccessible
  11. STALE-File's contents are incomplete
  12. DELETED-File isno longer used
  13. Null-File isin use

4. log files are damaged. The simplest way is to recreate the log files online.

  1. Sys @ TYOLAP3 (dtydb5)> alterdatabasedrop logfile member '+ DATA/tyolap/onlinelog/redo31a ';
  2. The database has been changed.
  3. Sys @ TYOLAP3 (dtydb5)> alterdatabaseadd logfile member '+ DATA/tyolap/onlinelog/redo31a 'togroup 31;
  4. The database has been changed.
  5. Sys @ TYOLAP3 (dtydb5)> alter system switch logfile;
  6. System Log Recovery
  7. GROUP # status type member is _
  8. -----------------------------------------------------------------------------
  9. 31 ONLINE + DATA/tyolap/onlinelog/redo31a NO
  10. ONLINE + DATA/tyolap/onlinelog/redo31b NO
  11. 32 ONLINE + DATA/tyolap/onlinelog/redo32a NO
  12. ONLINE + DATA/tyolap/onlinelog/redo32b NO

5. The system returns to normal, but the cause of Log File Corruption is not clear yet.

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.