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

SQL Anywhere 11.0.1 (中文) » MobiLink - 入门 » MobiLink 教程 » 教程:编写脚本和监控同步

 

第 4 课:执行 MobiLink 同步

♦  执行 remote1 和 remote2 的同步
  1. 通过运行 MobiLink 服务器实用程序 (mlsrv11) 来启动 MobiLink 服务器:

    • 在命令提示符处,键入以下命令:

      mlsrv11 -c "dsn=sa_cons" -o mlserver.mls -v+ -dl -zu+ -x tcpip

    有关 mlsrv11 选项的信息,请参见MobiLink 服务器选项

    在 [MobiLink 服务器] 窗口中出现一条消息,指明 MobiLink 服务器已准备好处理请求。

  2. 通过运行 MobiLink 同步客户端实用程序 (dbmlsync) 来启动同步。

    • 要同步 remote1,请在命令提示符处,以单行键入以下命令:

      dbmlsync -c "eng=remote1;uid=DBA;pwd=sql" -o rem1.txt -v+
    • 要同步 remote2,请在命令提示符处,以单行键入以下命令:

      dbmlsync -c "eng=remote2;uid=DBA;pwd=sql" -o rem2.txt -v+

    有关 dbmlsync 选项的完整列表,请参见MobiLink SQL Anywhere 客户端实用程序 (dbmlsync)

    MobiLink 同步客户端启动后,DBMLSync 窗口中出现一条消息,指明 MobiLink 同步已成功完成。

进一步阅读

有关 MobiLink 服务器的详细信息,请参见MobiLink 服务器

有关 mlsrv11 选项的完整列表,请参见MobiLink 服务器选项

有关 dbmlsync 的详细信息,请参见SQL Anywhere 客户端

有关 dbmlsync 选项的完整列表,请参见MobiLink SQL Anywhere 客户端实用程序 (dbmlsync)