<?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; 文件系统损坏oracle恢复</title>
	<atom:link href="https://www.xifenfei.com/tag/%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e6%8d%9f%e5%9d%8foracle%e6%81%a2%e5%a4%8d/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, 22 Oct 2026 15:45:06 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>文件系统损坏导致数据库异常故障处理</title>
		<link>https://www.xifenfei.com/2026/02/ntfs-bad-oracle-recovery.html</link>
		<comments>https://www.xifenfei.com/2026/02/ntfs-bad-oracle-recovery.html#comments</comments>
		<pubDate>Fri, 20 Feb 2026 14:31:53 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[非常规恢复]]></category>
		<category><![CDATA[ORA-01122 ORA-01110 ORA-01200]]></category>
		<category><![CDATA[ORA-01200]]></category>
		<category><![CDATA[文件系统损坏oracle恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=11994</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2026/02/ntfs-bad-oracle-recovery.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/2026/02/ntfs-bad-oracle-recovery.html" target="_blank">文件系统损坏导致数据库异常故障处理</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>有客户做了双机rose,由于某种故障导致共享存储在两个主机之间相互频繁挂载(甚至出现了同时挂载的情况),使得该文件系统发生损坏<br />
<img src="https://www.xifenfei.com/wp-content/uploads/2026/02/ntfs.png" alt="ntfs" width="979" height="449" class="alignleft size-full wp-image-12001" /><br />
<hr />
修复双机故障之后,数据库启动ORA-01122 ORA-01110 ORA-01200错误<br />
<img src="https://www.xifenfei.com/wp-content/uploads/2026/02/ora-1200.png" alt="ora-1200" width="850" height="236" class="alignleft size-full wp-image-11996" /><br />
<hr />
初步看这个报错，block差距有点大，文件头中记录为419840个block,现在实际有的block数量为384000,使用<a href="https://www.xifenfei.com/2025/11/obet.html" title="Oracle数据块编辑工具( Oracle Block Editor Tool)-obet" rel="noopener" target="_blank">obet</a>查看文件头记录block number情况</p>
<pre class="brush: bash; title: ; notranslate">
OBET&gt; p kcvfh.kcvfhhdr
File: E:\TEMP\20260219\SYSTEM01.DBF
Size: 8192 bytes
Block: 1
Offset: 20

struct kcvfhhdr, 76 bytes                   @20
   ub4 kccfhswv                            @20      0x00000000
   ub4 kccfhcvn                            @24      0x0B200400
   ub4 kccfhdbi                            @28      0x85D98FAB
   text kccfhdbn[8]                        @32-39   XXXX
   ub4 kccfhcsq                            @40      0x00091079
   ub4 kccfhfsz                            @44      0x00066800 &lt;&lt;--16转换为10进制为419840
   s_blkz kccfhbsz                         @48      0x00
   ub2 kccfhfno                            @52      0x0001
   ub2 kccfhtyp                            @54      0x0003
   ub4 kccfhacid                           @56      0x00000000
   ub4 kccfhcks                            @60      0x00000000
   text kccfhtag[32]                       @64-95

&lt;kcvfh.kcvfhhdr structure printed successfully&gt;
</pre>
<p>对于这种情况,以前有过很多次处理经验(一般办法2个:1>修改文件头的block数量记录;2>修改现在的文件大小和实际文件有匹配),以前类似的处理记录:<br />
 <a href="https://www.xifenfei.com/2013/05/bbed%e5%a4%84%e7%90%86ora-01200%e6%95%85%e9%9a%9c.html" title="bbed处理ORA-01200故障" rel="noopener" target="_blank">bbed处理ORA-01200故障</a><br />
<a href="https://www.xifenfei.com/2024/01/ora-01200-recovery.html" title="记录一次ORA-01200完美恢复" rel="noopener" target="_blank">记录一次ORA-01200完美恢复</a><br />
<a href="https://www.xifenfei.com/2023/07/ora-01122-ora-01200.html" title="ORA-01122 ORA-01200故障处理" rel="noopener" target="_blank">ORA-01122 ORA-01200故障处理</a><br />
处理完成system文件异常之后,sysaux文件继续异常</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; recover datafile 1;
完成介质恢复。
SQL&gt; recover datafile 2;
ORA-00283: 恢复会话因错误而取消
ORA-01110: 数据文件 2: 'Z:\APP\ADMINISTRATOR\ORADATA\XXXX\SYSAUX01.DBF'
ORA-01122: 数据库文件 2 验证失败
ORA-01110: 数据文件 2: 'Z:\APP\ADMINISTRATOR\ORADATA\XXXX\SYSAUX01.DBF'
ORA-01200: 149760 的实际文件大小小于 153600 块的正确大小
</pre>
<p>类似处理该故障之后,由于文件系统故障导致不少文件出现大量连续坏块（全0或者记录了其他文件内容的坏块）,这种是由于文件系统元数据异常导致,通过文件系统层面恢复继续无法正常处理,对于这样的情况,通过碎片扫描工具按照oracle block级别的文件重组(其实就是基于rdba信息进行重组),获取正确的数据块信息然后重新重组成数据文件<br />
<img src="https://www.xifenfei.com/wp-content/uploads/2026/02/QQ20260220-005159.png" alt="QQ20260220-005159" width="1115" height="422" class="alignleft size-full wp-image-11997" /><br />
<hr />
然后打开数据库,顺利导出数据,实现客户数据最大限度恢复</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/07/oracle-8-0-5-recovery-2025.html" rel="bookmark" class="crp_title">2025年的Oracle 8.0.5数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/01/ora-01200-recovery.html" rel="bookmark" class="crp_title">记录一次ORA-01200完美恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/07/ora-01122-ora-01200.html" rel="bookmark" class="crp_title">ORA-01122 ORA-01200故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/07/obet-2026-07.html" rel="bookmark" class="crp_title">Oracle Block Edit Tool (obet) 功能增强&#8211;2026.07</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/01/dd-asm-recovery.html" rel="bookmark" class="crp_title">在生产环境错误执行dd命令破坏asm磁盘故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/03/win-rm-datafile-recovery.html" rel="bookmark" class="crp_title">记录一次win删除数据文件完美恢复案例</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/04/orafhr-oracle-wman.html" rel="bookmark" class="crp_title">OraFHR快速open被勒索加密破坏的Oracle数据库</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/09/delete-df-some-overwrit-recovery.html" rel="bookmark" class="crp_title">删除数据库文件并部分覆盖情况下Oracle恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/07/oracle-23ai-bbed.html" rel="bookmark" class="crp_title">Oracle 23ai依旧支持bbed</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/08/%e5%9c%a8win-64%e4%bd%8d%e5%b9%b3%e5%8f%b0%e4%b8%8a%e8%bf%90%e8%a1%8cbbed%e6%94%af%e6%8c%81oracle-10g-11g-12c.html" rel="bookmark" class="crp_title">在win 64位平台上运行bbed(支持ORACLE 10g 11g 12c)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/03/oracle-rm-rf-recovery.html" rel="bookmark" class="crp_title">linux rm -rf 删除数据文件恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/04/air-db-recovery.html" rel="bookmark" class="crp_title">.[xueyuanjie@onionmail.org].AIR勒索加密数据库恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2026/02/ntfs-bad-oracle-recovery.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
