互联网服务

缓冲池的疑问

看牛博士的关于调优db配置参数的内容,关于缓冲池有很多疑问,希望高人帮们解释一下书上说默认情况下应用程序使用缓冲池IBMDEFAULTBP,当 syscat.bufferpools目录表中该缓冲池的NPAGES为-1时,DB2数据库配置参数BUFFPAGE控制着缓冲池的大小,否则会忽略BUFFPAGE参数,并且用NPAGES参...显示全部
看牛博士的关于调优db配置参数的内容,关于缓冲池有很多疑问,希望高人帮们解释一下

书上说默认情况下应用程序使用缓冲池IBMDEFAULTBP,当 syscat.bufferpools目录表中该
缓冲池的NPAGES为-1时,DB2数据库配置参数BUFFPAGE控制着缓冲池的大小,否则会
忽略BUFFPAGE参数,并且用NPAGES参数指定的页数创建缓冲池。

以下是我的环境中buffpools的参数:
db2 "select bpname,npages,pagesize from syscat.bufferpools"

BPNAME                                NPAGES      PAGESIZE   
----------------------------------------------------------------------------------
IBMDEFAULTBP                           -2         4096
DB_BP32K                                  -2       32768
DB_LOG_BP32K                         -2       32768收起
参与10

查看其它 8 个回答wksw的回答

wkswwksw数据库管理员国外银行
当self tuning被激活时,相应bufferpool的npages就是-2

牛博书上的这段话其实来自于SQL1482W的解释

dv01 {/home/dhost} > db2 ? sql1482


SQL1482W  The BUFFPAGE parameter will only be used if one of the buffer
      pools is defined with a size of -1.

Explanation:

This is a warning that the BUFFPAGE database configuration parameter
will be ignored if none of the database's buffer pools is defined with a
size of -1. -1 indicates that the buffer pool is to use the BUFFPAGE
parameter as the number of buffer pool pages.

User response:

You can select from the SYSCAT.BUFFERPOOLS to review the buffer pool
definitions. If none of the buffer pools are defined with size -1
(NPAGES), then setting the BUFFPAGE parameter will not change the size
of the buffer pools for the database.
金融其它 · 2012-10-25
浏览1289

回答者

wksw
数据库管理员国外银行

wksw 最近回答过的问题

回答状态

  • 发布时间:2012-10-25
  • 关注会员:1 人
  • 回答浏览:1289
  • X社区推广