SYBASE数据库优化设置.docVIP

  1. 1、本文档共4页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  5. 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  6. 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  7. 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  8. 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
SYBASE数据库优化设置

1 .优化引擎 修改最大在线引擎数参数值“max online engines” 1 sp_configure max online engines,4 修改启动引擎数参数值“number of engines at startup” 2 sp_configure number of engines at startup,4 2 .优化共享内存 修改允许分配最大的共享内存参数值allocate max shared memory 3 sp_configure allocate max shared memory,1 修改最大内存参数值max memory,该值大小一般为服务器 没有其它应用 内存的80%。 4 sp_configure max memory,820000 说明:单位为2K的页 3 .优化网络连接、设备数量等参数 修改用户连接数参数值number of user connections 5 sp_configure number of user connections,200 修改设备数参数值number of devices 6 sp_configure number of devices,20 修改锁数量参数值number of locks 7 sp_configure number of locks,50000 4 .优化tempdb 添加tempdb数据库设备 8 disk init name tempdb, physname /***/tempdb.dat, vdevno 8,size 256000 修改数据库tempdb增加tempdb设备 9 alter database tempdb on tempdb 400 从各段中删除master主设备 10 sp_dropsegment default,tempdb,master sp_dropsegment system,tempdb,master sp_dropsegment logsegment,tempdb,master 5 .优化高速缓存 修改过程缓存大小 sp_configure procedure cache size,51200 为tempdb数据库创建命名高速数据缓存并绑定,同时增加16K的缓冲池 sp_cacheconfig tempdb_cache,256M sp_bindcache tempdb_cache,tempdb sp_poolconfig tempdb_cache,128M,16K 修改缺省数据高速缓存default data cache大小 sp_cacheconfig default data cache,500M 行级锁 sp_configure lock scheme,1,datarows go 索引数 sp_configure number of open indexes,5000 go 对象数 sp_configure number of open objects,5000 go 6 .观察内存分配置状况 dbcc traceon 3604 go dbcc memusage go dbcc traceoff 3604 go 重启数据库服务器两次. 6.设置数据库选项 Isql –Usa –Secmt use master go sp_dboption ecmtdb,select into/bulkcopy/pllsort,true go checkpoint go sp_dboption ecmtdb,trunc log on chkpt,true 设置数据库自动截断日志或者在sybase central 得数据库属性对话框得选项页中选择“在检查点上截断日志”项。Isql –Usa –Secmt dbcc checkdb ecmtdb go 执行约几分钟. 7.重整索引 第一步:先在ecmtdb中生成重整索引的语句 select update index statistics + name from sysobjects where type like %U% and name not like z% and name not like y% order by name 得到以下的语句: update index statistics FLOWTYPE_10000 update index statistics MID_10000 update index statistics MID_CIRCUIT update index statistics MID_CUSTOMER update index statistics MID_NE

文档评论(0)

haocen + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档