Starting the subsystem and the listener

After installing CDC Replication, you must start the subsystem and the listener.

  1. If you have installed CDC Replication on an Independent Auxiliary Storage Pool (IASP) device, you must start the subsystem and the listener from the system that is currently connected to the IASP device. To set the ASP group for the interactive session, issue the following command:
    SETASPGRP <name>

    where <name> is the IASP name.

  2. To change the current library to the product library, issue the following command:
    CHGCURLIB <library>

    where <library> is the CDC Replication product library.

    Note: To enable TLS encryption, make sure that the auto job is not configured for the TCP listener job:
    1. Run the command: DSPSBSD SBSD(<library>/<subsystem name>)
    2. Select option 3.
    3. Check if TCPLISTEN job is listed.

    If it is configured please remove the autostart job entry by running this command: RMVAJE SBSD(<library>/<subsystem name>) JOB(TCPLISTEN). We need to start the TCP listen job manually with the new parameters that are introduced to enable or disable TLS on the CDC for IBM i instance.

  3. To start the subsystem, issue the following command:
    STRSBS <library>/DMIRROR

    where <library> is the work library.

  4. To start the listener, issue the following command:
    • Without TLS encryption, (if it has not already been started with the STRSBS command):
      STRDMTCP SERVICE (<service>) JOBD(<library>/DMCJOBD)
    • With TLS encryption:
      STRDMTCP SERVICE(<service>) JOBD(<library>/DMCJOBD) TLS(*ENABLED) APPID('<SERVER_APPLICATION_ID>') APPID2('<CLIENT_APPLICATION_ID>')

    where <service> is the service name and <library> is the CDC Replication product library, <SERVER_APPLICATION_ID> server application id configured for TLS encryption in IBM i DCM, and <CLIENT_APPLICATION_ID> client application id configured for TLS encryption in IBM i DCM.