Objective: Upgrade the existing tools to the latest versions and configure them appropriately.

Activities Performed:

  1. Database Backup:
    • Duration: 2 hours
    • Description: Backup of the current database to ensure no data loss during the upgrade process.
  2. Uninstallation of Previous Versions: 

          Tools Uninstalled:

    • Java 1.8
    • MySQL 5.7
    • Redis
    • WildFly 11
  1. Installation of New Versions:
    • JDK 17
    • MySQL 8.0
    • Redis 5
    • WildFly 30
    • Duration: 1 hour 15 minutes
    • Paths for all Tools

       Wildfly30 – E:\uat_new\wildfly-30.0.0.Final\wildfly-30.0.0.Final

       Redis5 – C:\Program Files\Redis
       Java17 – C:\Program Files\Java\jdk-17.0.3.1
       MySQL8 –  F:\MYSQL8\MySQL\MySQL Server 8.0
  2. Database Schema Configuration changes:
    1. Duration: 2 hours
    2. Description:

Before tacking the backup we have made changes in db schema to make compatible with MySQL 8.0. Changes are mentioned here:

  1. While restoring latest backup need to replace NO_AUTO_CREATE_USER in db routines
  2. Keep sql_mode in my.ini config file (MySQL 8)
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
 
3. As part of testing done below datatype change (MySQL 8)
 
alter table db_iemr.t_phy_anthropometry modify BMI decimal(7,3);
 
4. Reserved keywords would be changed to MySQL supported columns.
ex: system, value etc.(identified in Pr_Practioner sp)


DB ObjectsUpgradation Issues
Tables5(trigger related tables)Dump files created with an earlier version of mysqldump must be modified manually to remove instances of NO_AUTO_CREATE_USER,
ViewsNo Issues
ProceduresAll ProceduresDump files created with an earlier version of mysqldump must be modified
manually to remove instances of NO_AUTO_CREATE_USER,
Reserved keywords whould be changed toMysql supported columns. ex: system,value etc.(identified in Pr_Practioner sp)
TriggersAll TriggersDump files created with an earlier version of mysqldump must be modified
manually to remove instances of NO_AUTO_CREATE_USER,
FunctionsNo Issues
EventsAll Events/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;


After successfully restored schema need to execute all db access query in production/localmmu. 

  1. Database Restoration:
    • Duration: 2 hours
    • Description: Restored the database from the backup created earlier.
  2. Creation of Database Users:
    • Description: Created necessary database users with required privileges for operational needs.
  3. Configuration of WildFly:
    • Description: Set up WildFly paths for Java and MySQL to ensure proper integration and functionality.
  4. Creation of Shortcuts:
    • Description: Created necessary shortcuts on the desktop for quick access to the newly installed tools.

Summary of Time Spent:

  • Database Backup: 2 hours
  • Uninstallation+Installation: 1 hour 15 Minutes
  • Database Restoration: 2 hours
  • Configuration and Setup: 2 hours
  • Total Time: 7 Hours 15 Minutes

Next Steps:

  1. Verification:
    • Ensure all tools are functioning as expected.
    • Verify database integrity and user access.
  2. Testing:
    • Conduct thorough testing of the upgraded tools and configurations.
    • Confirm that all integrations and functionalities are operational.
  3. Documentation:
    • Installation guide added 

Written by Avinash - Document on Tool Upgrade on War files 

Time taken – 3hrs

Step 1 – All service line collected war files of tool upgrade.

Step 2 – Configuration changes done based UAT server IP/URL for all service line.

hwc-ui-next
tm-ui-next
mmu-ui-next
Ecd-ui-next
104api-v1.0
104ui-v1.0
1097api-v1.0
1097identity-0.0.1
1097ui-v1.0
adminapi-ecd-next
adminapi-v1.0
admin-ui-next
commonapi-ecd
commonapi-v1.0
ecdapi-v1.0

