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

SQL Anywhere 12.0.1 » SQL Remote » 管理 SQL Remote 系统 » SQL Remote 消息代理 (dbremote)

 

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

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

通过以下过程在批处理模式下运行 SQL Remote。

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

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

 另请参见