登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

欢迎光临我的博客

 
 
 

日志

 
 

nc DB2 参数配置  

2008-07-07 15:17:54|  分类: 学习 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

 

DB2 参数配置

针对2颗CPU、2G内存配置:

 

----------------------------------------------------------------------------------

-- 数据库管理器配置参数

-- Database Manager Configuration

----------------------------------------------------------------------------------

 

--1.应用程序支持层堆大小 (aslheapsz) (4K)

update dbm cfg using aslheapsz  50;

 

--2.排序堆阈值 (sheapthres) (4K)

update dbm cfg using sheapthres  20000 ;

 

--3.代理程序的最大数目 (maxagents)

update dbm cfg using maxagents  100;

 

--4.代理程序池大小 (NUM_POOLAGENTS)

update dbm cfg using NUM_POOLAGENTS  30;

 

--------------------------------------------------------------------------------------

-- 数据库配置参数

-- Database Configuration

--------------------------------------------------------------------------------------

 

--1.数据库堆 (DBHEAP)(4K)

update database configuration for ncdata00 using DBHEAP  4096;

 

--2.日志缓冲区大小 (logbufsz) (4K)

update database configuration for ncdata00 using logbufsz  512;

 

--3.编目高速缓存大小 (CATALOGCACHE_SZ) (4K)

update database configuration for ncdata00 using CATALOGCACHE_SZ  512;

 

--4.用于锁定列表的最大内存 (locklist) (4K)

update database configuration for ncdata00 using locklist  4096;

 

--5.最大应用程序控制堆大小 (app_ctl_heap_sz) (4K)

update database configuration for ncdata00 using app_ctl_heap_sz  1024;

 

--6.排序堆大小 (sortheap)(4K)

update database configuration for ncdata00 using sortheap  2048;

 

--7.语句堆大小 (stmtheap) (4K)

update database configuration for ncdata00 using stmtheap  2048;

 

--8.应用程序堆大小 (applheapsz)(4K)

update database configuration for ncdata00 using applheapsz  512;

 

--9.程序包高速缓存大小 (pckcachesz) (4K)

update database configuration for ncdata00 using pckcachesz  10240;

 

--12. 逐步升级前锁定列表的最大百分比 (maxlocks)

update database configuration for ncdata00 using maxlocks  18;

 

--13. 异步页清除程序数目 (NUM_IOCLEANERS)

update database configuration for ncdata00 using NUM_IOCLEANERS  3;

 

--14. I/O 服务器数目 (NUM_IOSERVERS)

update database configuration for ncdata00 using NUM_IOSERVERS  3;

 

--15. 活动应用程序的最大数目 (MAXAPPLS)

update database configuration for ncdata00 using MAXAPPLS  50;

 

--16. 活动应用程序的平均数目 (AVG_APPLS)

update database configuration for ncdata00 using AVG_APPLS  30;

 

--17.日志文件的大小 (logfilsiz) (4K)

update database configuration for ncdata00 using logfilsiz  4096;

 

--18.主日志文件数目 (logprimary)

update database configuration for ncdata00 using logprimary  6;

 

--19.辅助日志文件数目 (LOGSECOND)

update database configuration for ncdata00 using logprimary  100;

 

--20.组提交计数 (MINCOMMIT)

update database configuration for ncdata00 using MINCOMMIT  3;

 

 

 

针对4颗CPU、4G内存配置:

 

----------------------------------------------------------------------------------

-- 数据库管理器配置参数

-- Database Manager Configuration

----------------------------------------------------------------------------------

 

--1.应用程序支持层堆大小 (aslheapsz) (4K)

update dbm cfg using aslheapsz  50;

 

--2.排序堆阈值 (sheapthres) (4K)

update dbm cfg using sheapthres  20000 ;

 

--3.代理程序的最大数目 (maxagents)

update dbm cfg using maxagents  150;

 

--4.代理程序池大小 (NUM_POOLAGENTS)

update dbm cfg using NUM_POOLAGENTS  60;

 

--------------------------------------------------------------------------------------

-- 数据库配置参数

-- Database Configuration

--------------------------------------------------------------------------------------

 

--1.数据库堆 (DBHEAP)(4K)

update database configuration for ncdata00 using DBHEAP  4096;

 

--2.日志缓冲区大小 (logbufsz) (4K)

update database configuration for ncdata00 using logbufsz  512;

 

--3.编目高速缓存大小 (CATALOGCACHE_SZ) (4K)

update database configuration for ncdata00 using CATALOGCACHE_SZ  1024;

 

--4.用于锁定列表的最大内存 (locklist) (4K)

update database configuration for ncdata00 using locklist  5120;

 

--5.最大应用程序控制堆大小 (app_ctl_heap_sz) (4K)

