现在的位置: 首页 > 综合 > 正文

Sybase 关于MDA表的安装的一些体会

2012年08月26日 ⁄ 综合 ⁄ 共 1490字 ⁄ 字号 评论关闭

这段时间,研究Sybase Mda监控表,在安装的时候总是提示loopback服务连接不正确!后来发现是没有在dsedit工具里面家里loopback服务

建立loopback接口后,还要在isql里面执行语句

首先配置cis参数为1,表示

sp_configure 'enable cis'1
go

再次,在servers中增加一个loopback服务,一边监控访问【dsedit工具】也要添加相应的loopback接口

use master
go
sp_addserver loopback, 
null@@servername
go

这一句很重要,时期loopback服务的可访问权限

set cis_rpc_handling on
go

可以通过下面的方法来测试

exec loopback…sp_who 
go

 

下面就是安装了,这一步非常重要:

isql -U sa -P yourpassword -S YOURSERVER
-i $SYBASE/$SYBASE_ASE/scripts/installmontables
看看屏幕的输出,如果有错误,就要想办法去排除了.
现在,得授予sa一个mon_role的权限了

use master
go
grant role mon_role to sa
go

用下面的语句来测试授权是否成功

select * from master..monState
go

这里返回正常的话,就可以继续下面的操作了

 

sp_configure 'enable monitoring'1
go
sp_configure 
'sql text pipe active'1
go
sp_configure 
'sql text pipe max messages'100
go
sp_configure 
'plan text pipe active'1
go
sp_configure 
'plan text pipe max messages'100
go
sp_configure 
'statement pipe active'1
go
sp_configure 
'statement pipe max messages'100
go
sp_configure 
'errorlog pipe active'1
go
sp_configure 
'errorlog pipe max messages'100
go
sp_configure 
'deadlock pipe active'1
go
sp_configure 
'deadlock pipe max messages'100
go
sp_configure 
'wait event timing'1
go
sp_configure 
'process wait events'1
go
sp_configure 
'object lockwait timing'1
go
sp_configure 
'SQL batch capture'1
go
sp_configure 
'statement statistics active'1
go
sp_configure 
'per object statistics active'1
go

然后,需要修改一个静态参数

 

sp_configure "max SQL text monitored", 5120
go

现在,你要作的就是重新启动Sybase数据库服务器,然后你就可以使用MDA表来监测Sybase数据库的系统性能

2、如果要修改master系统表,就必须一单用户启动 就是在sqlsrvr 启动里面加一个-m参数!

抱歉!评论已关闭.