<?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/%e6%95%b0%e6%8d%ae%e5%9d%97%e7%bc%96%e8%be%91%e5%b7%a5%e5%85%b7/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>Wed, 04 Nov 2026 15:33:30 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Oracle Block Edit Tool (obet) 功能增强&#8211;2026.07</title>
		<link>https://www.xifenfei.com/2026/07/obet-2026-07.html</link>
		<comments>https://www.xifenfei.com/2026/07/obet-2026-07.html#comments</comments>
		<pubDate>Thu, 30 Jul 2026 23:43:14 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[小工具]]></category>
		<category><![CDATA[dump_undo]]></category>
		<category><![CDATA[obet]]></category>
		<category><![CDATA[obet dbv]]></category>
		<category><![CDATA[parse_ctl]]></category>
		<category><![CDATA[数据块编辑工具]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=12274</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2026/07/obet-2026-07.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/07/obet-2026-07.html" target="_blank">Oracle Block Edit Tool (obet) 功能增强&#8211;2026.07</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>数据块编辑工具<a href="https://www.xifenfei.com/2025/11/obet-version2.html" title="obet(Oracle Block Editor Tool)第二版发布" rel="noopener" target="_blank">Oracle bbed升级版obet(Oracle Block Edit Tool)</a>， 基于ai编程的强大，根据近期恢复的需求情况，我对一些功能进行了升级，整体功能<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_help.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_help.jpg" alt="obet_help" width="1036" height="1034" class="alignnone size-full wp-image-12275" /></a><br />
<hr />
<strong>主要增加了上述框起来的功能</strong><br />
forcopy file N to
<path> 这个是当硬件有损坏，普通拷贝报错的时候，使用该命令最大限度拷贝数据<br />
extend file N这个是解决ORA-01200故障(一般是由于异常断电，或者文件系统恢复之后），数据文件实际大小小于文件头记录大小<br />
parse_ctl这个是直接解析control，并且生成创建控制文件语句，主要为了解决在oracle数据库无法mount的情况下，重建控制文件容易遗漏数据文件导致oracle后续open之后缺失部分数据文件而引起的各种故障风险<br />
dump_undo这个主要是在数据库open的过程中遭遇到undo回滚段异常，需要屏蔽回滚段时候，需要知道回滚段名称，这个命令可以直接获取<br />
通过set endian big/little命令来实现全面支持大小字节序<br />
<br />
<strong>linux平台还增加了patch_scn功能</strong><br />
这个功能是以前直接的<a href="https://www.xifenfei.com/2025/10/patch_scn-for-linux.html" title="Patch_SCN for Linux 功能完善" rel="noopener" target="_blank">patch_scn小工具</a>Patch_SCN for Linux 功能完善中的，现在整合到了obet里面<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_patch_scn.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_patch_scn.jpg" alt="obet_patch_scn" width="944" height="426" class="alignnone size-full wp-image-12276" /></a><br />
<strong>完善了各种命令的提示</strong><br />
<a href="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_hint.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_hint.jpg" alt="obet_hint" width="897" height="487" class="alignnone size-full wp-image-12277" /></a><br />
<hr />
<strong>最近几天的实战操作</strong><br />
修改文件头scn<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_1.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_1.jpg" alt="obet_1" width="813" height="803" class="alignnone size-full wp-image-12278" /></a><br />
<a href="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_2.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_2.jpg" alt="obet_2" width="1080" height="305" class="alignnone size-full wp-image-12279" /></a><br />
<hr />
dbv检查aix平台数据文件<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_dbv.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2026/07/obet_dbv.jpg" alt="obet_dbv" width="1080" height="736" class="alignnone size-full wp-image-12280" /></a><br />
<hr />
将来根据需求和客户实战情况，会进一步完善功能和修复bug</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/06/deepseek_oracle_recovery_major_fault.html" rel="bookmark" class="crp_title">使用deepseek进行Oracle恢复,引起重大故障</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/2026/05/oracle-fault-first-scene-restore-chaotic-database.html" rel="bookmark" class="crp_title">Oracle故障第一现场被恢复混乱的数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/08/obet-forcecopy-ioerror.html" rel="bookmark" class="crp_title">obet forcecopy功能抢救硬件故障中的数据文件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/03/wman-mysql-recovery.html" rel="bookmark" class="crp_title">.wman扩展名勒索mysql数据库恢复</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><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/06/dd-asmdisk-50pdb-recovery.html" rel="bookmark" class="crp_title">dd破坏包含50多个pdb的asm 磁盘组恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/01/hgdb-rm-rf-recovery.html" rel="bookmark" class="crp_title">记录一次国产数据库被rm -rf /*删除的救援过程</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/10/bres-dmp-recovery.html" rel="bookmark" class="crp_title">.bres勒索病毒加密数据库dmp文件可恢复</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></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2026/07/obet-2026-07.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle数据块编辑工具( Oracle Block Editor Tool)-obet</title>
		<link>https://www.xifenfei.com/2025/11/obet.html</link>
		<comments>https://www.xifenfei.com/2025/11/obet.html#comments</comments>
		<pubDate>Sat, 08 Nov 2025 02:09:58 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[小工具]]></category>
		<category><![CDATA[bbed替代工具]]></category>
		<category><![CDATA[obet]]></category>
		<category><![CDATA[数据块编辑工具]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=11762</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2025/11/obet.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/11/obet.html" target="_blank">Oracle数据块编辑工具( Oracle Block Editor Tool)-obet</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>由于oracle后续版本对于bbed的支持不是太友好(从10g之后无法直接编译使用,win版本偏移量错误等),基于这些情况,结合当前ai的便利,自己动手写了一个基础版的obet(Oracle Block Editor Tool)<br />
obet工具下载地址:<a href="https://www.xifenfei.com/wp-content/uploads/recover_check/obet.zip">obet下载</a><br />
obet工具使用说明:<a href="https://www.xifenfei.com/wp-content/uploads/recover_check/obet_manual.html">obet使用说明</a><br />
用来实现在某些情况下Oracle 数据块的编辑工作.目前(2025年11月10日)发布第一版主要功能有:<br />
1. 通过16进制查看数据文件任何偏移量位置的数据(d/dump)<br />
2. 通过16进制编辑数据文件任何偏移量位置的数据(m/modify)<br />
3. 对oracle 数据块的tailchk自动修复(tailchk apply)<br />
4. 对oracle 数据块的checksum自动修复(sum apply)<br />
5. 数据文件之间部分数据拷贝功能(coopy)<br />
6. 支持p/print打印Oracle文件头结构<br />
第二版进行了一些功能的完善,具体见:<a href="https://www.xifenfei.com/2025/11/obet-version2.html" title="obet(Oracle Block Editor Tool)第二版发布" rel="noopener" target="_blank">obet(Oracle Block Editor Tool)第二版发布</a><br />
<br />
启动软件界面</p>
<pre class="brush: bash; title: ; notranslate">
[root@iZbp11c0qyuuo1gr7j98upZ tmp]# ./obet
=============================================
Welcome to Oracle Block Editor Tool (OBET)
=============================================

***** !!! For Oracle Internal Use only !!! *****

[Software Function Description]
- View and edit data block in hexadecimal format
- Automatically repair tailchk and checksum
- Copy data between different data files
- Mark data block as corrupted block

[Developer Information]
- Name: XiFenFei
- Phone: +86-17813235971
- Email: dba@xifenfei
- Q Q: 107644445
- WeChat: 17813235971
- Website: https://www.xifenfei.com

[Version Details]
- Software Version: v2025.11.001
- Build Date: 2025.11.07

=============================================
Type 'help' for command list | 'exit' to quit
=============================================

==================================================
Software License Status: Authorized
==================================================
</pre>
<p>使用说明</p>
<pre class="brush: bash; title: ; notranslate">
OBET&gt; help
OBET (Oracle Block Editor Tool) commands:
  open &lt;config_file&gt;    - Load file list from config file (format: &lt;num&gt; &lt;path&gt;)
  info                  - Show loaded file list (from open command)
  set filename &lt;path&gt;   - Set target file path (required)
  set file &lt;num&gt;        - Set filename using loaded file number (from open list)
  set blocksize &lt;size&gt;  - Set block size (2048,4096,[8192],16384,32768)
  set block &lt;num&gt;       - Set block number (starts from 0, default: 1)
  set offset &lt;offset&gt;   - Set offset within block (&lt; blocksize, default: 0)
  set count &lt;bytes&gt;     - Set number of bytes to read (default: 32)
  set mode edit/browse  - Enable edit/browse mode
  d/dump [options]      - Display data (options: block X, offset Y, count N)
  m/modify &lt;hex&gt; [opts] - Modify data with hex (opts: block X, offset Y)
  undo                  - Undo last modification
  sum [block X]         - Calculate checksum for block (default: current block)
  sum apply [block X]   - Apply checksum: write calculated value to block
  tailchk [block X]     - Calculate tailchk for block (default: current block)
  tailchk apply [block X] - Apply tailchk: write calculated value to block
  copy &lt;src&gt; to &lt;dest&gt;  - Copy data between files
    &lt;src&gt; format: file,block,offset,count (e.g., 1,1,10,64)
    &lt;dest&gt; format: file[,block][,offset] (e.g., 3 or 3,1 or 3,1,128)
  corrupt [block X]     - Mark block as corrupted (default: current block)
  show                  - Display current settings (filename, blocksize, block, offset, count, mode)
  license               - Show/manage software license (registration code required)
  version               - Show software version and developer information
  help                  - Show this help message
  quit/exit             - Exit OBET
</pre>
<p>加载数据文件</p>
<pre class="brush: bash; title: ; notranslate">
--使用open打开数据文件列表(格式: 编号  路径)
OBET&gt; open /tmp/3.txt
Loaded 4 files from config file '/tmp/3.txt'.

OBET&gt; info

Loaded files (4 total):
----------------------------------------
Number  Path
----------------------------------------
     1  /u01/xifenfei/system01.dbf
     2  /u01/xifenfei/sysaux01.dbf
     3  /u01/xifenfei/undotbs01.dbf
     4  /u01/xifenfei/users01.dbf
----------------------------------------

OBET&gt; set file 1
filename set to: /u01/xifenfei/system01.dbf (file#1)

--或者直接使用 set filename
OBET&gt; set filename /tmp/system01.dbf
filename set to: /tmp/system01.dbf
</pre>
<p>进入数据文件特定位置</p>
<pre class="brush: bash; title: ; notranslate">
OBET&gt; set file 2
filename set to: /u01/xifenfei/sysaux01.dbf (file#2)

OBET&gt; set block 5
block set to: 5

OBET&gt; set offset 128
offset set to: 128
</pre>
<p>16进制方式查看数据</p>
<pre class="brush: bash; title: ; notranslate">
OBET&gt; d

File: /u01/xifenfei/system01.dbf
Block: 1                Offsets:     0 to    31
--------------------------------------------------------------------------------
00002000 0BA20000 01004000 00000000 00000104 224D0000 00000000 0004200B A2DB266A 

&lt;32 bytes read&gt;

OBET&gt; dump block 521 offset 128

File: /u01/xifenfei/system01.dbf
Block: 521                Offsets:   128 to   159
--------------------------------------------------------------------------------
00412080 5E068D05 C6040000 00000000 00000000 00000000 00000000 00000000 00000000 

&lt;32 bytes read&gt;

OBET&gt; set count 128
count set to: 128

OBET&gt; d

File: /u01/xifenfei/system01.dbf
Block: 1                Offsets:     0 to   127
--------------------------------------------------------------------------------
00002000 0BA20000 01004000 00000000 00000104 224D0000 00000000 0004200B A2DB266A 
00002020 58494645 4E464549 AC020000 00720100 00200000 01000300 00000000 00000000 
00002040 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
00002060 08024000 07000000 00000000 7DC92131 64676345 06200E00 00000000 00000000 

&lt;128 bytes read&gt;
</pre>
<p>16进制方式修改数据块内容(一般修改数据块内容之后建议校验tailchk和sum)</p>
<pre class="brush: bash; title: ; notranslate">
OBET&gt; d

File: /u01/xifenfei/system01.dbf
Block: 1                Offsets:     0 to   127
--------------------------------------------------------------------------------
00002000 0BA20000 01004000 00000000 00000104 224D0000 00000000 0004200B A2DB266A 
00002020 58494645 4E464549 AC020000 00720100 00200000 01000300 00000000 00000000 
00002040 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
00002060 08024000 07000000 00000000 7DC92131 64676345 06200E00 00000000 00000000 

&lt;128 bytes read&gt;

OBET&gt; m 0123

Confirm modification:
File: /u01/xifenfei/system01.dbf
Block: 1
Offset: 0 (file offset: 0x00002000)
Original value: 0B
New value:      0123
Confirm? (Y/YES to proceed): y
Verification successful: Data written correctly.
Modified 2 bytes at offset 0x00002000 successfully.

OBET&gt; d

File: /u01/xifenfei/system01.dbf
Block: 1                Offsets:     0 to   127
--------------------------------------------------------------------------------
00002000 01230000 01004000 00000000 00000104 224D0000 00000000 0004200B A2DB266A 
00002020 58494645 4E464549 AC020000 00720100 00200000 01000300 00000000 00000000 
00002040 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
00002060 08024000 07000000 00000000 7DC92131 64676345 06200E00 00000000 00000000 

&lt;128 bytes read&gt;
</pre>
<p>tail和checksum修改</p>
<pre class="brush: bash; title: ; notranslate">
OBET&gt; tailchk
Check tailchk for File /u01/xifenfei/system01.dbf, Block 1:
current = 0x010B0000, required = 0x01010000

OBET&gt; sum
Check value for File /u01/xifenfei/system01.dbf, Block 1:
current = 0x224D, required = 0x28CC

OBET&gt; tailchk apply

Confirm applying tailchk:
File: /u01/xifenfei/system01.dbf
Block: 1
Offset in block: 8188 (file offset: 0x00003FFC)
Original value: 0x010B0000
New value:      0x01010000
Confirm? (Y/YES to proceed): y
Verification successful: Stored tailchk matches calculated value (0x01010000).
Tailchk applied successfully.

OBET&gt; sum apply

Confirm applying checksum:
File: /u01/xifenfei/system01.dbf
Block: 1
Offset in block: 16 (file offset: 0x00002010)
Original value: 0x224D
New value:      0x28C6
Confirm? (Y/YES to proceed): y
Verification successful: Stored checksum matches calculated value (0x28C6).
Checksum applied successfully.
</pre>
<p>两个数据文件之前拷贝数据(一般copy数据之后建议校验tailchk和sum)<br />
一般情况下文件之间的拷贝就是数据号不一样,比如修改checkpoint,resetlog信息等,这里支持不一样偏移量,不一样数据块的拷贝</p>
<pre class="brush: bash; title: ; notranslate">
OBET&gt; copy 1,1,0,128 to 3,5,128

Confirm copy:
Source: file#1 (/u01/xifenfei/system01.dbf), block 1, offset 0, 128 bytes
Target: file#3 (/u01/xifenfei/undotbs01.dbf), block 5, offset 128
Proceed? (Y/YES to confirm): y
Copy successful: 128 bytes copied from file #1 to file #3.

OBET&gt; set file 3
filename set to: /u01/xifenfei/undotbs01.dbf (file#3)

OBET&gt; d block 5 offset 128

File: /u01/xifenfei/undotbs01.dbf
Block: 5                Offsets:   128 to   255
--------------------------------------------------------------------------------
0000A080 0BA20000 01004000 00000000 00000104 224D0000 00000000 0004200B A2DB266A 
0000A0A0 58494645 4E464549 AC020000 00720100 00200000 01000300 00000000 00000000 
0000A0C0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
0000A0E0 08024000 07000000 00000000 7DC92131 64676345 06200E00 00000000 00000000 

&lt;128 bytes read&gt;

OBET&gt; set file 1
filename set to: /u01/xifenfei/system01.dbf (file#1)

OBET&gt; dump block 1 offset 0

File: /u01/xifenfei/system01.dbf
Block: 1                Offsets:     0 to   127
--------------------------------------------------------------------------------
00002000 0BA20000 01004000 00000000 00000104 224D0000 00000000 0004200B A2DB266A 
00002020 58494645 4E464549 AC020000 00720100 00200000 01000300 00000000 00000000 
00002040 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
00002060 08024000 07000000 00000000 7DC92131 64676345 06200E00 00000000 00000000 

&lt;128 bytes read&gt;
</pre>
<p>标记数据块为坏块功能</p>
<pre class="brush: bash; title: ; notranslate">

OBET&gt; show 

Current settings:
File: /u01/xifenfei/system01.dbf
Blocksize: 8192 bytes
Block: 1
Offset in block: 0 (file offset: 0x00002000)
Count: 128 bytes
Mode: edit
Loaded files: 4 (use 'info' to list)

OBET&gt; corrupt

Confirm modification:
File: /u01/xifenfei/system01.dbf
Block: 1
Offset: 14 (file offset: 0x0000200E)
Original value: 01
New value:      FF
Are you sure to set this block corrupted? (Y/YES to proceed): y
Verification successful: Block 1 marked as corrupted (offset 14 set to 0xFF).
Modification successful.
</pre>
<p>使用p/print打印文件头结构</p>
<pre class="brush: bash; title: ; notranslate">
OBET&gt; p
Error: Missing param.  The main commands include:

Supported structure display (one-level only):
  p tailchk                         - Block tail check
  p kcvfh                           - Complete KCVFH structure
  p kcvfh.kcvfhbfh                  - File header block
  p kcvfh.kcvfhhdr                  - File header descriptor
  p kcvfh.kcvfhrdb                  - Database block
  p kcvfh.kcvfhcrs                  - Creation SCN
  p kcvfh.kcvfhcrt                  - Creation time
  p kcvfh.kcvfhrlc                  - Reset log SCN
  p kcvfh.kcvfhrls                  - Reset logs SCN
  p kcvfh.kcvfhbti                  - Backup table info
  p kcvfh.kcvfhbsc                  - Basic SCN
  p kcvfh.kcvfhbth                  - Backup table header
  p kcvfh.kcvfhsta                  - Status
  p kcvfh.kcvfhbcp                  - Checkpoint info
  p kcvfh.kcvfhbhz                  - Block size header
  p kcvfh.kcvfhxcd                  - Extended checkpoint
  p kcvfh.kcvfhtsn                  - Tablespace number
  p kcvfh.kcvfhtln                  - Tablespace name length
  p kcvfh.kcvfhtnm                  - Tablespace name
  p kcvfh.kcvfhrfn                  - Relative file number
  p kcvfh.kcvfhrfs                  - Recovery info
  p kcvfh.kcvfhrft                  - Recovery time
  p kcvfh.kcvfhafs                  - Auxiliary recovery
  p kcvfh.kcvfhbcs                  - Backup control
  p kcvfh.kcvfhofb                  - Offset bytes
  p kcvfh.kcvfhnfb                  - Next offset bytes
  p kcvfh.kcvfhprc                  - Recovery related
  p kcvfh.kcvfhprs                  - Recovery structure
  p kcvfh.kcvfhprfs                 - Recovery finish
  p kcvfh.kcvfhcpc                  - Checkpoint count
  p kcvfh.kcvfhrts                  - Reset time
  p kcvfh.kcvfhccc                  - Change count
  p kcvfh.kcvfhtrt                  - Total reset time
  p kcvfh.kcvfhckp                  - Complex checkpoint

Note: Only one-level structure access is supported.
Example: 'p kcvfh.kcvfhhdr' shows the complete kcvfhhdr structure.
No multi-level access like 'p kcvfh.kcvfhhdr.kccfhtyp' is supported.

OBET&gt; p kcvfh
File: /u01/xifenfei/users01.dbf
Size: 8192 bytes
Block: 1

struct kcvfh, 1272 bytes                      @0       
   struct kcvfhbfh, 20 bytes                   @0       
      ub1 type_kcbh                            @0        0x0B
      ub1 frmt_kcbh                            @1        0xA2
      ub2 wrp2_kcbh                            @2        0x0000
      ub4 rdba_kcbh                            @4        0x01000001
      ub4 bas_kcbh                             @8        0x00000000
      ub2 wrp_kcbh                             @12       0x0000
      ub1 seq_kcbh                             @14       0x01
      ub1 flg_kcbh                             @15       0x04
      ub2 chkval_kcbh                          @16       0x15CC
      ub2 spare3_kcbh                          @18       0x0000
   struct kcvfhhdr, 76 bytes                   @20      
      ub4 kccfhswv                            @20      0x00000000
      ub4 kccfhcvn                            @24      0x0B200400
      ub4 kccfhdbi                            @28      0x6A26DBA2
      text kccfhdbn[8]                        @32-39   XIFENFEI
      ub4 kccfhcsq                            @40      0x000002AC
      ub4 kccfhfsz                            @44      0x00000280
      s_blkz kccfhbsz                         @48      0x00
      ub2 kccfhfno                            @52      0x0004
      ub2 kccfhtyp                            @54      0x0003
      ub4 kccfhacid                           @56      0x00000000
      ub4 kccfhcks                            @60      0x00000000
      text kccfhtag[32]                       @64-95                                   
   ub4 kcvfhrdb                               @96      0x00000000
   struct kcvfhcrs, 8 bytes                    @100     
      ub4 kscnbas                             @100     0x00003F0F
      ub2 kscnwrp                             @104     0x0000
      ub2 kscnwrp2                            @106     0x0000
   ub4 kcvfhcrt                               @108     0x3121C98D
   ub4 kcvfhrlc                               @112     0x45636764
   struct kcvfhrls, 8 bytes                    @116     
      ub4 kscnbas                             @116     0x000E2006
      ub2 kscnwrp                             @120     0x0000
      ub2 kscnwrp2                            @122     0x0000
   ub4 kcvfhbti                               @124     0x00000000
   struct kcvfhbsc, 8 bytes                    @128     
      ub4 kscnbas                             @128     0x00000000
      ub2 kscnwrp                             @132     0x0000
      ub2 kscnwrp2                            @134     0x0000
   ub2 kcvfhbth                               @136     0x0000
   ub2 kcvfhsta                               @138     0x0000 (NONE)
   struct kcvfhckp, 36 bytes                   @484     
      struct kcvcpscn, 8 bytes                 @484     
         ub4 kscnbas                          @484     0x000EB49E
         ub2 kscnwrp                          @488     0x0000
         ub2 kscnwrp2                         @490     0x0000
      ub4 kcvcptim                            @492     0x456367BB
      ub2 kcvcpthr                            @496     0x0001
      union u, 12 bytes                       @500     
         struct kcvcprba, 12 bytes            @500     
            ub4 kcrbaseq                     @500     0x00000005
            ub4 kcrbabno                     @504     0x000027A5
            ub2 kcrbabof                     @508     0x0010
      ub1 kcvcpetb[8]                         @512-519 02 00 00 00 00 00 00 00 
   ub4 kcvfhcpc                               @140     0x0000005B
   ub4 kcvfhrts                               @144     0x45636739
   ub4 kcvfhccc                               @148     0x0000005A
   struct kcvfhbcp, 36 bytes                   @152     
      struct kcvcpscn, 8 bytes                 @152     
         ub4 kscnbas                          @152     0x00000000
         ub2 kscnwrp                          @156     0x0000
         ub2 kscnwrp2                         @158     0x0000
      ub4 kcvcptim                            @160     0x00000000
      ub2 kcvcpthr                            @164     0x0000
      union u, 12 bytes                       @168     
         struct kcvcprba, 12 bytes            @168     
            ub4 kcrbaseq                     @168     0x00000000
            ub4 kcrbabno                     @172     0x00000000
            ub2 kcrbabof                     @176     0x0000
      ub1 kcvcpetb[8]                         @180-187 00 00 00 00 00 00 00 00 
   ub4 kcvfhbhz                               @312     0x00000000
   struct kcvfhxcd, 16 bytes                   @316     
      ub4 space_kcvmxcd[0]                    @316     0x00000000
      ub4 space_kcvmxcd[1]                    @320     0x00000000
      ub4 space_kcvmxcd[2]                    @324     0x00000000
      ub4 space_kcvmxcd[3]                    @328     0x00000000
   sword kcvfhtsn                             @332     4
   ub2 kcvfhtln                               @336     0x0005
   text kcvfhtnm[30]                          @338-367 USERS                         
   ub4 kcvfhrfn                               @368     0x00000004
   struct kcvfhrfs, 8 bytes                    @372     
      ub4 kscnbas                             @372     0x00000000
      ub2 kscnwrp                             @376     0x0000
      ub2 kscnwrp2                            @378     0x0000
   ub4 kcvfhrft                               @380     0x00000000
   struct kcvfhafs, 8 bytes                    @384     
      ub4 kscnbas                             @384     0x00000000
      ub2 kscnwrp                             @388     0x0000
      ub2 kscnwrp2                            @390     0x0000
   ub4 kcvfhbbc                               @392     0x00000000
   ub4 kcvfhncb                               @396     0x00000000
   ub4 kcvfhmcb                               @400     0x00000000
   ub4 kcvfhlcb                               @404     0x00000000
   ub4 kcvfhbcs                               @408     0x00000000
   ub2 kcvfhofb                               @412     0x0000
   ub2 kcvfhnfb                               @414     0x0000
   ub4 kcvfhprc                               @416     0x3121C97A
   struct kcvfhprs, 8 bytes                    @420     
      ub4 kscnbas                             @420     0x00000001
      ub2 kscnwrp                             @424     0x0000
      ub2 kscnwrp2                            @426     0x0000
   struct kcvfhprfs, 8 bytes                   @428     
      ub4 kscnbas                             @428     0x00000000
      ub2 kscnwrp                             @432     0x0000
      ub2 kscnwrp2                            @434     0x0000
   ub4 kcvfhtrt                               @444     0x00000000

&lt;kcvfh structure printed successfully&gt;

OBET&gt; 

OBET&gt; p kcvfh.kcvfhckp
File: /u01/xifenfei/users01.dbf
Size: 8192 bytes
Block: 1
Offset: 448

struct kcvfhckp, 36 bytes                   @484     
   struct kcvcpscn, 8 bytes                 @484     
      ub4 kscnbas                          @484     0x000EB49E
      ub2 kscnwrp                          @488     0x0000
      ub2 kscnwrp2                         @490     0x0000
   ub4 kcvcptim                            @492     0x456367BB
   ub2 kcvcpthr                            @496     0x0001
   union u, 12 bytes                       @500     
      struct kcvcprba, 12 bytes            @500     
         ub4 kcrbaseq                     @500     0x00000005
         ub4 kcrbabno                     @504     0x000027A5
         ub2 kcrbabof                     @508     0x0010
   ub1 kcvcpetb[8]                         @512-519 02 00 00 00 00 00 00 00 

&lt;kcvfh.kcvfhckp structure printed successfully&gt;
</pre>
<p>由于该工具直接编辑Oracle 底层数据块操作具有一定的破坏性和风险性,所以在没有授权的情况下无法对数据块进行修改(只能查看),具体授权操作</p>
<pre class="brush: bash; title: ; notranslate">
OBET&gt; license

========================================
           Software Registration        
========================================

Your Hardware ID: XXXXXXXX  -----&gt;提供给我

Please send your Hardware ID to XiFenFei to register.
Website: https://www.xifenfei.com 
Tel/WX: +86-17813235971 

Enter Registration Code: XXXXXX-XXXXXXXX &lt;-----输入注册码进行授权
Registration successful!
</pre>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/11/obet-version2.html" rel="bookmark" class="crp_title">obet(Oracle Block Editor Tool)第二版发布</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/01/dd%e6%93%8d%e4%bd%9c%e6%95%b0%e6%8d%ae%e6%96%87%e4%bb%b6.html" rel="bookmark" class="crp_title">dd操作数据文件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/%e4%bd%bf%e7%94%a8bbed%e4%bf%ae%e5%a4%8d%e6%8d%9f%e5%9d%8fdatafile-header.html" rel="bookmark" class="crp_title">使用bbed修复损坏datafile header</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/02/oracle-19c-bbed.html" rel="bookmark" class="crp_title">Oracle 19C 依旧支持bbed</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/08/oracle-21c-bbed.html" rel="bookmark" class="crp_title">bbed依旧支持Oracle 21c</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/2011/12/%e5%9c%a8ultraedit%e4%b8%ad%e5%ae%9a%e4%bd%8d%e6%95%b0%e6%8d%ae%e6%96%87%e4%bb%b6%e5%86%85%e5%ae%b9.html" rel="bookmark" class="crp_title">在UltraEdit中定位数据文件内容</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/01/obet-miss-archivelog-recovery.html" rel="bookmark" class="crp_title">obet快速修改scn/resetlogs恢复数据库(缺少归档,ORA-00308）</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/06/oracle-18c-bbed.html" rel="bookmark" class="crp_title">oracle 18c依旧支持bbed</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/03/bbed-recovery-corrupted-block.html" rel="bookmark" class="crp_title">file 1 block 128 corrupted/坏块恢复&#8212;system rollback坏块修复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/05/bbed%e5%a4%84%e7%90%86ora-01200%e6%95%85%e9%9a%9c.html" rel="bookmark" class="crp_title">bbed处理ORA-01200故障</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/window%e7%b3%bb%e7%bb%9f%e5%91%bd%e4%bb%a4-ocopy%e5%ae%9e%e7%8e%b0%e6%8b%b7%e8%b4%9d%e6%95%b0%e6%8d%ae%e6%96%87%e4%bb%b6header.html" rel="bookmark" class="crp_title">拷贝windows中datafile header方法(ocopy)</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2025/11/obet.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
