免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5568 | 回复: 4
打印 上一主题 下一主题

如何查看页的大小 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-04 19:36 |只看该作者 |倒序浏览
请问如何在aix下,查看db2的页大小,谢谢

论坛徽章:
2
丑牛
日期:2014-06-11 13:55:04ChinaUnix元老
日期:2015-02-06 15:16:14
2 [报告]
发表于 2010-01-04 21:14 |只看该作者
每个表空间pagesize是可以不一样的

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-11-09 06:20:00
3 [报告]
发表于 2010-01-05 16:03 |只看该作者

回复 #1 sweetlamb 的帖子

$ db2 connect to sample

   Database Connection Information

Database server        = DB2/AIX64 9.1.0
SQL authorization ID   = DB2INST1
Local database alias   = SAMPLE

$ db2 list tablespaces show detail

           Tablespaces for Current Database

Tablespace ID                        = 0
Name                                 = SYSCATSPACE
Type                                 = Database managed space
Contents                             = All permanent data. Regular table space.
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 16384
Useable pages                        = 16380
Used pages                           = 9464
Free pages                           = 6916
High water mark (pages)              = 9464
Page size (bytes)                    = 4096
Extent size (pages)                  = 4
Prefetch size (pages)                = 12
Number of containers                 = 1

Tablespace ID                        = 1
Name                                 = TEMPSPACE1
Type                                 = System managed space
Contents                             = System Temporary data
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 1
Useable pages                        = 1
Used pages                           = 1
Free pages                           = Not applicable
High water mark (pages)              = Not applicable
Page size (bytes)                    = 4096
Extent size (pages)                  = 32
Prefetch size (pages)                = 32
Number of containers                 = 1

Tablespace ID                        = 2
Name                                 = USERSPACE1
Type                                 = Database managed space
Contents                             = All permanent data. Large table space.
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 8192
Useable pages                        = 8160
Used pages                           = 1888
Free pages                           = 6272
High water mark (pages)              = 1888
Page size (bytes)                    = 4096
Extent size (pages)                  = 32
Prefetch size (pages)                = 96
Number of containers                 = 1

Tablespace ID                        = 3
Name                                 = IBMDB2SAMPLEREL
Type                                 = Database managed space
Contents                             = All permanent data. Large table space.
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 8192
Useable pages                        = 8160
Used pages                           = 672
Free pages                           = 7488
High water mark (pages)              = 672
Page size (bytes)                    = 4096
Extent size (pages)                  = 32
Prefetch size (pages)                = 96
Number of containers                 = 1

Tablespace ID                        = 4
Name                                 = SYSTOOLSPACE
Type                                 = Database managed space
Contents                             = All permanent data. Large table space.
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 8192
Useable pages                        = 8188
Used pages                           = 20
Free pages                           = 8168
High water mark (pages)              = 20
Page size (bytes)                    = 4096
Extent size (pages)                  = 4
Prefetch size (pages)                = 12
Number of containers                 = 1

Tablespace ID                        = 5
Name                                 = TS1
Type                                 = Database managed space
Contents                             = All permanent data. Large table space.
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 7680
Useable pages                        = 7648
Used pages                           = 96
Free pages                           = 7552
High water mark (pages)              = 96
Page size (bytes)                    = 4096
Extent size (pages)                  = 32
Prefetch size (pages)                = 96
Number of containers                 = 1

$

注意查看Page size (bytes)即可。

论坛徽章:
0
4 [报告]
发表于 2010-01-05 20:31 |只看该作者
谢谢LS

论坛徽章:
20
CU大牛徽章
日期:2013-04-17 11:48:26羊年新春福章
日期:2015-03-10 22:39:202015年中国系统架构师大会
日期:2015-06-29 16:11:282015亚冠之平阳省
日期:2015-07-31 09:19:042015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-09-30 06:20:002015亚冠之柏太阳神
日期:2015-10-19 20:29:5915-16赛季CBA联赛之天津
日期:2016-11-29 14:03:4315-16赛季CBA联赛之北控
日期:2016-12-24 20:51:492015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-12 20:58:532014年中国系统架构师大会
日期:2014-10-14 15:59:00
5 [报告]
发表于 2010-01-05 23:58 |只看该作者
学习学习
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP