This lesson assumes you have completed all preceding lessons. See Lesson 1: Setting up a MobiLink consolidated database.
In this lesson, you deploy the synchronization model using the Deploy Synchronization Model Wizard to configure the consolidated database for synchronization, and create and deploy two remote databases.
In the left pane of Sybase Central under MobiLink 12, expand mlintro_project, Synchronization Models, sync_mlintro.
Click File » Deploy.
Use the default settings for the Specify The Deployment Details For One Or More Of The Following option, and click Next.
Perform the following tasks on the Consolidated Database Deployment Destination page:
Select Save Changes To The Following SQL File and accept the default location for the file.
MobiLink generates a .sql file that makes changes to the consolidated database to set up synchronization. You can examine the .sql file later and make your own changes. Then, you must run the .sql file.
Immediately apply the changes to the consolidated database.
Select Connect To The Consolidated Database To Directly Apply The Changes.
Select the mlintro_consdb consolidated database from the list.
Click Next.
A prompt appears asking if you want to create the consolidated directory. Click Yes.
Click New SQL Anywhere Database, and click Next.
Perform the following tasks on the New SQL Anywhere Remote Database page:
Select the Make A Command File And A SQL File With Commands To Create The Database option.
Selecting this option generates another .sql file with the commands to set up the remote database with all the schema and synchronization information.
Accept the default location in the SQL File field.
Select the Create A Remote SQL Anywhere Database option.
Accept the default location in the SQL Anywhere Database File field.
Click Next.
A prompt appears asking if you want to create the remote directory. Click Yes.
Click Finish.
A message appears asking if you want to create the mlsrv directory. Click Yes.
Click Close on the Deploying window.
Your consolidated database is fully configured for synchronization with many remote clients. Your remote database is created and deployed.
In the left pane of Sybase Central under MobiLink 12, expand mlintro_project, Synchronization Models, sync_mlintro.
Click File » Deploy.
Click Specify The Deployment Details For One Or More Of The Following and ensure that only the Remote Database And Synchronization Client and Initialize With Settings For Central Administration Of Remote Databases options are selected. Click Next.
Click New SQL Anywhere Database, and click Next.
Perform the following tasks on the New SQL Anywhere Remote Database page:
Select the Make A Command File And A SQL File With Commands To Create The Database option.
Selecting this option generates another .sql file with the commands to set up the remote database with all schema and synchronization information.
Change the file location in the SQL File field to C:\MLintro\mlintro_project\sync_mlintro\remote\sync_mlintro_remote2.sql.
Select the Create A Remote SQL Anywhere Database option.
Change the file location in the SQL Anywhere Database File field to C:\MLintro\mlintro_project\sync_mlintro\remote\sync_mlintro_remote2.db.
Click Next.
Click Finish on the MobiLink User and Synchronization Profile page.
Click Close on the Deploying window.
You have successfully created and deployed your second remote database.
Proceed to Lesson 5: Starting the MobiLink server.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |