How to activate DB2 License, If you purchased a DB2 V10.5, V10.1, V9.8, V9.7, V9.5, V9.1 product then you can obtain license key from Passport Advantage.
Starting with DB2 Version 9.1, the license file for DB2 products is shipped separately in a file called the Activation key.
Connect with Instance owner (db2inst1) and unzip DB2_ESE_PVU_QS_Activ_10.5.0.5.zip
Extract the license file.
The license key is found in the /db2/license directory of the downloaded Activation file.
First run below command to verify db2 license exists or not
Product name: "DB2 Enterprise Server Edition"
License type: "License not registered"
Expiry date: "License not registered"
Product identifier: "db2ese"
Version information: "10.5"
db2licm -a db2ese_c.licNow add license
bash-4.2$ db2licm -a db2ese_c.lic
LIC1402I License added successfully.
LIC1426I This product is now licensed for use as outlined in your License Agreement. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE OF THE TERMS OF THE IBM LICENSE AGREEMENT, LOCATED IN THE FOLLOWING DIRECTORY: