<?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-19821</title>
	<atom:link href="https://www.xifenfei.com/tag/ora-19821/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>Thu, 29 Oct 2026 15:31:46 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>ORA-19821故障分析</title>
		<link>https://www.xifenfei.com/2018/05/ora-19821.html</link>
		<comments>https://www.xifenfei.com/2018/05/ora-19821.html#comments</comments>
		<pubDate>Sun, 06 May 2018 23:41:02 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[ORA-xxxxx]]></category>
		<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[ORA-19821]]></category>
		<category><![CDATA[_DISABLE_LOGGING]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=7435</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2018/05/ora-19821.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/2018/05/ora-19821.html" target="_blank">ORA-19821故障分析</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p><strong>数据库报错</strong><br />
数据库启动报ORA-00283和ORA-19821错</p>
<pre class="brush: bash; title: ; notranslate">
SQL&gt; recover database;
ORA-00283: recovery session canceled due to errors
ORA-19821: an intentionally corrupt log file was found


SQL&gt; recover datafile 1;
ORA-00283: recovery session canceled due to errors
ORA-19821: an intentionally corrupt log file was found
</pre>
<pre class="brush: bash; title: ; notranslate">
Thu May 03 12:06:51 2018
Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0
  Mem# 0: D:\APP\SOHTDB\ORADATA\xifenfei\REDO01.LOG
Media Recovery failed with error 19821
Errors in file d:\app\sohtdb\diag\rdbms\xifenfei\xifenfei\trace\xifenfei_pr00_660.trc:
ORA-00283: recovery session canceled due to errors
ORA-19821: an intentionally corrupt log file was found
Slave exiting with ORA-283 exception
Errors in file d:\app\sohtdb\diag\rdbms\xifenfei\xifenfei\trace\xifenfei_pr00_660.trc:
ORA-00283: recovery session canceled due to errors
ORA-19821: an intentionally corrupt log file was found
ORA-283 signalled during: ALTER DATABASE RECOVER  database  ...
</pre>
<p><strong>ORA-19821报错原因</strong><br />
这个错误相对比较少见，查询mos，由于设置了_disable_logging = TRUE导致该问题<br />
<a href="//www.xifenfei.com/2018/05/ora-19821.html"><img src="//www.xifenfei.com/wp-content/uploads/2018/05/ORA-19821.jpg" alt="ORA-19821" width="903" height="625" class="alignleft size-full wp-image-7436" /></a><br />
<hr />
检查alert日志,_disable_logging参数确实被认为设置为true了.<br />
<a href="//www.xifenfei.com/2018/05/ora-19821.html"><img src="//www.xifenfei.com/wp-content/uploads/2018/05/disable_logging.jpg" alt="_disable_logging" width="542" height="427" class="alignleft size-full wp-image-7437" /></a><br />
<hr />
<strong>解决方法</strong><br />
根据官方的描述,这样的情况无法常规恢复,但是我们知道设置这个参数是为了不产生日志,因此出现这种情况,只能通过隐含参数,禁止数据库进行实例恢复,强制打开数据库.在这样的过程中非常容易遭遇类似<a href="//www.xifenfei.com/2016/08/ora-600-2662.html" title="ORA-600 2662">ORA-600 2662</a>的错误.<br />
<a href="//www.xifenfei.com/2018/05/ora-19821.html"><img src="//www.xifenfei.com/wp-content/uploads/2018/05/disable_logging_mos.jpg" alt="_disable_logging_mos" width="685" height="485" class="alignleft size-full wp-image-7438" /></a><br />
<hr />
设置这个参数是为了不产生日志，当数据库非干净关闭(主机断电，数据库crash，shutdown abort等）,就非常可能导致数据库无法正常启动.<strong>***千不可万不能在生产环境中设置_disable_logging = TRUE***</strong><br />
参考文档:Ora-19821 during the recovery (Doc ID 1217143.1)<br />
Init.ora Parameter &#8220;_DISABLE_LOGGING&#8221; [Hidden] Reference Note (Doc ID 29552.1)</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/11/file-system-corruption-oracle-recovery.html" rel="bookmark" class="crp_title">文件系统损坏导致数据文件异常恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/11/ora-00322-ora-00312.html" rel="bookmark" class="crp_title">ORA-00322 ORA-00312 恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/04/enq-hw-contention.html" rel="bookmark" class="crp_title">数据文件自扩展引起&#8212;enq: HW &#8211; contention</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/05/datafile-size-0k-recovery.html" rel="bookmark" class="crp_title">Oracle 数据文件大小为0kb或者文件丢失恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/04/alco-recovery.html" rel="bookmark" class="crp_title">.ALCO 比特币加密勒索恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/05/distributed-storage-ora-00354-ora-00353.html" rel="bookmark" class="crp_title">分布式存储故障导致数据库无法启动故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/08/asm-disk-size-limit.html" rel="bookmark" class="crp_title">asm disk 大小限制</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/10/gandcrab-v5-0-4-recovery.html" rel="bookmark" class="crp_title">GANDCRAB V5.0.4 比特币加密oracle数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/04/chak1-recovery.html" rel="bookmark" class="crp_title">.CHAK1 比特币加密勒索恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/10/restore-mis-operation-recovery.html" rel="bookmark" class="crp_title">restore database误操作恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/ora-01244ora-01110%e8%a7%a3%e5%86%b3.html" rel="bookmark" class="crp_title">ORA-01244/ORA-01110解决</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/02/gandcrab-oracle-recovery.html" rel="bookmark" class="crp_title">GANDCRAB升级版Oracle恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2018/05/ora-19821.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
