The MobiLink server supports SAP Sybase IQ consolidated database.

Now I build simple MobiLink environment with a SAP IQ consolidated database.

In this case, there are 2 machines, one is for IQ environment and another is for MobiLink environment.

Product Version:

     SQL Anywhere Version – 17.0 SP0 PL8 Build 2053
     SAP IQ – 16.0 SP11

This Blog is 1 of 2.

Next :  MobiLink with SAP IQ consolidated database – 2/2

1. IQ consolidated database

There is a demo database in a IQ environment.
If you don’t have yet, you can create it by mkiqdemo.bat file.

And after create it, you can start IQ demo database by start_iq command as follows.

/wp-content/uploads/2016/07/01_mkiqdemo_start_iq_992406.png

First, you need to create RLV Store for Row-Level Versioning.

Pleas see next.

   SAP IQ consolidated database

      SAP IQ considerations

          With row-level versioning

          http://dcx.sap.com/index.html#sqla170/en/html/81c1ad136ce21014a5d2fe9e2722949e.html

You can log in to demo database by Interactive SQL.
When you log in to demo database, you don’t need enter Server name and Database name if you are on local machine.
At this time, you can use Connect to a running database on this computer as follows.

/wp-content/uploads/2016/07/02_dbisql_992423.png

And you can create RLV dbspace by next command.

      create dbspace RLVStore1 using file RLVFile1 ‘iqdemo_RLV.iq’ size 1000 IQ RLV STORE;

And set SNAPSHOT_VERSIONING option to Row-level.

      set option PUBLIC.SNAPSHOT_VERSIONING=’Row-level’;

2.Create table and insert data

After create dbspace, you need to create table on RLV Store, and insert data into the table.

When you use enable RLV STORE option in create table statement, that table is created in a RLV Store.

/wp-content/uploads/2016/07/03_create_table_insert_992407.png

After that, log out from Interactive SQL.

3. Create MobiLink project

Next, move to MobiLink environment.

Add SAP IQ ODBC Driver DSN entry on the ODBC Data Source Administrator as follows.

03.2.ODBC.png

If you don’t know Server name(IQ Server name) and Port number, you can find from IQ console window as follows.03.3.IQconsole.png

Next, start SQL Central.
And click MobiLink17 and right click on the right pane, and click New -> Project.

/wp-content/uploads/2016/07/04_ml_create_project_992468.png

Then, start Create Project Wizard as follows.

/wp-content/uploads/2016/07/05_ml_create_project2_992469.png

You can follow the wizard.

For example,

  1.Welcome

     What do you want to name the new project ?  -> mliq_project

     Where do you want to save the new project ? -> c:\mliq

  2.Specify a Consolidated Database

     Database display name: mliq_consdb

     Connection string: You created IQ ODBC DSN

   3.New Remote Database Schema

     Which consolidated database tables and columns do you want to have in your remote database?

     check you created IQ table name.
     In this case, mltest1

   4.Specify a Remote Schema Name

     Add a remote schema name to the project ã‚’check

     What do you want to name the new remote schema name? -> sync_mliq

   5.Specify a Remote Database Type

     Which type of remote database do you want to use? -> SQL Anywhere

   After that, if you don’t load MobiLink system tables yet, you get next dialog box.

     The connected database does not have version ‘17.0’ of the MobiLink system setup

     installed under the owner ‘DBA’.

     Do you want to install it now?

  After click Yes, start load MobiLink system tables.

After that, move to SQL Central Synchronization Models screen.

4.Deploy

Click Deploy button.

/wp-content/uploads/2016/07/06_ml_sync_models_992522.png

Start the Deploy Synchronization Model Wizard.

/wp-content/uploads/2016/07/07_ml_deploy_wizard_992523.png

You can follow the wizard.

For example,

  1.Welcome

       Select the folder to contain files generated by the wizard. : C:\mliq\mliq_project\sync_mliq_deploy


  2.Client Network Options

       Protocol : TCP/IP

       Host : localhost

       Port : 2439

  3.MobiLink User and Password

     What MobiLink user and password do you want to use?

     click   Use these:

     MobiLink user : u1

     MobiLink password : u1


     click   Register this user in the consolidated database. Registerd users are permitted to synchronize.

  4.Synchronization Profile
      Synchronization profile name : sync_mliq_u1

      Additional client synchronization options : N/A


  5.Choose How To Prepare Database For Synchronization

       What do you want to do with the SQL script created to prepare the consolidated database for synchronization?

            -> Execute against consolidated database


      What do you want to do with the SQL script created to prepare the remote database for synchronization?

           -> Execute against a new remote database


      Enter a user ID and password for the initial remote database user.

         User ID: dba

         Password: sqlsql

         Retype Password : sqlsql

Next, Generating Deployment Files dialog box popped up.
Click close button.
/wp-content/uploads/2016/07/08_ml_generating_deployment_files_993195.png


  6.Review Your Choices

     click -> Finish

/wp-content/uploads/2016/07/09_ml_review_your_choices_993196.png

And Generating Deployment Files dialog box popped up again.
Click close button.

/wp-content/uploads/2016/07/10_ml_generating_deployment_files2_993197.png

And back to Synchronization Models window.

Deployment date changed.

/wp-content/uploads/2016/07/11_ml_sync_models_993200.png

Preparation completion.

Next :  MobiLink with SAP IQ consolidated database – 2/2

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply