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 管理 » 了解消息代理 (dbremote)

 

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

通过以下过程在批处理模式下运行 SQL Remote。有关批处理模式及其替代模式(连续模式)的信息,请参见了解消息代理 (dbremote)

♦  在批处理模式下运行消息代理 (dbremote)
  1. 确保至少有一个远程用户的远程属性中既未指定 SEND AT 选项也未指定 SEND EVERY 选项。

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

  2. 启动消息代理 (dbremote)。

    在 Windows 上,消息代理 (dbremote) 名为 dbremote.exe。在 Unix 上,它的名称是 dbremote。在 Mac OS X 上,也可以使用 SyncConsole 启动消息代理 (dbremote)。请参见在 Mac OS X 上运行消息代理 (dbremote)在 Unix 上运行消息代理 (dbremote)

    例如,以下语句将在名为 c:\mydata.db 的数据库文件中且在批处理模式下运行 dbremote,并使用用户名 ManagerSteve 和口令 sql 进行连接:

    dbremote -c "UID=ManagerSteve;PWD=sql;DBF=c:\mydata.db" 
    

    消息代理 (dbremote) 接收并处理进来的消息,扫描一次事务日志,创建并发送外发消息,然后停止。

    用户名 ManagerSteve 必须具有 REMOTE DBA 权限或 DBA 权限。对于系统中的所有数据库,由 -l 选项定义的最大消息长度必须相同。请参见消息代理 (dbremote) 的要求

另请参见