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