Configuring SQL Anywhere to Support Mobiliser

Configure SQL Anywhere to support Mobiliser applications in SAP Mobile Platform by updating and executing the dbmaintain script.

Procedure

  1. Edit the dbmaintain script.
    1. Make a backup copy of <installer_root>\db_tools\db\sa\smp3\sql\dbmaintain.properties.sqlanywhere.
    2. Use a text editor to open <installer_root>\db_tools\db\sa\smp3\sql\dbmaintain.properties.sqlanywhere.
    3. Edit this line:
      database.url=jdbc:sybase:Tds:{HOST}:{PORT}/{DBNAME}
      • {HOST} with the host name for your database
      • {PORT} with the port number for your database
      • (DBNAME} with smp3, or if you changed it, the new database name
    4. Save and close the file.
  2. Run the dbmaintain script.
    1. At a command prompt, go to <installer_root>\db_tools\db\sa\sql.

      java -jar com.sybase365.mobiliser.vanilla.standalone-<version>-scriptarchive-anywhere.jar -c dbmaintain.properties.sqlanywhere -u <dbusername> -p <dbpassword>

      where:
      • <version> is the actual version text in the file name on your system.
      • <dbusername> is the database name, gomobile, or the new user name if you changed it.
      • <dbpassword> is the database password, secret, or the new password if you changed it.
    2. Enter:
    3. Run:
      java -jar com.sap.mobile.platform.server.db.sa.dbmaintain- <version>-scriptarchive-anywhere.jar -c dbmaintain.properties.sqlanywhere -u <dbusername> -p <dbpassword>
      where:
      • <version> is the actual version text in the file name on your system.
      • <dbusername> is the database name, gomobile, or the new user name if you changed it.
      • <dbpassword> is the database password, secret, or the new password if you changed it.
    4. Respond to the Are you sure you want to continue? prompt.
      • If this is a fresh installation on a new system, you may safely answer yes to this prompt, and the script continues.
      • Otherwise, if the value of the dbMaintainer.fromScratch.enabled parameter is true, the script warns you that any existing objects in the database will be dropped if you continue. To preserve existing objects in your database:
        1. Answer no to the prompt.
        2. Edit this line in the dbmaintain script, and change true to false:
          dbMaintainer.fromScratch.enabled=true
        3. Re-run the dbmaintain script.
    5. Review the "Dry Run Results" and continue if there are no issues.

      After several minutes, you should see the messge The database has been updated successfully.