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

SQL Anywhere 12.0.1 » MobiLink - Getting Started » MobiLink tutorials » Tutorial: Using central administration of remote databases

 

Lesson 8: Creating a synchronization model

This lesson assumes you have completed all preceding lessons. See Lesson 1: Creating a consolidated database.

In this lesson, you create a synchronization model. If you are adding central administration to existing synchronization system, proceed to Lesson 9: Deploying the synchronization model.

 Create a synchronization model
  1. Define the tables for the remote database in the consolidated database. In the Folders view of Sybase Central under MobiLink 12, expand Central Admin Tutorial, Consolidated Databases. Right-click Tutorial and click Open Interactive SQL.

  2. In the SQL Statements pane type the following:

    CREATE TABLE customer(
        cust_id       INTEGER PRIMARY KEY,
        f_name        VARCHAR(100),
        l_name        VARCHAR(100)
    )
  3. Press F5 to execute the SQL. Close Interactive SQL. You do not need to save your SQL statements.

  4. In the Folders view of Sybase Central, right-click Central Admin Tutorial and click New » Synchronization Model.

  5. On the Welcome page, type tutorial1 for the name of the new synchronization model.

  6. On the Primary Key Requirements page check all three checkboxes to confirm that your schema meets the requirements for synchronization. Click Next.

  7. On the Consolidated Database Schema page, choose the Tutorial database and click Next.

  8. On the Remote Database Schema page, select No, Create A New Remote Database Schema and click Next.

  9. On the New Remote Database Schema page, ensure the customer table is selected and click Next.

  10. On the Download Type page, choose Snapshot Download and click Next.

  11. On the Download Deletes page, answer No to the question Do You Want Data Deleted On The Consolidated Database To Be Deleted On The Remote Databases and click Next.

  12. On the Download Subset page, check Yes, Download The Same Data To Each Remote and click Next.

  13. On the Upload Conflict Detection page, select No Conflict Detection and click Next.

  14. Accept the defaults on the Publication, Script Version And Description page and click Finish.

    You have now created a synchronization model that contains a single table called customer that can be synchronized between the remote and the consolidated databases. The next step is to deploy that model to create synchronization objects in the consolidated database and to generate SQL for creating a remote database.

  15. Proceed to Lesson 9: Deploying the synchronization model.