Kony MobileFabric Sync Framework is a comprehensive synchronization platform that enables developers to add synchronization capabilities to mobile applications. This topic talks about manually upgrading Kony MobileFabric Sync Framework on Tomcat server from 7.0.x to 7.1.x without an installer.
The manual upgrade of Kony MobileFabric Sync includes the following steps:
Note: You must stop the Tomcat server before you start upgrading Kony MobileFabric Sync.
If you are required to install/upgrade MobileFabric manually due to your business polices, please contact productsupport@kony.com for approval and to obtain access to the MobileFabric manual install artefacts.
Important: Manual installs not approved by Kony will not be supported.
syncconsole-<database name>
zip file. For information on Downloading DB_scripts, refer section Download the Required Files.If you are upgrading Sync Server from its current version to newer version, execute all available upgrade scripts between two versions in ascending order.The extracted upgrade scripts will be used to update the sync console schema from 7.0.x GA to 7.1.0.x GA. They are to be run using flyway software. For updating the extracted scripts, follow these steps:
Copy the scripts from sync-7.0.x\sync\syncconsole-<database name> to flyway-4.0.1/sql folder.
Set the following properties in flyway configuration file flyway.conf under flyway-4.0.1/conf.
flyway.url=
flyway.user=
flyway.password=
flyway.schemas=
flyway syntax:
MSSQL
flyway.url=jdbc:sqlserver://<host>;databaseName=<database name>
flyway.user=<user name>
flyway.password=<password>
If you don’t specify schema name, by default DBO will be considered as
schema name.
MYSQL
flyway.url=jdbc:mysql://<host>:<port>
flyway.user=<user name>
flyway.password=<password>
flyway.schemas=<schemaName>
Oracle
flyway.url=jdbc:oracle:thin<host>:<port>/<service>
flyway.user=<user name>
flyway.password=<password>
flyway.schemas=<schemaName>
DB2
flyway.url=jdbc:db2://<host>:<port>/<DatabaseName>
flyway.user=<user name>
flyway.password=<password>
flyway.schemas=<schemaName>
We have to set the 7.0.0 schema as baseline for flyway. To do that set the below flyway properties:
flyway.baselineVersion=7.0.0 flyway.baselineDescription=V7_0_0__syncconsole-<database name>.sql flywaybaselineOnMigrate=true
flyway.placeholders.KONY_SYNC_LOG_LOCATION=<Your Log Location>
flyway.placeholders.KONY_SYNC_LOG_OPTION=<Your LogOption>
Open command prompt under flyway folder flyway-4.0.1 and run the below commands:
CREATE LARGE TABLESPACE <LOB_Tablespace_Name> IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32 PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL OVERHEAD 7.5 TRANSFERRATE 0.06 AUTORESIZE YES INITIALSIZE 32M NO FILE SYSTEM CACHING; COMMIT;
CREATE SYSTEM TEMPORARY TABLESPACE "BIGTEMP" IN DATABASE PARTITION GROUP IBMTEMPGROUP PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP IBMSTOGROUP EXTENTSIZE 1M PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL; COMMIT; CONNECT RESET;
CREATE LARGE TABLESPACE <Index_Tablespace_Name> IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32 PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL OVERHEAD 7.5 TRANSFERRATE 0.06 AUTORESIZE YES INITIALSIZE 32M NO FILE SYSTEM CACHING; COMMIT;
To create a tablespace for tables and Data
CREATE LARGE TABLESPACE <Data_Tablespace_Name> IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32 PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL OVERHEAD 7.5 TRANSFERRATE 0.06 AUTORESIZE YES INITIALSIZE 32M NO FILE SYSTEM CACHING; COMMIT;
CONNECT TO <Database_name>; CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL DBPARTITIONNUMS SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE 32K; COMMIT;
You can create these 3 tablespaces in the following way:
Create three tablescapes (MF_DATA, MF_INDEX, and MF_LOB_DATA) by executing the command below (you need to grant create tablespace privilege to <install-user>).
CREATE TABLESPACE MF_DATA DATAFILE '<DATA_FILE_PATH>/MF_DATA_01.DBF' SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M; CREATE TABLESPACE MF_INDEX DATAFILE '<DATA_FILE_PATH>/MF_INDEX_01.DBF' SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M; CREATE TABLESPACE MF_LOB_DATA DATAFILE '<DATA_FILE_PATH>/MF_LOB_DATA_01.DBF' SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M;
Provide quota on all the above 3 tablespaces (MF_DATA, MF_INDEX and MF_LOB_DATA tablespaces) to MF database user. Map the <MF-schema-user> with all the 3 tablespaces by executing the command below.
ALTER USER <MF-schema-user> QUOTA UNLIMITED ON MF_DATA; ALTER USER <MF-schema-user> QUOTA UNLIMITED ON MF_INDEX; ALTER USER <MF-schema-user> QUOTA UNLIMITED ON MF_LOB_DATA;
Note: You need to stop the Tomcat server before you start upgrading Kony MobileFabric Sync.
To upgrade property files in Sync Server, follow these steps:
Note: Make sure you are retain the property syncservices.jndi.prefix from the old syncconsole.properties file.
To upgrade the WAR files, follow these steps:
Take the backup of old WAR files.
Delete the existing WAR files from Home\apache-tomcat-7.0.52\webapps location and copy the downloaded WAR files to the Tomcat webapps folder.
Start the Tomcat server and perform sync sanity on the upgraded server.
To verify if you have upgraded Kony MobileFabric Sync version correctly, log on to Sync Console, and click Configuration. The Configuration Details screen appears.
The MobileFabric Sync version upgrade details will be updated against the property value of Kony MobileFabric Sync version.
Rev | Author | Edits |
7.1 | GS | GS |
Copyright © 2013 Kony, Inc. All rights reserved. |