[20230224]bbed設定偏移技巧.txt
[20230224]bbed設定偏移技巧.txt
--//我使用bbed設定偏移一般喜歡使用數字,實際上可以直接使用symbol或者*symbol定位,透過一些例子測試以及說明:
1.環境:
SCOTT@book> @ ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
2.測試:
SCOTT@book> select rowid,dept.* from dept where rownum<=1;
ROWID DEPTNO DNAME LOC
------------------ ---------- -------------- -------------
AAAVRCAAEAAAACHAAA 10 ACCOUNTING NEW YORK
SCOTT@book> @ rowid AAAVRCAAEAAAACHAAA
OBJECT FILE BLOCK ROW ROWID_DBA DBA TEXT
---------- ---------- ---------- ---------- -------------------- -------------------- ----------------------------------------
87106 4 135 0 0x1000087 4,135 alter system dump datafile 4 block 135 ;
3.bbed設定偏移:
BBED> help set
SET DBA [ dba | file#, block# ]
SET FILENAME 'filename'
SET FILE file#
SET BLOCK [+/-]block#
SET OFFSET [ [+/-]byte offset | symbol | *symbol ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET BLOCKSIZE bytes
SET LIST[FILE] 'filename'
SET WIDTH character_count
SET COUNT bytes_to_display
SET IBASE [ HEX | OCT | DEC ]
SET OBASE [ HEX | OCT | DEC ]
SET MODE [ BROWSE | EDIT ]
SET SPOOL [ Y | N ]
--//從幫助也可以看出支援symbol , *symbol.
BBED> set dba 4,135
DBA 0x01000087 (16777351 4,135)
BBED> map
File: /mnt/ramdisk/book/users01.dbf (4)
Block: 135 Dba:0x01000087
------------------------------------------------------------
KTB Data Block (Table/Cluster)
struct kcbh, 20 bytes @0
struct ktbbh, 72 bytes @20
struct kdbh, 14 bytes @100
struct kdbt[1], 4 bytes @114
sb2 kdbr[4] @118
ub1 freespace[7970] @126
ub1 rowdata[92] @8096
ub4 tailchk @8188
BBED> set offset kdbr
OFFSET 118
--//設定偏移118.
BBED> p kdbr
sb2 kdbr[0] @118 8062
sb2 kdbr[1] @120 8040
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sb2 kdbr[2] @122 8020
sb2 kdbr[3] @124 7996
BBED> set offset kdbr[1]
OFFSET 120
BBED> set offset *kdbr[5]
BBED-00401: out of range array index (5)
BBED> x /rncc *kdbr[1]
rowdata[44] @8140
-----------
flag@8140: 0x2c (KDRHFL, KDRHFF, KDRHFH)
lock@8141: 0x00
cols@8142: 3
col 0[2] @8143: 20
col 1[8] @8146: RESEARCH
col 2[6] @8155: DALLAS
--//注意: p kdbr 顯示的相對偏移 要加上kdbh地址的偏移才是絕對偏移,這裡也就是100.
BBED> set offset *kdbr[1]
OFFSET 8140
--//8140也是正確的.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2936974/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20230224]改動資料檔案小技巧.txt
- [20230224]ssh date執行問題.txt
- [20210817]如何通過bbed確定undo段.txt
- MAC電腦新建TXT文件快捷鍵的設定技巧Mac
- [20181204]bbed修改問題.txt
- [20180619]bbed verify問題.txt
- [20231008]bbed探究lob段.txt
- [20220223]bbed ktbbh.ktbbhict.txt
- [20210920]bbed的assign命令.txt
- [20210304]bbed的assign命令.txt
- [20210906]bbed讀取資料塊(bbed-wrap.sh).txt
- [20190104]bbed手工插入資料.txt
- [20181227]bbed的使用問題.txt
- [20210901]cygwin下使用bbed.txt
- [20210303]bbed使用小問題.txt
- [20210223]bbed itl ktbitflg 2.txt
- [20180628]顯示bbed x命令格式.txt
- [20190104]bbed手動修改資料.txt
- [20210318]bbed讀取資料塊.txt
- [20210311]如何建立bbed安裝包.txt
- [20180627]測試bbed是否支援管道命令.txt
- [20231021]生成bbed的執行指令碼.txt指令碼
- [20230427]bbed sum apply問題2.txtAPP
- [20180604]在記憶體修改資料(bbed).txt記憶體
- [20231109]bbed p命令dba引數問題.txt
- [20210831]bbed讀取資料塊6.txt
- [20210930]bbed恢復刪除的資料.txt
- [20210323]bbed讀取資料塊5.txt
- [20210318]bbed讀取資料塊2.txt
- [20210319]bbed讀取資料塊3.txt
- [20201221]spfile設定問題.txt
- [20181122]bbed人為修改事務提交標誌.txt
- [20231023]生成bbed的執行指令碼(bash shell).txt指令碼
- [20200220]windows設定keepalive引數.txtWindows
- WinAppDriver 等待時間設定技巧APP
- pandas引數設定小技巧
- Metasploit設定VERBOSE引數技巧
- Metasploit設定HttpTrace引數技巧HTTP