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

SAP Sybase SQL Anywhere 16.0 (中文) » SQL Remote » 管理 SQL Remote 系统 » 复制错误的报告和处理

 

复制错误处理过程

设置 replication_error 选项以在发生 SQL 错误时调用某一过程。缺省情况下,当发生 SQL 错误时,不会调用任何过程。

调用的过程必须具有类型为 CHAR、VARCHAR 或 LONG VARCHAR 的一个参数。SQL 错误消息会调用一次该过程,并且导致该错误的 SQL 语句也会调用一次该过程。

要设置 replication_error 选项,请执行以下语句。remote-user 是 SQL Remote 消息代理 (dbremote) 命令中的发布者名称,procedure-name 是检测到 SQL 错误时调用的过程。

SET OPTION
remote-user.replication_error
= 'procedure-name';
 另请参见

从远程数据库收集错误
接收关于远程数据库错误的电子邮件通知