Disabling database connection validation for Db2 during installation or upgrade

You can disable the mechanism that tries to validate all Db2® database connections when the Db2 service is installed or upgraded.

About this task

You disable connection validation by setting the enableDatabaseConnection parameter to false in the Db2 custom resource when installing or upgrading.

When you make this change during installation or upgrade, the new setting takes effect for every new database deployment.

Procedure

  1. Before installing or upgrading Db2, add the following lines to the CR before the license: section:
    spec:
      enableDatabaseConnection: false
  2. If you want to make this change after the Db2 service is installed or upgraded, follow these steps. The change only affects new deployments:
    1. Run the following command to check that the services is in Completed state:
      oc get Db2oltpService db2oltp-cr -o jsonpath='{.status.db2oltpStatus} {"\n"}'
    2. Restart the zen-database-core pod by deleting the pod.