<?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; bootstrap$损坏</title>
	<atom:link href="https://www.xifenfei.com/tag/bootstrap%e6%8d%9f%e5%9d%8f/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>Sat, 07 Nov 2026 15:45:44 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>恶意删除bootstrap$导致数据库无法正常启动</title>
		<link>https://www.xifenfei.com/2018/05/willfully-delete-bootstrap.html</link>
		<comments>https://www.xifenfei.com/2018/05/willfully-delete-bootstrap.html#comments</comments>
		<pubDate>Sat, 19 May 2018 09:53:16 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[非常规恢复]]></category>
		<category><![CDATA[bootstrap$]]></category>
		<category><![CDATA[bootstrap$损坏]]></category>
		<category><![CDATA[ORA-00702]]></category>
		<category><![CDATA[ORA-00704]]></category>
		<category><![CDATA[ORA-00704 ORA-00702]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=7452</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2018/05/willfully-delete-bootstrap.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/willfully-delete-bootstrap.html" target="_blank">恶意删除bootstrap$导致数据库无法正常启动</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>有客户10.2.0.5的数据库关闭之后,无法正常启动报ORA-00704 ORA-00702错误.使用自研的ORA-702_Recovery Tool小工具可以实现一键恢复,下载地址：<a href="https://www.xifenfei.com/wp-content/uploads/recover_check/ORA-702_Recovery.zip">ORA-702_Recovery下载</a></p>
<pre class="brush: bash; title: ; notranslate">
Fri May 18 22:42:26  2018
ALTER DATABASE OPEN
Fri May 18 22:42:27  2018
Beginning crash recovery of 1 threads
 parallel recovery started with 7 processes
Fri May 18 22:42:27  2018
Started redo scan
Fri May 18 22:42:27  2018
Completed redo scan
 1 redo blocks read, 0 data blocks need recovery
Fri May 18 22:42:27  2018
Started redo application at
 Thread 1: logseq 2, block 2, scn 8448162573
Fri May 18 22:42:27  2018
Recovery of Online Redo Log: Thread 1 Group 2 Seq 2 Reading mem 0
  Mem# 0: D:\DATABASE\xifenfei\REDO02.LOG
Fri May 18 22:42:27  2018
Completed redo application
Fri May 18 22:42:27  2018
Completed crash recovery at
 Thread 1: logseq 2, block 3, scn 8448182575
 0 data blocks read, 0 data blocks written, 1 redo blocks read
Fri May 18 22:42:28  2018
LGWR: STARTING ARCH PROCESSES
ARC0 started with pid=23, OS id=3188
ARC1 started with pid=24, OS id=3168
ARC2 started with pid=25, OS id=996
ARC3 started with pid=26, OS id=432
ARC4 started with pid=27, OS id=3728
Fri May 18 22:42:28  2018
ARC0: Archival started
ARC1: Archival started
ARC5 started with pid=28, OS id=2876
Fri May 18 22:42:28  2018
ARC2: Archival started
ARC3: Archival started
ARC4: Archival started
ARC5: Archival started
LGWR: STARTING ARCH PROCESSES COMPLETE
Fri May 18 22:42:28  2018
Thread 1 advanced to log sequence 3 (thread open)
Thread 1 opened at log sequence 3
  Current log# 3 seq# 3 mem# 0: D:\DATABASE\xifenfei\REDO03.LOG
Successful open of redo thread 1
Fri May 18 22:42:28  2018
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Fri May 18 22:42:28  2018
ARC0: Becoming the 'no FAL' ARCH
ARC0: Becoming the 'no SRL' ARCH
Fri May 18 22:42:28  2018
ARC2: Becoming the heartbeat ARCH
Fri May 18 22:42:28  2018
SMON: enabling cache recovery
Fri May 18 22:42:28  2018
Errors in file d:\oracle\product\10.2.0\admin\xifenfei\udump\xifenfei_ora_3148.trc:
ORA-00704: 引导程序进程失败
ORA-00702: 引导程序版本 '' 与版本 '8.0.0.0.0' 不一致

Fri May 18 22:42:28  2018
Error 704 happened during db open, shutting down database
USER: terminating instance due to error 704
Instance terminated by USER, pid = 3148
ORA-1092 signalled during: ALTER DATABASE OPEN...
</pre>
<p>根据以前恢复经验<a href="//www.xifenfei.com/2018/04/ora-00704-ora-00702.html" title="ORA-00702: bootstrap verison ” inconsistent with version ’8.0.0.0.0′" target="_blank">ORA-00702: bootstrap verison ” inconsistent with version ’8.0.0.0.0′</a>,很可能是由于bootstrap$表异常了.<br />
<strong>通过dbv检查system文件确认没有坏块</strong><br />
<a href="//www.xifenfei.com/?p=7452"><img src="//www.xifenfei.com/wp-content/uploads/2018/05/dbv-system.png" alt="dbv-system" width="723" height="413" class="alignleft size-full wp-image-7455" /></a><br />
<hr />
<strong>通过bbed分析,确认记录被删除</strong><br />
把数据文件拷贝到本地,通过bbed进行分析,确认记录丢失</p>
<pre class="brush: bash; title: ; notranslate">
BBED&gt; map
 File: d:/system01.dbf (0)
 Block: 379                                   Dba:0x00000000
------------------------------------------------------------
 KTB Data Block (Table/Cluster)

 struct kcbh, 20 bytes                      @0

 struct ktbbh, 48 bytes                     @20

 struct kdbh, 14 bytes                      @68

 struct kdbt[1], 4 bytes                    @82

 sb2 kdbr[24]                               @86

 ub1 freespace[1158]                        @134

 ub1 rowdata[6896]                          @1292

 ub4 tailchk                                @8188


BBED&gt; p *kdbr[0]
rowdata[6875]
-------------
ub1 rowdata[6875]                           @8167     0x3c

BBED&gt; x /rnnc
rowdata[6875]                               @8167
-------------
flag@8167: 0x3c (KDRHFL, KDRHFF, KDRHFD, KDRHFH)
lock@8168: 0x01
cols@8169:    0
</pre>
<p><strong>故障原因跟踪</strong><br />
有人在数据库中注入了恶意脚本，导致数据库删除了bootstrap$中数据,关闭之后无法正常启动<br />
<a href="//www.xifenfei.com/?p=7452"><img src="//www.xifenfei.com/wp-content/uploads/2018/05/delete-bootstrap.png" alt="delete-bootstrap$" width="608" height="323" class="alignleft size-full wp-image-7454" /></a><br />
<hr />
<strong>处理方法</strong><br />
通过oracle bbed 修复数据字典,正常启动数据库</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/04/ora-00704-ora-00702.html" rel="bookmark" class="crp_title">ORA-00702: bootstrap verison &#8221; inconsistent with version &#8217;8.0.0.0.0&#8242;</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/2021/05/ora-00704-ora-00943.html" rel="bookmark" class="crp_title">ORA-00704 ORA-00943故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/09/ora-00600-dbkif_find_next_record_1.html" rel="bookmark" class="crp_title">ORA-00600 dbkif_find_next_record_1</a></li><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/04/ora-00333.html" rel="bookmark" class="crp_title">ORA-00333 故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/05/ora-600-17182.html" rel="bookmark" class="crp_title">ORA-600 17182导致oracle异常</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/02/ora-01205-recovery.html" rel="bookmark" class="crp_title">ORA-01205: not a data file &#8211; type number in header is 0</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/07/ora-600-kkdlcob-objn-exist-40.html" rel="bookmark" class="crp_title">ORA-600 kkdlcob-objn-exist 40</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/10/%e9%80%9a%e8%bf%87%e5%a4%9a%e6%ac%a1%e8%a7%84%e9%81%bf%e7%b1%bb%e4%bc%bcora-01248-file-n-was-created-in-the-future-of-incomplete-recovery%e9%94%99%e8%af%af.html" rel="bookmark" class="crp_title">通过多次resetlogs规避类似ORA-01248: file N was created in the future of incomplete recovery错误</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/12/ora-006004194%e6%95%85%e9%9a%9c%e8%a7%a3%e5%86%b3.html" rel="bookmark" class="crp_title">ORA-00600[4194]故障解决</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/08/19c-ora-600-kcbzib_kcrsds_1.html" rel="bookmark" class="crp_title">19c库启动报ORA-600 kcbzib_kcrsds_1</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2018/05/willfully-delete-bootstrap.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