update database configuration for ncdata00 using app_ctl_heap_sz  1024;

 

--6.排序堆大小 (sortheap)(4K)

update database configuration for ncdata00 using sortheap  2048;

 

--7.语句堆大小 (stmtheap) (4K)

update database configuration for ncdata00 using stmtheap  2048;

 

--8.应用程序堆大小 (applheapsz)(4K)

update database configuration for ncdata00 using applheapsz  512;

 

--9.程序包高速缓存大小 (pckcachesz) (4K)

update database configuration for ncdata00 using pckcachesz  15360;

 

--12. 逐步升级前锁定列表的最大百分比 (maxlocks)

update database configuration for ncdata00 using maxlocks  15;

 

--13. 异步页清除程序数目 (NUM_IOCLEANERS)

update database configuration for ncdata00 using NUM_IOCLEANERS  5;

 

--14. I/O 服务器数目 (NUM_IOSERVERS)

update database configuration for ncdata00 using NUM_IOSERVERS  4;

 

--15. 活动应用程序的最大数目 (MAXAPPLS)

update database configuration for ncdata00 using MAXAPPLS  100;

 

--16. 活动应用程序的平均数目 (AVG_APPLS)

update database configuration for ncdata00 using AVG_APPLS  60;

 

--17.日志文件的大小 (logfilsiz) (4K)

update database configuration for ncdata00 using logfilsiz  4096;

 

--18.主日志文件数目 (logprimary)

update database configuration for ncdata00 using logprimary  6;

 

--19.辅助日志文件数目 (LOGSECOND)

update database configuration for ncdata00 using logprimary  100;

 

--20.组提交计数 (MINCOMMIT)

update database configuration for ncdata00 using MINCOMMIT  5;

 

 

针对8颗CPU、8G内存配置:

 

----------------------------------------------------------------------------------

-- 数据库管理器配置参数

-- Database Manager Configuration

----------------------------------------------------------------------------------

 

--1.应用程序支持层堆大小 (aslheapsz) (4K)

update dbm cfg using aslheapsz  50;

 

--2.排序堆阈值 (sheapthres) (4K)

update dbm cfg using sheapthres  20000 ;

 

--3.代理程序的最大数目 (maxagents)

update dbm cfg using maxagents  100;

 

--4.代理程序池大小 (NUM_POOLAGENTS)

update dbm cfg using NUM_POOLAGENTS  30;

 

--------------------------------------------------------------------------------------

-- 数据库配置参数

-- Database Configuration

--------------------------------------------------------------------------------------

 

--1.数据库堆 (DBHEAP)(4K)

update database configuration for ncdata00 using DBHEAP  5120;

 

--2.日志缓冲区大小 (logbufsz) (4K)

update database configuration for ncdata00 using logbufsz  1024;

 

--3.编目高速缓存大小 (CATALOGCACHE_SZ) (4K)

update database configuration for ncdata00 using CATALOGCACHE_SZ  1024;

 

--4.用于锁定列表的最大内存 (locklist) (4K)

update database configuration for ncdata00 using locklist  5120;

 

--5.最大应用程序控制堆大小 (app_ctl_heap_sz) (4K)

update database configuration for ncdata00 using app_ctl_heap_sz  1024;

 

--6.排序堆大小 (sortheap)(4K)

update database configuration for ncdata00 using sortheap  5120;

 

--7.语句堆大小 (stmtheap) (4K)

update database configuration for ncdata00 using stmtheap  4096;

 

--8.应用程序堆大小 (applheapsz)(4K)

update database configuration for ncdata00 using applheapsz  512;

 

--9.程序包高速缓存大小 (pckcachesz) (4K)

update database configuration for ncdata00 using pckcachesz  20480;

 

--13. 异步页清除程序数目 (NUM_IOCLEANERS)

update database configuration for ncdata00 using NUM_IOCLEANERS  8;

 

--14. I/O 服务器数目 (NUM_IOSERVERS)

update database configuration for ncdata00 using NUM_IOSERVERS  5;

 

--15. 活动应用程序的最大数目 (MAXAPPLS)

update database configuration for ncdata00 using MAXAPPLS  300;

 

--16. 活动应用程序的平均数目 (AVG_APPLS)

update database configuration for ncdata00 using AVG_APPLS  200;

 

--17.日志文件的大小 (logfilsiz) (4K)

update database configuration for ncdata00 using logfilsiz  5120;

 

--18.主日志文件数目 (logprimary)

update database configuration for ncdata00 using logprimary  6;

 

--19.辅助日志文件数目 (LOGSECOND)

update database configuration for ncdata00 using logprimary  100;

 

--20.组提交计数 (MINCOMMIT)

update database configuration for ncdata00 using MINCOMMIT  5;

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  评论这张
 
阅读(901)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018