Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 数据库管理 » 监控数据库 » SQL Anywhere SNMP Extension Agent » 使用 SQL Anywhere SNMP Extension Agent

 

使用 SQL Anywhere SNMP Extension Agent 执行存储过程

SQL Anywhere MIB 包含一个 OID,它允许您使用 SQL Anywhere SNMP Extension Agent 来执行存储过程。要执行存储过程,SQL Anywhere SNMP Extension Agent 用来连接的用户必须满足以下条件之一:

  • 具有该过程的执行权限

  • 是该过程的所有者

  • 具有 DBA 权限

将忽略过程生成的所有结果集或返回值。

要使用 SQL Anywhere SNMP Extension Agent 执行存储过程,请将 saAgent.saProc 的值(OID 1.3.6.1.4.1.897.2.3.5.db,其中 dbsasnmp.ini 文件中的数据库编号)设置为代表存储过程名称的字符串。或者,可以向过程提供参数;如果未提供任何参数,则将括号附加到过程名称上。

例如,将 saAgent.saProc 的值设置为字符串 pchin.updatesales( 'param1', 2) 将调用用户 pchin 拥有的 updatesales 存储过程。

将此 OID 的值设置为过程名的方式要视 SNMP 管理软件而定。请参见SQL Anywhere MIB