Skip to main content

Data Change Stream Tutorials

Install, configure, and modify data change streams

  1. Install the primary server.

  2. Configure the primary server.

    • Add the REPL_NODEID <nodeid> configuration option to the server configuration file, ctsrvr.cfg. Specify the <nodeid> value in IPv4 format, for example 10.0.0.1. The value should be unique for each FairComDB server that is used in the system.

  3. Install the FMQ server.

  4. Configure the FMQ server.

    1. Enable the cthttpd plugin by adding PLUGIN cthttpd;./web/cthttpd.dll to ctsrvr.cfg.

    2. Configure and enable the cthttpd plugin in services.json.

    3. Enable the datachangestream and ctagent plugins in the otherServices array in services.json. For example:

      "otherServices": [
      {
      "serviceName": "datachangestream",
      "serviceLibrary": "./datachangestream/datachangestreamservice.dll",
      "enabled": true
      },
      {
      "serviceName": "ctagent",
      "serviceLibrary": "./agent/ctagent.dll",
      "enabled": true
      },

      Note

      The file dbnotifyconnections.json is no longer used.

    4. Use the ctcmdset utility to create the file target.set containing the administrator user ID and password for the FMQ server. Copy the file to the config/datachangestreamdirectory.

    5. Create the ctagent plugin configuration file ctagent.json in the config directory containing this text:

      {
      "managed": false,
      "use_replication_agent_manager": true
      }