Chinaunix首页 | 论坛 | 博客
  • 博客访问: 345865
  • 博文数量: 38
  • 博客积分: 2432
  • 博客等级: 少校
  • 技术积分: 504
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-20 09:49
个人简介

GBase 8t/Informix数据库技术支持。

文章分类

全部博文(38)

文章存档

2011年(2)

2010年(14)

2009年(11)

2008年(11)

分类: DB2/Informix

2010-09-13 17:05:35

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(页)已经使用)
阅读(1263) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

zjwmv2011-12-08 23:20:20

威武啊 ,写个小程序解析出来吧 呵呵