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;
评论