sybase配置參數是學習Sybase過程中必須要掌握的知識,下面就對Sybase配置參數進行分類介紹,如果您對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
--最大連接數
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