詳解sybase配置參數(shù)
sybase配置參數(shù)是學(xué)習(xí)sybase過程中必須要掌握的知識,下面就對sybase配置參數(shù)進(jìn)行分類介紹,如果您對sybase配置參數(shù) 方面感興趣的話,不妨一看。
sp_configure 'max online engines',4
go
--配置啟動(dòng)cpu個(gè)數(shù)
sp_configure 'number of engines at startup',4
go
--配置最大內(nèi)存數(shù)
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
--網(wǎng)絡(luò)包大小
sp_configure 'max network packet size',1024
go
--最大連接數(shù)
sp_configure 'number of user connections',500
go
--最大打開對象
sp_configure 'number of open object',9000
go
--最大索引
sp_configure 'number of open index',10000
go
--最大鎖數(shù)
sp_configure 'number of locks',100000
go
--增加網(wǎng)絡(luò)內(nèi)存
--sp_configure 'additional network memory',1024
go
--鎖內(nèi)存
sp_configure 'lock shared memory',512
go
--優(yōu)化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
【編輯推薦】