ecd-ui-next
fhirapi-v1.0
flw-0.0.1
hwc-facility-service
hwc-inventory-ui-next
hwc-scheduler-ui-next
identity-0.0.1
identity-ecd
Inventoryapi-v1.0
inventory-ui-next
mmuapi-v1.0
scheduler-api-v1.0
scheduler-ui-next
tmapi-v1.0

Step 3 – Checked Java version. It was 8.0 and changed to 17.

Step 4 – Checked MySQL services started or not.

Step 5 – Created shortcut icon for Redis and standalone & Started Redis and Wild fly and 4 files taken pasted in deployment folder to deploy wars.     

Step 6 – Application testing has to happen next step in UAT.

Step 7 – Db patch missing should be updated by Dev team. below is 1 script and rest script need to check with Dev Team.

USE `db_iemr`;
CREATE 
   
 OR REPLACE VIEW `v_get_prkngplc_blok_dist_zone_state` AS
    SELECT DISTINCT
        `m_sp`.`ServicePointID` AS `Servicepointid`,
        `m_pp`.`ParkingPlaceID` AS `ParkingPlaceID`,
        `m_pp`.`ParkingPlaceName` AS `ParkingPlaceName`,
        `m_db`.`BlockID` AS `BlockID`,
        `m_db`.`BlockName` AS `BlockName`,
        `m_d`.`DistrictID` AS `DistrictID`,
        `m_d`.`DistrictName` AS `DistrictName`,
        `m_zdm`.`ZoneID` AS `ZoneID`,
        `m_z`.`ZoneName` AS `ZoneName`,
        `m_s`.`StateID` AS `StateID`,
        `m_s`.`StateName` AS `StateName`,
        `m_sp`.`ProviderServiceMapID` AS `SPproviderservicemapid`,
        `m_pp`.`ProviderServiceMapID` AS `PPproviderservicemapid`,
        `m_zdm`.`ProviderServiceMapID` AS `ZDMproviderservicemapid`
    FROM
        ((((((`m_servicepoint` `m_sp`
        JOIN `m_parkingplace` `m_pp` ON (((`m_sp`.`ParkingPlaceID` = `m_pp`.`ParkingPlaceID`)
            AND ((0 <> `m_pp`.`Deleted`) IS FALSE))))
        JOIN `m_districtblock` `m_db` ON (((`m_pp`.`DistrictBlockID` = `m_db`.`BlockID`)
            AND ((0 <> `m_db`.`Deleted`) IS FALSE))))
        JOIN `m_district` `m_d` ON (((`m_db`.`DistrictID` = `m_d`.`DistrictID`)
            AND ((0 <> `m_d`.`Deleted`) IS FALSE))))
        JOIN `m_zonedistrictmap` `m_zdm` ON (((`m_d`.`DistrictID` = `m_zdm`.`DistrictID`)
            AND ((0 <> `m_zdm`.`Deleted`) IS FALSE))))
        JOIN `m_zone` `m_z` ON (((`m_z`.`ZoneID` = `m_zdm`.`ZoneID`)
            AND ((0 <> `m_z`.`Deleted`) IS FALSE))))
        JOIN `m_state` `m_s` ON (((`m_d`.`StateID` = `m_s`.`StateID`)
            AND ((0 <> `m_s`.`Deleted`) IS FALSE))))
    WHERE
        ((0 <> `m_sp`.`Deleted`) IS FALSE);

Step- 8 If we are changing path of my.ini file, Please keep same query in both place in C drive also and installed setup path in my.ini file.

sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"


OpenKM Addition we have to do in below folder-

E:\uat_new\tomcat\bin\setenv.bat 

Edit/open and past set "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_202"

  • No labels

2 Comments

  1. Srinivas Tirunahari Sachin Kadam 
    It mostly sounds fine.
    Will we take 45 mins to uninstall and 1 h 15 min to install?
    That sounds a little high to me.
    cc: Syed Saleem 

  2. Yes, Small correction from our side. Installation+Un_installation took 1hr 15 minutes. we will correct it in the document.