Sybase参数配置

sp_configure 'max online engines',4

go

--配置启动cpu个数

sp_configure 'number of engines at startup',4

go

--配置最大内存数

sp_configure 'max memory' ,2097151

go

--分配最大存储过程缓存

sp_configure 'procedure cache',102400

go

--配置高速缓存

sp_cacheconfig  'default data cache' , '700M'

go

--缺省缓存分配页大小

sp_poolconfig 'default data cache','200M','16K'

go

--网络包大小

sp_configure 'max network packet size',1024

go

--最大连接数 注意开发版(Develop Edition)不能修改连接数

sp_configure 'number of user connections',500  

go

--最大打开对象

sp_configure  'number of open object',9000

go

--最大索引

sp_configure  'number of open index',10000

go

--最大锁数

sp_configure  'number of locks',100000

go

--增加网络内存

--sp_configure  'additional network memory',1024

go

--锁内存

sp_configure  'lock shared memory',512

go

--优化tempdb

select dbid, name,segmap

from sysusages,  sysdevices

where sysdevices.low  <= sysusages.size +vstart

and sysdevices.high >=sysusages.size+vstart -1

and dbid =2

and (status=2 or status=3)

go

use tempdb

go

sp_dropsegment  'default',tempdb,master

go

sp_dropsegment  'logsegment',tempdb,master

go

 

select dbid, name,segmap

from sysusages,  sysdevices

where sysdevices.low  <= sysusages.size +vstart

and sysdevices.high >=sysusages.size+vstart -1

and dbid =2

and (status=2 or status=3)

go

sp_cacheconfig tempdb_cache, '100M'

go

sp_poolconfig tempdb_cache,'50M','16K'

go

sp_bindcache 'tempdb_cache',tempdb

go

sp_helpcache tempdb_cache

select name,id from syscharsets

dbcc traceon(3604)

dbcc memusage

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值