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 系统 » SQL Remote 消息代理 (dbremote)

 

在批处理模式下运行 SQL Remote 消息代理 (dbremote)

可对 SQL Remote 消息代理 (dbremote) 进行设置,使其接收和处理进来的消息,扫描事务日志,创建并发送外发消息,然后停止。

前提条件

您必须具有 SYS_RUN_REPLICATION_ROLE 系统角色。对于系统中的所有数据库,由 -l 选项定义的最大消息长度必须相同。

 任务
  1. 确保至少有一个远程用户的远程属性中既未指定 SEND AT 选项也未指定 SEND EVERY 选项。

    如果所有远程用户都已定义 SEND AT 或 SEND EVERY 子句,并且您希望 SQL Remote 消息代理 (dbremote) 在发送和接收消息之后关闭,则必须使用 -b 选项来启动 SQL Remote 消息代理 (dbremote)。

  2. 启动 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) 接收并处理进来的消息,扫描一次事务日志,创建并发送外发消息,然后停止。

结果

SQL Remote 消息代理 (dbremote) 已启动。

 另请参见