<?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; 火鸟数据库</title>
	<atom:link href="https://www.xifenfei.com/tag/%e7%81%ab%e9%b8%9f%e6%95%b0%e6%8d%ae%e5%ba%93/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, 25 Oct 2026 13:02:42 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Firebird 损坏数据库数据抢救工具&#8212;firebirdext</title>
		<link>https://www.xifenfei.com/2026/10/firebirdext_firebird-recovery-tool.html</link>
		<comments>https://www.xifenfei.com/2026/10/firebirdext_firebird-recovery-tool.html#comments</comments>
		<pubDate>Sat, 24 Oct 2026 15:10:01 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[firebirdext]]></category>
		<category><![CDATA[firebird数据库恢复]]></category>
		<category><![CDATA[firebird数据提取]]></category>
		<category><![CDATA[firebird无法启动]]></category>
		<category><![CDATA[火鸟数据库]]></category>
		<category><![CDATA[火鸟数据库恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=12385</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2026/10/firebirdext_firebird-recovery-tool.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/10/firebirdext_firebird-recovery-tool.html" target="_blank">Firebird 损坏数据库数据抢救工具&#8212;firebirdext</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p><strong>它是做什么的</strong><br />
firebirdext 是一个针对 Firebird 数据库 .fdb 文件的数据抢救工具。<br />
当数据库文件因为断电、磁盘坏道、误操作、备份中断、病毒查杀等原因损坏，导致数据库无法打开、官方工具 gbak/gfix 也救不回来时，fbrescue 可以绕过数据库引擎，直接以二进制方式解析磁盘文件，把还能找回的数据一页一页&#8221;捞&#8221;出来——导出成 CSV、SQL 脚本，甚至直接重建一个可用的新数据库。<br />
一句话：引擎打不开的库，它照样能把数据掏出来。<br />
<br />
<strong>解决什么问题</strong><br />
你可能会遇到这些情况：<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2026/10/firebirdext.png"><img src="https://www.xifenfei.com/wp-content/uploads/2026/10/firebirdext.png" alt="firebirdext" width="1339" height="311" class="alignnone size-full wp-image-12386" /></a><br />
<hr />
工具的信条是宁缺毋滥：损坏到无法确认的行，如实计入&#8221;失败&#8221;，绝不编造半真半假的数据出来。<br />
<br />
<strong>核心功能</strong><br />
1. 全景扫描（scan） — 动手之前先看病情<br />
输出每页的类型与归属（哪些表还剩多少数据页、哪些页被毁），立刻知道&#8221;还有多少可救&#8221;。</p>
<pre class="brush: bash; title: ; notranslate">
firebirdext scan 损坏库.FDB
</pre>
<p>2. 零配置数据提取 — 不用提供表结构<br />
自动建库、建表、写入数据，产出一个可以正常连接使用的 Firebird 数据库。</p>
<pre class="brush: bash; title: ; notranslate">
firebirdext extract 损坏库.FDB --format db --target 新库.FDB
</pre>
<p>3. 直接重建新库 — 数据一步到位<br />
自动建库、建表、写入数据，产出一个可以正常连接使用的 Firebird 数据库。</p>
<pre class="brush: bash; title: ; notranslate">
firebirdext extract 损坏库.FDB --format db --target 新库.FDB
</pre>
<p>4. 对象结构恢复 — 不只救数据，结构也不丢<br />
恢复索引、主键、视图、存储过程、触发器、序列，在数据恢复好的新库上执行一遍，对象全部重建。<br />
<br />
5. 单表定向抢救</p>
<pre class="brush: bash; title: ; notranslate">
firebirdext extract 损坏库.FDB --table ORDERS --format db --target 订单.FDB
</pre>
<p>6. 三种输出格式：csv（Excel 核对）/ sql（INSERT 脚本）/ db（新数据库）。<br />
<br />
<strong>支持的数据类型</strong><br />
整数、BIGINT、SMALLINT、NUMERIC/DECIMAL(p,s)、FLOAT、DOUBLE、DATE、TIMESTAMP、VARCHAR/CHAR（多字节字符集支持）、BLOB（自动重组内联大对象，实测 4000 字符文本完整还原）<br />
<br />
<strong>上手：三分钟走完全流程</strong></p>
<pre class="brush: bash; title: ; notranslate">
# 环境：Windows/Linux 均可，Python 3.8+，无需安装任何第三方库
# （只有&quot;直接建新库&quot;功能会调用 Firebird 自带的 isql.exe）

# 第 1 步：复制副本（永远不要对原文件操作）
copy D:\prod\MYDATA.FDB E:\work\抢救副本.FDB

# 第 2 步：诊断，看看能救多少
firebirdext scan E:\work\抢救副本.FDB

# 第 3 步：抢救 → 新库 + 对象脚本，一条命令
firebirdext extract E:\work\抢救副本.FDB --format db --target E:\work\恢复库.FDB

# 第 4 步：把索引/视图/过程/触发器也建起来
isql -q -b -i E:\work\恢复库_ddl.sql

# 第 5 步：连上新库验证数据
isql -q
SQL&gt; connect 'E:/work/恢复库.FDB' user 'SYSDBA' password '***';
SQL&gt; select count(*) from 任意表;
</pre>
<p><strong>适用范围与限制</strong><br />
1).适用 Firebird 3 / 4 / 5（ODS12/13）；更老的 2.5 及以前版本需要小幅适配<br />
2).已被物理覆写清零的记录、已被垃圾回收的数据，任何工具都救不回<br />
3).表结构（列类型）依赖文件内的系统表页；如果系统表页也烂光了，可以用 &#8211;ddl 手动提供建表语句兜底<br />
4).view、index、trigger等如果字典完善可以恢复<br />
5).外键、CHECK 约束暂无法恢复，后续进行完善</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/04/traceroute-has-a-disk-hb-but-no-network-hb.html" rel="bookmark" class="crp_title">has a disk HB, but no network HB&#8212;-traceroute不通导致</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/01/%e4%bd%bf%e7%94%a8goldengate%e5%90%8c%e6%ad%a5oracle.html" rel="bookmark" class="crp_title">使用goldengate同步oracle</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/01/goldedgate-%e5%88%9d%e5%a7%8b%e5%8c%96%e6%95%b0%e6%8d%ae.html" rel="bookmark" class="crp_title">goldedgate 初始化数据</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/09/%e8%be%be%e6%a2%a6%e6%95%b0%e6%8d%ae%e5%ba%93%e5%91%bd%e4%bb%a4%e8%a1%8c%e5%b7%a5%e5%85%b7.html" rel="bookmark" class="crp_title">达梦数据库命令行工具</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/01/goldengate%e9%80%9a%e7%94%a8%e9%85%8d%e7%bd%ae.html" rel="bookmark" class="crp_title">goldengate通用配置</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/10/mongoext.html" rel="bookmark" class="crp_title">MongoDB 离线提取工具&#8212;mongoext</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/02/goldengate%e5%90%8c%e6%ad%a5sql-server-to-oracle.html" rel="bookmark" class="crp_title">goldengate同步sql server to oracle</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/05/ogg-01705.html" rel="bookmark" class="crp_title">OGG-01705故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/08/%e5%9c%a8chrome%e9%ab%98%e7%89%88%e6%9c%ac%e4%b8%ad%e9%85%8d%e7%bd%ae%e9%85%8d%e7%bd%ae%e4%bd%bf%e7%94%a8awr-format-for-chrome%e6%8f%92%e4%bb%b6.html" rel="bookmark" class="crp_title">在Chrome高版本中配置使用AWR-Format for Chrome插件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/03/orafhr.html" rel="bookmark" class="crp_title">Oracle数据库被勒索加密一键open工具&#8211;OraFHR</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/2011/05/goldengate-%e9%85%8d%e7%bd%aeoracle-to-mysql.html" rel="bookmark" class="crp_title">Goldengate 配置oracle to mysql</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2026/10/firebirdext_firebird-recovery-tool.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
