Lesson 7: Synchronize

Now you are ready to synchronize the remote client for the first time. This is done with the MobiLink client program dbmlsync. Dbmlsync connects to the remote database, authenticates itself with the MobiLink server, and performs all the uploads and downloads necessary to synchronize the remote and consolidated databases based on a publication in the remote database.

To synchronize the remote client
View the data

After successfully synchronizing the remote client to the consolidated database through the MobiLink server, the remote data should be populated with information relevant to one store. You can verify this in Sybase Central using the SQL Anywhere 11 plug-in.

To view the data in the remote database
  1. Start Sybase Central.

  2. Connect to the remote database:

    1. On the left pane, right-click SQL Anywhere 11 and choose Connect.

    2. Type DBA as the User Id and sql as the Password.

    3. Under the Identification tab, type remote_eng as the Server Name and remote_db as the Database Name.

    4. Click OK.

  3. If the tables created from the consolidated database are not visible, perform the following steps:

    1. Right-click remote_db and Configure Owner Filter.

    2. Select dbo and click OK.

      The tables created from the consolidated database appear in the left pane. Ownership of these tables by dbo is preserved in the remote database.

  4. Choose any remote table and then click the Data tab on the right pane.

    In the sales, salesdetail and stores tables, all the records are for the store with an identifier of 5023. This particular store is not concerned with the sales information of other stores. For this reason, you set the synchronization scripts to filter out rows by the remote ID, and you set this database's remote ID to the value of a particular store identifier. Now this particular store's database takes up less space, and requires less time to synchronize. Since the remote database size is kept to a minimum, frequently performed operations such as entering a new sale or processing a refund on a previous sale run faster and more efficiently.

Further reading