<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>惜分飞 &#187; ORA-00742 bug</title>
	<atom:link href="https://www.xifenfei.com/tag/ora-00742-bug/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Sun, 22 Nov 2026 15:21:14 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>ORA-742 写丢失常见bug记录</title>
		<link>https://www.xifenfei.com/2025/01/ora-742-bug.html</link>
		<comments>https://www.xifenfei.com/2025/01/ora-742-bug.html#comments</comments>
		<pubDate>Thu, 23 Jan 2025 03:04:01 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[ORA-00742]]></category>
		<category><![CDATA[ORA-00742 bug]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=11164</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2025/01/ora-742-bug.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2025/01/ora-742-bug.html" target="_blank">ORA-742 写丢失常见bug记录</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>我们经常会遇到数据库异常down,然后启动的时候报ORA-00742错误,一般是在recover或者open的过程中遇到</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; RECOVER DATABASE;
ORA-00283: 恢复会话因错误而取消
ORA-00742: 日志读取在线程 1 序列 2097 块 296728 中检测到写入丢失情况
ORA-00312: 联机日志 3 线程 1: 'D:\APP\ADMINISTRATOR\ORADATA\HIS\REDO03.LOG'
</pre>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; recover database;
Media recovery complete.

SQL&gt; alter database open;
alter database open
*
ERROR at line 1:
ORA-00742: Log read detects lost write in thread %d sequence %d block %d
ORA-00312: online log 3 thread 1: '/oradata/shrdh/redo03.log'
</pre>
<p>关于该错误,Oracle官方解释：由于操作系统或者存储或者Oracle导致redo发生写丢失</p>
<pre class="brush: bash; title: ; notranslate">
[oracle@www.xifenfei.com:/home/oracle]$ oerr ora 742
00742, 00000, &quot;Log read detects lost write in thread %s sequence %s block %s&quot;
// *Cause:  Either a write issued by Oracle was lost by the underlying
//          operating system or storage system or an Oracle internal error
//          occurred.
// *Action: The trace file shows the lost write location. Dump the problematic
//          log file to see whether it is a real lost write. Contact Oracle
//          Support Services.
</pre>
<p>Oracle官方关于ORA-00742的主要bug有:<br />
<img class="alignleft size-full wp-image-11165" src="https://www.xifenfei.com/wp-content/uploads/2025/01/ORA-742-BUG-1.png" alt="ORA-742-BUG-1" width="940" height="204" /><br />
<img class="alignleft size-full wp-image-11166" src="https://www.xifenfei.com/wp-content/uploads/2025/01/ORA-742-BUG-2.png" alt="ORA-742-BUG-2" width="1134" height="163" /><br />
由于redo写丢失已经发生,一般发生这种情况,有备份使用备份进行不完全恢复,没有备份考虑强制拉库,如果是dg库问题,可以考虑从主库把日志重新传过去</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/02/ora-00742-ora-00312-recovery.html" rel="bookmark" class="crp_title">ORA-00742 ORA-00312故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/04/ora-742-ora-312-recovery.html" rel="bookmark" class="crp_title">ORA-00742 ORA-00312 恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/01/ora-600-kcrf_resilver_log_1.html" rel="bookmark" class="crp_title">ORA-600 kcrf_resilver_log_1故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/06/automatic-datafile-offline.html" rel="bookmark" class="crp_title">Automatic datafile offline due to write error on</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/12/bootstrap-tool-recovery-ora-702.html" rel="bookmark" class="crp_title">一键恢复ORA-00704 ORA-00702故障&#8212;202512</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/09/ora-600-krsm_mrp_rebuild_lf_list-lno_mismatch.html" rel="bookmark" class="crp_title">ORA-600 krsm_mrp_rebuild_lf_list.lno_mismatch</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/01/19c-noarchive-ora-00742-recovery.html" rel="bookmark" class="crp_title">19c非归档数据库断电导致ORA-00742故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/05/ora-600-2662-202605.html" rel="bookmark" class="crp_title">一次断电引起的Oracle故障恢复-ora-600 2662故障</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/07/ora-01122-ora-01208.html" rel="bookmark" class="crp_title">ORA-01122 ORA-01208 故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/03/ora-600-kcratr_scan_lastbwr.html" rel="bookmark" class="crp_title">ORA-600 kcratr_scan_lastbwr 恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/07/ora-00314-ora-00312-recovery.html" rel="bookmark" class="crp_title">ORA-00314: log 3 of thread 1, expected sequence# N doesn&#8217;t match 0</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/05/%e6%b7%b1%e5%85%a5%e5%88%86%e6%9e%90%e4%b8%80%e6%ac%a1ora-00314%e9%94%99%e8%af%af.html" rel="bookmark" class="crp_title">深入分析一次ORA-00314错误</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2025/01/ora-742-bug.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
