Upgrading DSS Hub on Windows - DSS 6 | Data Source Solutions Documentation

Documentation: Upgrading DSS Hub on Windows - DSS 6 | Data Source Solutions Documentation

Upgrading DSS Hub on Windows

This section describes the requirements and step-by-step instructions on how to upgrade the DSS Hub System to a new version on Windows.

For upgrading the DSS Agent, see Upgrading DSS Agent.

In the case of a distributed setup, along with the DSS Hub System installation, there may be one or more DSS Agent installations on the source and target machines. Since DSS versions 6.1.0 and higher are fully compatible with each other, upgrading all installations may not be required.

Each DSS release contains new features and/or fixes for certain bugs. Each feature or fix is only effective if the correct machine is upgraded. Typically, the release notes (also available in DSS_HOME/dss.rel directory and on the downloads page) contain information about which features and fixes have been added and which machines must be upgraded for each feature and fix to be effective. New features should not be used until all machines that are specified for that feature are upgraded; otherwise, errors may occur.

For example, if a new release fixes an Integrate bug, then that release must be installed on the DSS Agent machine(s) that performs Integrate. There will be no benefit if only the DSS Hub System is upgraded using that release.

Requirements

Following are the prerequisites for upgrading the DSS Hub System on Windows:

  • DSS installation file
    Obtain the latest version of the DSS Hub System installation file for Windows (e.g., datasourcesolutions-6.2.0-hub_and_agent-windows-x64-64bit_ga-setup.exe). You can downloaded the installation file from the Downloads tab in the Data Source Solutions dashboard. For more information, see Downloading DSS.

  • Backup the DSS directories and repository database:

    • Create a backup of the directories DSS_HOME (installation files) and DSS_CONFIG (DSS state).
    • Create a backup of the repository database, which contains metadata definitions and settings. Use the native backup option provided by the DBMS.
    • Optionally, save a hub snapshot using the UI option Save Hub Snapshot or the command dsssnapshotsave.

Creating a backup is essential because it provides a reliable method to roll back or downgrade to the previous stable version if issues arise during an upgrade. This ensures that all data and settings can be restored to their original state if needed.
Downgrading using a hub snapshot is more complex than using a hub repository database backup. The hub snapshot contains only the hub configuration.

Upgrade Steps

Perform the following steps to upgrade the DSS Hub System:

Perform steps 1-3 for all active channels.

  1. Suspend the capture job running in a channel.

    {% tabs %}

    {% tab label="UI" %}

    1. Go to the Channel Details page.
    2. Under the Jobs pane, select the capture job and click Suspend Jobs at the top right of the Jobs pane.

    SC-Dss-Install-UpgradingDSS_SuspendJobs.webp

    {% /tab %}

    {% tab label="CLI" %}

    Run the command dsssuspend.

     dsssuspend <em>hub channel</em>-cap
    

    {% /tab %}

    {% /tabs %}

  2. Ensure that the integrate job finishes integrating all the changes. This can be verified as follows:

    {% tabs %}

    {% tab label="UI" %}

    1. No transaction (.tx) files are left in the /router directory ($DSS_CONFIG/hubs/hub/channels/channel/locs/src_loc/router/loc_tgt_loc/).
    2. In the Jobs pane, click the View Log button next to the integrate job. The integrate job has status Waiting....

    SC-Dss-Install-UpgradingDSS_SuspendJobs.webp

    Alternatively, you can check for the same status in the channel-integ-location.out log file located at $DSS_CONFIG/hubs/hub/logs/.

    {% /tab %}

    {% tab label="CLI" %}

    1. No transaction (.tx) files are left in the /router directory ($DSS_CONFIG/hubs/hub/channels/channel/locs/src_loc/router/loc_tgt_loc/).
    2. The integrate job has status Waiting... in the channel-integ-location.out log file located at $DSS_CONFIG/hubs/hub/logs/.

    {% /tab %}

    {% /tabs %}

  3. Suspend the integrate job running in the channel.

    {% tabs %}

    {% tab label="UI" %}

    1. Go to the Channel Details page.
    2. Under the Jobs pane, select the integrate job and click Suspend Jobs at the top right of the Jobs pane.

    SC-Dss-Install-UpgradingDSS_SuspendJobs.webp

    {% /tab %}

    {% tab label="CLI" %}

    Run the command dsssuspend.

     dsssuspend <em>hub channel</em>-integ
    

    {% /tab %}

    {% /tabs %}

  4. Stop the DSS Hub Server by using the command dsshubserver.

     dsshubserver -ah
    

Ensure that all DSS processes have stopped. Use the Windows Task Manager to verify whether any DSS processes are still running and terminate them if any are found.

  1. Install the new version of the DSS Hub System using either of the following methods:

    Install DSS Hub System on Windows using Installer
    1. Run the DSS Hub System installation file (e.g., datasourcesolutions-6.1.0_21-hub_and_agent-windows-x64-64bit_ga_patch-setup.exe).

    2. Click Next in the installation wizard dialog.

      Welcome

    3. Read the License Agreement, select I accept the agreement and click Next.

      License_Agreement

    4. Specify the installation directory for DSS_HOME, DSS_CONFIG, and DSS_TMP and click Next.

      Destination_Directories

    5. Click Next to initiate the installation.

      Ready_To_Install

    6. After the installation is complete, click Finish.

      Installation_Completed

    Install DSS Hub System on Windows using Zip file

    Uncompress (unzip) the DSS Hub System installation file (e.g., datasourcesolutions-6.1.0_21-hub_and_agent-windows-x64-64bit_ga_patch.zip) into the DSS_HOME directory.

  2. Start the DSS Hub Server by using the command dsshubserver.

     dsshubserver -as
    
  3. Activate replication in the channel to capture changes from the beginning of the oldest current (not closed) transaction, regenerate jobs and enroll information for tables.

Perform this step for all the required channels.

In some cases, other replication components should also be reactivated depending on the type of changes contained in the version being installed.

{% tabs %}

{% tab label="UI" %}

  1. Go to the [**Channel Details**](/docs/dss6-user-interface-channels-channel-details) page and click [**Activate Replication**](/docs/dss6-user-interface-channels-activating-replication).
  2. In the **Activate Replication** dialog, under [**Replication Components**](/docs/dss6-user-interface-channels-activating-replication#replicationcomponents), select options **Jobs**, **Table Enrollment**, and **Force Start Replication Jobs**.

![SC-Dss-Install-UpgradingDSS_ActivateReplication.webp](../_assets/SC-Dss-Install-UpgradingDSS_ActivateReplication.webp)

{% /tab %}

{% tab label="CLI" %}

Run the command dssactivate with options -J, -i, and -oje.

```shell
 dssactivate -J cap -J integ -i oldest_tx -oje <em>hub channel</em>
```

{% /tab %}

{% /tabs %}