详解sybase配置参数

数据库
sybase数据库配置是我们都非常关注的问题,下文对sybase数据库中的配置参数作了详细的说明,希望对您能够有所帮助。

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

 

 

 

【编辑推荐】

Sybase数据库维护技巧总结

深入探究SYBASE数据库日志

Sybase日期函数应用示例

Sybase数据库函数全介绍

Sybase批量操作的实现

责任编辑:段燃 来源: 互联网
相关推荐

2010-11-29 13:39:13

Sybase字段类型

2010-11-29 14:33:22

Sybase用户管理

2010-09-26 11:00:48

JVM参数配置

2010-09-17 15:57:23

TomcatJVM

2023-09-01 08:18:53

Tomcat配置参数

2009-09-23 17:16:59

报表参数

2009-07-06 23:30:22

2011-03-08 10:58:09

Sybase数据库

2018-11-01 10:34:37

JVM内存配置

2024-01-15 16:46:35

Nginx服务器

2010-06-01 17:14:03

Rsync 参数

2010-06-21 16:13:57

Linux ar参数

2010-03-11 11:04:17

Linux fstab

2011-03-02 13:12:37

vsftpd配置

2023-03-29 23:23:00

MyBatis参数框架

2009-07-14 17:34:53

Webwork配置

2010-09-25 13:31:00

TomcatJVM

2009-08-16 20:08:28

linux中w命令参数w命令参数linux命令行参数

2009-08-16 19:43:07

linux中touchtouch命令linux命令行参数

2010-07-26 10:37:00

Perl模式匹配
点赞
收藏

51CTO技术栈公众号