DB2 Version 10.1 for Linux, UNIX, and Windows

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. You will use the same XML file if you are configuring database partitions or, in an HADR setup, both the primary and the standby.
  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

DB2 high availability instance configuration utility (db2haicu) does not have a separate diagnostic log. You can investigate and diagnose db2haicu errors using the database manager diagnostic log, db2diag log file, and the db2pd tool. For more information, see: Troubleshooting DB2 High Availability Instance Configuration Utility (db2haicu)