[转帖]db2设置参数数据及更新_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2741 | 回复: 0   主题: [转帖]db2设置参数数据及更新        下一篇 
    本主题由 Administrator 于 2014-10-30 23:19:34 移动
xuefeng
注册用户
等级:上士
经验:315
发帖:69
精华:0
注册:2011-8-17
状态:离线
发送短消息息给xuefeng 加好友    发送短消息息给xuefeng 发消息
发表于: IP:您无权察看 2014-10-30 10:40:43 | [全部帖] [楼主帖] 楼主

#!/bin/sh

# *******************************************************

# DB2 ENVIRONMENT VARIABLES

# *******************************************************

db2set DB2_MMAP_READ=NO

db2set DB2_MMAP_WRITE=NO

db2set DB2_FMP_COMM_HEAPSZ=

db2set DB2_EVALUNCOMMITTED=YES

db2set DB2_SKIPINSERTED=YES

db2set DB2_SKIPDELETED=YES

db2set DB2_HASH_JOIN=NO

# *******************************************************

# DB2 DATABASE MANAGER SETTINGS; NOTE: MONITORING

# IS OFF TO REDUCE CPU; YOUR APPLICATION MAY REQUIRE

# MONITORS TO BE ON, SO CHANGE ACCORDINGLY

# *******************************************************

db2 update dbm cfg using NUMDB 4

db2 update dbm cfg using DFT_MON_BUFPOOL OFF

db2 update dbm cfg using DFT_MON_LOCK OFF

db2 update dbm cfg using DFT_MON_SORT OFF

db2 update dbm cfg using DFT_MON_STMT OFF

db2 update dbm cfg using DFT_MON_TABLE OFF

db2 update dbm cfg using DFT_MON_UOW OFF

db2 update dbm cfg using DFT_MON_TIMESTAMP OFF

db2 update dbm cfg using MON_HEAP_SZ 10000

db2 update dbm cfg using UDF_MEM_SZ 256

db2 update dbm cfg using JAVA_HEAP_SZ 512

db2 update dbm cfg using SHEAPTHRES 10000

db2 update dbm cfg using DIR_CACHE YES

db2 update dbm cfg using ASLHEAPSZ 15

db2 update dbm cfg using RQRIOBLK 65535

db2 update dbm cfg using QUERY_HEAP_SZ 16384

db2 update dbm cfg using DRDA_HEAP_SZ 128

# *******************************************************

# DB2 DATABASE MANAGER SETTINGS FOR CONNECTIONS AND AGENTS

# SHOWN HERE SUPPORTS 1200 CONCURRENT CONNECTIONS!

# *******************************************************

db2 update dbm cfg using FENCED_POOL 200

db2 update dbm cfg using NUM_INITAGENTS 50

db2 update dbm cfg using MAXAGENTS 200

db2 update dbm cfg using MAX_COORDAGENTS 200

db2 update dbm cfg using NUM_INITFENCED 50

db2 update dbm cfg using NUM_POOLAGENTS 200

db2 update dbm cfg using MAX_CONNECTIONS 200

# *******************************************************

# UPDATE YOUR DATABASE SETTINGS

# *******************************************************

db2 update db cfg for yourdb using DFT_QUERYOPT 2

db2 update db cfg for yourdb using DBHEAP 1200

db2 update db cfg for yourdb using CATALOGCACHE_SZ 64

db2 update db cfg for yourdb using LOGBUFSZ 128

db2 update db cfg for yourdb using UTIL_HEAP_SZ 5000

db2 update db cfg for yourdb using LOCKLIST 1000

db2 update db cfg for yourdb using APP_CTL_HEAP_SZ 1000

db2 update db cfg for yourdb using APPGROUP_MEM_SZ 60000

db2 update db cfg for yourdb using SORTHEAP 256

db2 update db cfg for yourdb using STMTHEAP 4096

db2 update db cfg for yourdb using APPLHEAPSZ 4096

db2 update db cfg for yourdb using PCKCACHESZ 5000

db2 update db cfg for yourdb using STAT_HEAP_SZ 4384

db2 update db cfg for yourdb using MAXLOCKS 25

db2 update db cfg for yourdb using LOCKTIMEOUT 60

db2 update db cfg for yourdb using CHNGPGS_THRESH 60

db2 update db cfg for yourdb using NUM_IOCLEANERS 4

db2 update db cfg for yourdb using NUM_IOSERVERS 6

db2 update db cfg for yourdb using MAXAPPLS 1200

db2 update db cfg for yourdb using AVG_APPLS 1

db2 update db cfg for yourdb using MAXFILOP 64

db2 update db cfg for yourdb using LOGFILSIZ 1000

db2 update db cfg for yourdb using LOGPRIMARY 10

db2 update db cfg for yourdb using LOGSECOND 20

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

设置当前模式:

set current path = oais(模式名)

查看当前的模式:

db2 values(current path)

设置为默认的、缺省的:

set current path = system path

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

详细的列表信息请查看:

see IBM publib site for Database tuning overview.

--转自 北京联动北方科技有限公司

该贴由system转至本版2014-10-30 23:19:34




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论