Importing the Db2udbTypes.cf file

Before you use the DB2 UDB templates, use the Cluster Manager (Java Console) to import the Db2udbTypes.cf file to the VCS engine.

Note:

Before you start the following procedure, for more instructions on Java GUI, refer to the Cluster Server Installation Guide.

To import the Db2udbTypes.cf file using the Cluster Manager (Java Console)

  1. On one of the nodes in the cluster, start the Cluster Manager (Java Console). Type:
    # hagui&
  2. Log in to the cluster and wait for the Cluster Explorer to launch.
  3. From the File menu select Import Types. Switch to the read/write mode if prompted.
  4. In the Import Types dialog box, select the file:
    /etc/VRTSagents/ha/conf/Db2udb/Db2udbTypes.cf
  5. Click Import and wait for the file to import.
  6. Save the configuration.

    When the Db2udb types are imported to the VCS engine, the Db2udb agent can be configured.

    Refer to the following:

    • If you use the DB2 UDB MPP configuration:

    • If you use the DB2 UDB non-MPP configuration:

To import the Db2udbTypes.cf file using the command line

  1. Log in to a cluster system as superuser.
  2. Make the cluster configuration as read-only. This action ensures that all changes to the existing configuration have been saved and further changes are prevented while you modify main.cf:
    # haconf -dump -makero
  3. To ensure that VCS is not running while you edit main.cf, issue the following command to stop the VCS engine on all systems. Leave the resources that are available online.
    # hastop -all -force
  4. Make a backup copy of the main.cf file.
    # cd /etc/VRTSvcs/conf/config
    # cp main.cf main.cf.orig
  5. Edit the main.cf file to include the Db2udbTypes.cf file.
    # include "Db2udbTypes.cf"

    The DB2 types definition is imported to the VCS engine. The agent for DB2 can be configured without interrupting or stopping VCS.

More Information

Adding service group for DB2 MPP using the Cluster Manager (Java Console)

Adding a service group for DB2 non-MPP with the Cluster Manager (Java Console)