签到成功

知道了

CNDBA社区CNDBA社区

DB2 DPF数据库FCM -6040异常

2021-10-07 10:53 1479 0 原创 DB2
作者: hbhe0316

1 问题现象
应用日志抛出http://www.cndba.cn/hbhe0316/article/4890

No FCM buffers are available SQLCODE=-6040

(二)问题诊断

http://www.cndba.cn/hbhe0316/article/4890

#db2 get dbm cfg | grep -i fcm
 FCM_NUM_BUFFERS为AUTOMATIC(10240)
 FCM_BUFFER_SIZE为32768
 执行命令
#db2 ? SQLCODE6040
If the error persists, increase the number of FCM buffers (
fcm_num_buffers ) specified in the database manager configuration file,
then try the request again.

If FCM_NUM_BUFFER is already set to automatic, you should also check the
overall memory consumption on your system to determine if other
applications are using inappropriate amounts of memory, and preventing
the allocation of FCM buffers.

IBM建议收集内存日志查看。http://www.cndba.cn/hbhe0316/article/4890

http://www.cndba.cn/hbhe0316/article/4890
http://www.cndba.cn/hbhe0316/article/4890http://www.cndba.cn/hbhe0316/article/4890
http://www.cndba.cn/hbhe0316/article/4890

(三) 数据收集http://www.cndba.cn/hbhe0316/article/4890

nohup sar -S 1 360 >>/tmp/sar.swap.out &
nohup sar -r 1 360 >> /tmp/sar.mem.out &
nohup vmstat -wt 1 360 >> /tmp/vmstat.wt.out &
nohup db2pd -dbptnmem -alldbp -rep 5 10 –o /tmp/db2pd.dbptnmem.out &
nohup db2pd -inst -memset -mempool -alldbp -rep 5 10 -o /tmp/db2pd.setpools.out &
nohup db2 get snapshot for fcm for all dbpartitionnums global >>/tmp/db2getsnapshot.out
nohup db2pd –db <dbname> -act –rep 5 10 –o /tmp/db2pd.act.out

(四)恢复步骤
查看了收集日志,并不是系统内存以及数据库内存不足导致FCM不足,调整了MAX_QUERYDEGREEhttp://www.cndba.cn/hbhe0316/article/4890

http://www.cndba.cn/hbhe0316/article/4890

db2 update dbm cfg using MAX_QUERYDEGREE 32

版权声明:本文为博主原创文章,未经博主允许不得转载。

DB2

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
hbhe0316

hbhe0316

关注

1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。

  • 889
    原创
  • 1
    翻译
  • 13
    转载
  • 24
    评论
  • 访问:1166982次
  • 积分:1523
  • 等级:核心会员
  • 排名:第6名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