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

SQL Anywhere 12.0.0 (中文) » MobiLink - 入门 » MobiLink 教程 » 教程:MobiLink 简介

 

第 5 课:同步

dbmlsync 实用程序为 SQL Anywhere 远程数据库启动 MobiLink 同步。

 ♦  启动同步客户端
  1. 运行以下命令同步 remote1 数据库:

    dbmlsync -c "server=remote1;uid=DBA;pwd=sql" -o rem1.txt -v+
  2. 运行以下命令同步 remote2 数据库:

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

下表包含本课中使用的每个 dbmlsync 选项的说明:

选项 说明
-c 指定连接字符串。
-o 指定消息日志文件。
-v+ -v 选项指定记录哪些信息。使用 -v+ 设置最大详细记录。

将出现输出屏幕,表示同步已成功。基于 SQL 的同步会将客户端 Product 表中的行传送到统一数据库中的 Product 表。

 进一步阅读