Managing MobiLink synchronization on the server
You can start the MobiLink synchronization server and Sybase
Central from the PowerBuilder UI.
Starting the MobiLink synchronization server
Before you synchronize remote databases with the consolidated
database, you must start the MobiLink synchronization server. You
can start the server from the Database or the Database Profile painter
in PowerBuilder.
To start the MobiLink synchronization server:
-
From the Objects view of the Database painter
or from the Database Profile painter, expand the ODBC Utilities
folder and click MobiLink Synchronization server.The MobiLink Synchronization Server Options dialog box displays.
-
Select the MobiLink version and enter the ODBC
connection string for your consolidated database.The values that populate the MobiLink version drop-down list
come from the SQL Anywhere versions listed in the hkey_local_machinesoftwareodbcodbcinst.ini registry
key.The ODBC connection string should not contain any blank spaces
that are not part of the data source name. The following is an example
of an ODBC connection string for the SQL Anywhere demonstration
database:1DSN=SQL Anywhere 11 Demo;UID=dba;PWD=sql -
Define other options as needed.
For information about filling in specific
fields in the dialog box, click the Help button in the dialog box.
The Usage button opens a dialog box with information about command
line options. -
Click OK.
When you click OK, PowerBuilder starts the MobiLink Synchronization server.
Using Sybase Central
You
can use Sybase Central to manage MobiLink synchronization and create synchronization
scripts that are held in the consolidated database. You can also use
the SQL Anywhere plug-in to
Sybase Central to add publications, synchronization users, and synchronization
subscriptions to remote databases.
To start Sybase Central
-
From the Objects view of the Database painter
or from the Database Profile painter, expand the ODBC Utilities
folder, and click Sybase Central.Sybase Central displays.
To work with the consolidated database in Sybase
Central
-
Select Connections>Connect with
MobiLink 11 from the Sybase Central menu, enter connection parameters
in the Connect to Consolidated Database dialog box, and click OK.You can use Sybase Central to add scripts for database tables
and select synchronization events that cause the script to be executed.
To work with remote databases in Sybase Central
-
Select Connections>Connect with SQL Anywhere 11 from the Sybase Central
menu, enter connection parameters in the Connect dialog box, and click
OK.If you open the Publications and MobiLink Users folders in
Sybase Central, you can add publications and synchronization users
for the remote database.After you add a publication and a synchronization user, you
can create a synchronization subscription by linking a publication
to a synchronization user.
For more information, see the chapter on MobiLink synchronization
in the Application Techniques
and the SQL Anywhere online Help. You can
also use the Help menu for the SQL Anywhere
and MobiLink plug-ins to Sybase Central.