ehxz 发表于 2008-3-6 22:15:42

sybase ase 安装后的系统配置(必须调整的参数)

$isql -Usa -P -Sservername
A:配置内存
1>sp_configure 'max memory',mmm(单位为2k)
2>go
1>sp_configure 'allocate max shared mem',1
2>go
上面命令配置sybase使用mmm*2k内在,通常配置为系统内存的60-70%,重起生效。
max memory生效后,配置dat cache和procedure cache:
1>sp_cacheconfig 'default data cache','xxxM'
2>go
通常配置为max memory的50%,以M为单位。
1>sp_configure 'procedure cache size',yyy(单位为2k)
2>go
通常配置为max memory的20%,以2k为单位。
B:配置CPU
1>sp_configure 'max online engines',n
2>go
1>sp_configure 'number of engines at startup',n
2>go
若系统CPU大于两个配置为系统实际CPU数-1,重起生效。
C:其它
1>sp_configure 'allocate max shared mem',0
2>go
静态内存参数生效后,该参数配置为0,不必重起。
1>sp_configure 'number of locks',10000
2>go
按实际要求修改,随时可配置
1>sp_configure 'number of user connections',50
2>go
按应用实际要求修改,随时可配置
页: [1]
查看完整版本: sybase ase 安装后的系统配置(必须调整的参数)