Upgrading the license of a deployed Db2 service

After you deploy the Db2® service, you can upgrade your license from Db2 Community Edition to Db2 Advanced Edition.

About this task

Follow these steps if you did not upgrade the Db2 license before deploying.

Procedure

  1. Encode your license to base64 by running the following command:
    base64 license.lic > encode.lic
  2. Update the password secrets by following these steps:
    1. Run the following command to edit the license secret:
      oc edit secret -n project c-service-name-db2u-lic
    2. Copy the contents of the encode.lic file into the data.db2u-lic field of the secrets c-service-name-db2u-lic.
    3. Save the secret.
  3. Delete the db2u-0 pod to restart the database with the updated license:
    oc delete po -n project c-service-name-db2u-0
  4. Scale up Db2.