Running Db2 High Availability Instance Configuration Utility (db2haicu) with an XML input file

You can use the -f input-file-name parameter with the db2haicu command to run Db2® high availability instance configuration utility (db2haicu) with an XML input file specifying your configuration details. Running db2haicu with an XML input file is useful when you must perform configuration tasks multiple times, such as when you have multiple database partitions to be configured for high availability.

Before you begin

About this task

There is a set of sample XML input files located in the samples subdirectory of the sqllib directory that you can modify and use with db2haicu to configure your clustered environment. For more information, see: Sample XML input files for Db2 High Availability Instance Configuration Utility (db2haicu)

For a detailed scenario that uses db2haicu with a sample XML input file to set up an HADR pair, see Automated Cluster Controlled HADR (High Availability Disaster Recovery) Configuration Setup using the IBM Db2 High Availability Instance Configuration Utility (db2haicu).

Procedure

  1. Create an XML input file using the sample XML files as a guideline. In an HADR setup, an XML file will need to be created for both the primary and standby instance.
  2. Call db2haicu with the -f input-file-name.
    In an HADR setup,
    1. Log on to the standby instance and issue the command.
    2. After db2haicu exits, log on to the primary instance and issue the command.

What to do next

For more information, see: Troubleshooting Db2 High Availability Instance Configuration Utility (db2haicu)