Oracle block itl slot 之flag

dump出Oracle block后,可以看到事物槽,包含有事物槽号(ITL),XID,UBA,FLAG,LCK,SCN。
本文主要讨论FLAG标记的规则,其中FLAG在block中占用1个字节大小。
我们知道FLAG各种标记位代表不同意思,以下为不同标记位代表不同意思:
---- = transaction is active, or committed pending cleanout

C--- = transaction has been committed and locks cleaned out

-B-- = this undo record contains the undo for this ITL entry

--U- = transaction committed (maybe long ago); SCN is an upper bound

---T = transaction was still active at block cleanout SCN
看上面的标记位有一定的规律可循,以下为测试过程,其中07代表锁的行数

BBED> modify 0x0700

Itl Xid Uba Flag Lck Scn/Fsc
0x01 0x0023.02f.0000004e 0x0280073e.0010.2b --U- 3 fsc 0x0000.0811d995
0x02 0x0029.02d.0000004d 0x028008c5.0010.37 [color=red]----[/color] 7 fsc 0x0a00.0811d8b7


BBED> modify 0x0780
Itl Xid Uba Flag Lck Scn/Fsc
0x01 0x0023.02f.0000004e 0x0280073e.0010.2b --U- 3 fsc 0x0000.0811d995
0x02 0x0029.02d.0000004d 0x028008c5.0010.37 [color=red]C---[/color] 0 scn 0x0a00.0811d8b7


BBED> modify 0x0740
Itl Xid Uba Flag Lck Scn/Fsc
0x01 0x0023.02f.0000004e 0x0280073e.0010.2b --U- 3 fsc 0x0000.0811d995
0x02 0x0029.02d.0000004d 0x028008c5.0010.37 [color=red]-B--[/color] 7 fsc 0x0a00.0811d8b7

BBED> modify 0x0720
Itl Xid Uba Flag Lck Scn/Fsc
0x01 0x0023.02f.0000004e 0x0280073e.0010.2b --U- 3 fsc 0x0000.0811d995
0x02 0x0029.02d.0000004d 0x028008c5.0010.37 [color=red]--U-[/color] 7 fsc 0x0a00.0811d8b7

BBED> modify 0x0710
Itl Xid Uba Flag Lck Scn/Fsc
0x01 0x0023.02f.0000004e 0x0280073e.0010.2b --U- 3 fsc 0x0000.0811d995
0x02 0x0029.02d.0000004d 0x028008c5.0010.37 [color=red]---T[/color] 7 fsc 0x0a00.0811d8b7
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值