数据库服务器参数配置说明

  • 格式:pdf
  • 大小:178.58 KB
  • 文档页数:11

数据库服务器参数配置说明 目录 DB2的参数配置说明 数据库环境变量配置 2CPU,2G内存配置建议 4CPU,4G内存配置建议 8CPU,8G内存配置建议 ORACLE的参数配置说明

公共参数(适用于所有硬件配置)

2CPU,2G内存配置建议 4CPU,4G内存,32位数据库配置建议 4CPU,4G内存,64位数据库配置建议 8CPU,8G内存配置建议 SQL Server数据库配置建议

DB2的参数配置说明 下面参数是针对NC应用建议性调整,具体需要根据应用规模和特点再调整 数据库环境变量设置

db2set DB2_SKIPINSERTED=YES db2set DB2_INLIST_TO_NLJN=YES db2set DB2_MINIMIZE_LISTPREFETCH=YES db2set DB2_ANTIJOIN=EXTEND

2CPU,2G内存配置建议 系统大约支持用户并发数:30左右 数据库管理器配置参数 --1.应用程序支持层堆大小 (aslheapsz) (4K) update dbm cfg using aslheapsz 256;

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

数据库配置参数 假设NC数据库名称为“ncdata00” --1.数据库堆 (DBHEAP)(4K) update database configuration for ncdata00 using DBHEAP 4096 automatic;

--2.日志缓冲区大小 (logbufsz) (4K) update database configuration for ncdata00 using logbufsz 512 automatic;

--3.编目高速缓存大小 (CATALOGCACHE_SZ) (4K) update database configuration for ncdata00 using CATALOGCACHE_SZ 1024 automatic;

--4.用于锁定列表的最大内存 (locklist) (4K) update database configuration for ncdata00 using locklist 4096 automatic;

--5.最大应用程序控制堆大小 (app_ctl_heap_sz) (4K) -- update database configuration for ncdata00 using app_ctl_heap_sz 2048; update database configuration for ncdata00 using appl_memory automatic; --6.排序堆大小 (sortheap)(4K) update database configuration for ncdata00 using sortheap 2048 automatic;

--7.语句堆大小 (stmtheap) (4K) update database configuration for ncdata00 using stmtheap 2048 automatic;

--8.应用程序堆大小 (applheapsz)(4K) update database configuration for ncdata00 using applheapsz 1024 automatic; --9.程序包高速缓存大小 (pckcachesz) (4K) update database configuration for ncdata00 using pckcachesz 10240 automatic;

--10. 逐步升级前锁定列表的最大百分比 (maxlocks) update database configuration for ncdata00 using maxlocks 80;

--11. 异步页清除程序数目 (NUM_IOCLEANERS) update database configuration for ncdata00 using NUM_IOCLEANERS 1 automatic;

--12. I/O 服务器数目 (NUM_IOSERVERS) update database configuration for ncdata00 using NUM_IOSERVERS 1 automatic;

--13. 活动应用程序的最大数目 (MAXAPPLS) update database configuration for ncdata00 using MAXAPPLS 50;

--14. 活动应用程序的平均数目 (AVG_APPLS) update database configuration for ncdata00 using AVG_APPLS 30;

--15.日志文件的大小 (logfilsiz) (4K) update database configuration for ncdata00 using logfilsiz 40960;

--16.主日志文件数目 (logprimary) update database configuration for ncdata00 using logprimary 12;

--17.辅助日志文件数目 (LOGSECOND) update database configuration for ncdata00 using logsecond 100;

--18.组提交计数 (MINCOMMIT) update database configuration for ncdata00 using MINCOMMIT 1; [返回页首]

4CPU,4G内存配置建议

系统大约支持用户并发数:80左右 数据库管理器配置参数

--1.应用程序支持层堆大小 (aslheapsz) (4K) update dbm cfg using aslheapsz 512;

--2.排序堆阈值 (sheapthres) (4K) update dbm cfg using sheapthres 30000 ; --3.代理程序的最大数目 (maxagents) update dbm cfg using maxagents 150;

--4.代理程序池大小 (NUM_POOLAGENTS) update dbm cfg using NUM_POOLAGENTS 60;

数据库配置参数 假设NC数据库名称为“ncdata00” --1.数据库堆 (DBHEAP)(4K) update database configuration for ncdata00 using DBHEAP 7168 automatic;

--2.日志缓冲区大小 (logbufsz) (4K) update database configuration for ncdata00 using logbufsz 1024 automatic;

--3.编目高速缓存大小 (CATALOGCACHE_SZ) (4K) update database configuration for ncdata00 using CATALOGCACHE_SZ 2048 automatic;

--4.用于锁定列表的最大内存 (locklist) (4K) update database configuration for ncdata00 using locklist 8192 automatic;

--5.最大应用程序控制堆大小 (app_ctl_heap_sz) (4K) -- update database configuration for ncdata00 using app_ctl_heap_sz 3072; update database configuration for ncdata00 using appl_memory automatic;

--6.排序堆大小 (sortheap)(4K) update database configuration for ncdata00 using sortheap 3072 automatic;

--7.语句堆大小 (stmtheap) (4K) update database configuration for ncdata00 using stmtheap 3072 automatic;

--8.应用程序堆大小 (applheapsz)(4K) update database configuration for ncdata00 using applheapsz 1024 automatic;

--9.程序包高速缓存大小 (pckcachesz) (4K) update database configuration for ncdata00 using pckcachesz 15360 automatic;

--12. 逐步升级前锁定列表的最大百分比 (maxlocks) update database configuration for ncdata00 using maxlocks 80;

--13. 异步页清除程序数目 (NUM_IOCLEANERS) update database configuration for ncdata00 using NUM_IOCLEANERS 1 automatic;