ORA-16038/ORA-00742: Log read detects lost write in thread

Source: Internet
Author: User

ORA-16038/ORA-00742: Log read detects lost write in thread
A friend encounters a "Write loss" error in the redo log of the Oracle database, causing the database to fail to be started.

The logs are as follows: redo log 5 cannot be archived and "Write loss" is detected ". Eventually, Oracle goes down.
Errors in file/u01/app/oracle/diag/rdbmsdbcontrol/GZDBCONTROL/trace/GZDBCONTROL_ora_32198.trc:
The ORA-16038: log 5 sequence #23 cannot be archived
ORA-00742: Log read detects lost write in thread % d sequence % d block % d
ORA-00312: online log 5 thread 1: '/u01/app/oracle/fast_recovery_area/GZDBCONTROL/onlinelog/o1_mf_5_d61ctj3y _. Log'
USER (ospid: 32198): terminating the instance due to error 16038
System state dump requested by (instance = 1, osid = 32198), summary = [abnormal instance termination].
System State dumped to trace file/u01/app/oracle/diag/rdbmsdbcontrol/GZDBCONTROL/trace/GZDBCONTROL_diag_32167_20161227110109.trc
Dumping diagnostic data in directory = [cdmp_20161227110109], requested by (instance = 1, osid = 32198), summary = [abnormal instance termination].

Cause:
These three cleanups may cause "Write loss": Operating System, storage system, and Oracle internal errors.

Solution:
Use dump to determine whether "Write loss" has actually occurred ".
SQL> alter system dump logfile '/u01/app/oracle/fast_recovery_area/GZDBCONTROL/onlinelog/o1_mf_5_d61ctj3y _. log' validate;

ERROR at line 1:
ORA-00742: Log read detects lost write in thread % d sequence % d block % d
ORA-00334: archived log:
'/U01/app/oracle/fast_recovery_area/GZDBCONTROL/onlinelog/o1_mf_5_d61ctj3y _. Log'

From the above dump results, it is confirmed that "Write loss" is cleared, and the problematic redo logfile is cleared to restore normal archiving.

SQL> alter database clear unarchived logfile group 5;

Follow these steps to enable the Oracle database of a friend.
Finally, do not forget to make a full backup.

Refer:
Database Crashe with ORA-16038/ORA-742 Errors (Document ID 2064718.1)
Http://docs.oracle.com/cd/E11882_01/server.112/e17766/e0.htm

Reprinted Please note:
Cross screw
QQ: 463725310
Site: www.dbhelp.net (for more updates, please visit)
Http://blog.chinaunix.net/uid/23284114.html
E-MAIL: houora # gmail.com (# Replace it @)

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.