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 Remote » SQL Remote 参考 » SQL Remote 实用程序和选项参考

 

SQL Remote 系统过程

以下存储过程名称和参数提供用于在 SQL Remote 数据库自定义复制的接口。

注意

除非另有规定,否则以下条件适用于事件挂接过程:

  • 存储过程必须具有 DBA 权限。

  • 过程不得提交或回退操作,也不得执行任何执行隐式提交的操作。该过程的操作通过调用应用程序自动提交。

  • 您可以通过启用消息代理详细模式,排除挂接问题。

#hook_dict 表

调用挂接前用以下 CREATE 语句创建 #hook_dict 表:

CREATE TABLE #hook_dict(
NAME VARCHAR(128) NOT NULL UNIQUE,
value VARCHAR(255) NOT NULL );

消息代理使用 #hook_dict 表将值传送给挂接函数;挂接函数使用 #hook_dict 表将值传送回消息代理。


sp_hook_dbremote_begin 系统过程
sp_hook_dbremote_end 系统过程
sp_hook_dbremote_shutdown 系统过程
sp_hook_dbremote_receive_begin 系统过程
sp_hook_dbremote_receive_end 系统过程
sp_hook_dbremote_send_begin
sp_hook_dbremote_send_end
sp_hook_dbremote_message_sent
sp_hook_dbremote_message_missing
sp_hook_dbremote_message_apply_begin
sp_hook_dbremote_message_apply_end