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
-
Run the following command to target your Db2 deployment:
- Encode your license to base64 by running the following command:
base64 license.lic > encode.lic
-
Update the license secret by following these steps:
-
Run the following command to edit the license secret:
oc edit secret -n ${PROJECT_CPD_INST_OPERANDS} c-${DB2_CR}-db2u-lic
${DB2_CR}
is the service instance you want to update.
-
Copy the contents of the encode.lic file into the
data.db2u-lic field of the secrets:
-
Save the secret.
-
Delete the
Db2U pod to restart the database with the updated license:
oc delete po -n ${PROJECT_CPD_INST_OPERANDS} c-${${DB2_CR}}-db2u-0
-
Scale up Db2.