可对 SQL Remote 消息代理 (dbremote) 进行设置,使其接收和处理进来的消息,扫描事务日志,创建并发送外发消息,然后停止。
前提条件
您必须具有 SYS_RUN_REPLICATION_ROLE 系统角色。对于系统中的所有数据库,由 -l 选项定义的最大消息长度必须相同。
确保至少有一个远程用户的远程属性中既未指定 SEND AT 选项也未指定 SEND EVERY 选项。
如果所有远程用户都已定义 SEND AT 或 SEND EVERY 子句,并且您希望 SQL Remote 消息代理 (dbremote) 在发送和接收消息之后关闭,则必须使用 -b 选项来启动 SQL Remote 消息代理 (dbremote)。
启动 SQL Remote 消息代理 (dbremote)。
在 Windows 上,SQL Remote 消息代理 (dbremote) 名为 dbremote.exe。在 Unix 上,它的名称是 dbremote。在 Mac OS X 上,也可以使用 SyncConsole 启动 SQL Remote 消息代理 (dbremote)。
例如,以下命令将在批处理模式下于名为 c:\mydata.db 的数据库文件中运行 dbremote,并使用用户名 ManagerSteve 和口令 sql 进行连接:
dbremote -c "UID=ManagerSteve;PWD=sql;DBF=c:\mydata.db" |
SQL Remote 消息代理 (dbremote) 接收并处理进来的消息,扫描一次事务日志,创建并发送外发消息,然后停止。
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2013, SAP 股份公司或其关联公司. - SAP Sybase SQL Anywhere 16.0 |