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

SAP Sybase SQL Anywhere 16.0 » MobiLink - Getting Started » MobiLink tutorials » Tutorial: Using MobiLink with an Adaptive Server Enterprise consolidated database

 

Lesson 8: Starting the server and client

In this lesson, you start the MobiLink server and remote database.

Prérequis

This lesson assumes you have completed all preceding lessons. See Lesson 1: Designing the schemas.

This lesson assumes you have the roles and privileges listed in the Permissions and privileges section at the start of this tutorial: Tutorial: Using MobiLink with an Adaptive Server Enterprise consolidated database.

Contexte et remarques

In a previous lesson, you modified the download cursor script to download information related to one store. In this lesson, you specify the store by setting the remote ID to the store identifier.

 Task
  1. At a command prompt, navigate to the folder where you created the synchronization model. (This is the root directory you chose in the first step of the Create Synchronization Model Wizard.)

    If you used the suggested directory names, navigate to the following directory: mlase\ase_project\sync_ase_deploy\.

  2. To start the MobiLink server, run the following command:

    mlsrv.bat "DSN=ase_cons;UID=sa;PWD=sa;"
    • mlsrv.bat   is the command file to start the MobiLink server.

    • dsn   is your ODBC data source name.

    • uid   is the user name you use to connect to the consolidated database (the default for Adaptive Server Enterprise is sa).

    • pwd   is the password you use to connect as sa.

    When this command runs successfully, the message MobiLink server Started appears in the MobiLink server messages window.

    If the MobiLink server fails to start, check the connection information for your consolidated database.

  3. At a command prompt, navigate to the directory where the Deploy Synchronization Model Wizard created your remote database.

    If you used the suggested directory names, navigate to the following directory: mlase\ase_project\sync_ase_deploy\.

  4. To start your remote SQL Anywhere database, run the following command:

    dbsrv16 -n remote_eng sync_ase_remote.db -n remote_db
    • dbsrv16   is the database server used to start the SQL Anywhere database.

    • remote_eng   is the database server name.

    • sync_ase_remote.db   is the database file that is started on remote_eng.

    • remote_db   is the name of the database on remote_eng.

Résultat

A SQL Anywhere database server named remote_eng starts and loads the database called remote_db.

Suivant

Proceed to Lesson 9: Setting the remote ID.

 See also