解密INFORMIX PAGE_1CKPT页信息

PAGE_1CKPT的物理位置是rootdbs上保留页的第3页(编号是2,编号从0开始)

示例使用的物理日志大小为10MB(5000页),有6个大小为5MB(2500页)的逻辑日志
使用oncheck -pP 1 2 输出其信息如下:

请输入图片描述

页最前24字节为页头,不再详细介绍。

slot 1中:
1-4字节:Time stamp of checkpoint 0x00127927
5-8字节:Time of checkpoint 0x4c8dda89 (为自1970-01-01 00:00:00以来的秒数)
13-16:9-12字节:Physical log begin address 0x00000005:0x00000035 (5:53 即chunk 5的第53页开始)
17-20字节:Physical log size 0x00001388 (10进制的5000(页),)
21-24字节:Physical log position at Ckpt 0x00000a66 (10进制的2662)
25-28字节:Logical log unique identifier 0x0000002e (10进制的46)
29-32字节:Logical log position at Ckpt 0x00008 018 (这个拆分成2部分,5位用于页,3位用于大小) 【Logical log position at Ckpt 0xc018 (Page 12, byte 24)】
33-36字节:Checkpoint Interval 0x000002b9 (10进制的697)
37-40字节:DBspace descriptor page 0x00000004
41-44字节:Chunk descriptor page 0x00000006
47-48字节:Mirror chunk descriptor page 0x00000008

slot 2-7为当前配置的logical log信息,以slot7为例
1-2字节 :Log file number 0x000c (10进制的12)
3-4字节 :Log file flags 0x0005 (5的含义是已经备份,3的含义是当前日志)
5-8字节 :Time stamp 0x00120d4f
9-12字节 :Date/Time file filled 0x4c88914b (为自1970-01-01 00:00:00以来的秒数)
13-16字节:Unique identifier 0x0000002a (10进制的42)
21-24:17-20字节:Physical location 0x0000000x:0x00003109 (10进制6:12553)
25-28字节:Log size 0x000009c4 (10进制的2500(页))
29-32字节:Number pages used 0x000001d7 (10进制的471(页)已经使用)

标签: none

添加新评论

Free Web Hosting