Applying Db2 licenses

To be in compliance with your current product entitlement, after installation, you must manually apply the licenses.

Before you begin

Ensure that the base license certificate file is available at the /db2/license directory of the installation image.

The following base licenses are available at the /db2/license directory of the server image and the product-specific base license is automatically applied during Db2 product installation.
  • db2ese.lic
  • db2exp.lic
  • db2consv.lic

About this task

This task explains how to apply the licenses manually after installation.

Procedure

To apply any of the Db2 Enterprise Server Edition, Db2 Advanced Enterprise Server Edition, Db2 Workgroup Server Edition, or Db2 Advanced Workgroup Server Edition licenses follow the following steps:

  1. Install the Db2 Version 11.1 - Workgroup, Enterprise, and Advanced Editions common image that uses the Db2 Setup wizard.
  2. Run the db2licm -a command to apply the relevant licenses for either the Db2 Enterprise Server Edition, Db2 Advanced Enterprise Server Edition, Db2 Workgroup Server Edition, or Db2 Advanced Workgroup Server Edition.

    Windows

    For windows machines, run the following command:
    db2install_path\bin\db2licm -a filename
    where db2install_path is the Db2 installation path, and filename is the full path name or file name for the license certificate file that corresponds to the Db2 product edition you have purchased.

    Linux® or UNIX

    For Linux or UNIX machines, run the following command:
      INSTHOME/sqllib/adm/db2licm -a filename
    where INSTHOME represents the home directory of the instance owner, and filename is the full path name or file name for the license certificate file that corresponds to the Db2 product edition you have purchased. The db2licm command can also be found in the path where the Db2 database product is installed. For example, /opt/IBM/db2/V11.1/adm on Linux or UNIX operating system, if you use the default installation directory.
  3. If you purchased a Db2 add-on offering, run the db2licm -a command to activate the relevant functions for the Db2 offering.
    For example: if you purchased the IBM® Db2 BLU Acceleration In-Memory Offering:

    Windows

    For windows machines, run the following command:
    db2install_path\bin\db2licm -a <license_path>/db2baf.lic
    where db2install_path is the Db2 installation path, <license_path> is the full path name for the license file, and db2baf.lic is the license certificate file of IBM Db2 BLU Acceleration In-Memory Offering.

    Linux or UNIX

    For Linux or UNIX machines, run the following command:
    INSTHOME/sqllib/adm/db2licm -a <license_path>/db2baf.lic
    where INSTHOME represents the home directory of the instance owner and <license_path> is the full path name for the license file, and db2baf.lic is the license certificate file of IBM Db2 BLU Acceleration In-Memory Offering.
  4. To verify the Db2 product license information, run the db2licm -l command.

Example

If you applied the Db2 Advanced Enterprise Server Edition PVU option license, the output of db2licm -l command displays as follows:

Product name:         "Db2 Advanced Enterprise Server
Edition"
License type:         "CPU option"
Expiry date:          "Permanent"
Product identifier:   "db2aese"
Version information:  "11.1"
Enforcement policy:   "Soft Stop"

If you applied the Db2 Advanced Workgroup Server Edition PVU option license, the output of db2licm -l command displays as follows:

Product name:               "Db2 Advanced
Workgroup Server Edition"
License type:               "CPU option"
Expiry date:                "Permanent"
Product identifier:         "db2awse"
Version information:        "11.1"
Max amount of memory (GB):  "128"
Enforcement policy:         "Soft Stop"

If you applied the Db2 Workgroup Server Edition PVU option license, the output of db2licm -l command displays as follows:

Product name:                                      "Db2 Workgroup Server
Edition"
License type:                                      "CPU option"
Expiry date:                                       "Permanent"
Product identifier:                                "db2wse"
Version information:                               "11.1"
Max amount of memory (GB): 	                 "128"
Enforcement policy:                                "Soft Stop"
Features:
IBM Db2 BLU-Acceleration In-Memory Offering:	"Not Licensed"
IBM Db2 Performance Management Offering:	    "Not Licensed"
IBM Db2 Encryption Offering:			  "Not Licensed"
IBM Db2 Business Application Continuity Offering:  "Not Licensed"

If you applied the Db2 Enterprise Server Edition PVU option license, the output of db2licm -l command displays as follows:

Product name:                     		   "Db2 Enterprise Server
Edition"
License type:                     		   "CPU option"
Expiry date:                      		   "Permanent"
Product identifier:               		   "db2ese"
Version information:              		   "11.1"
Enforcement policy:               		   "Soft Stop"
Features:
IBM Db2 BLU-Acceleration In-Memory Offering:	"Not Licensed"
IBM Db2 Performance Management Offering:	    "Not Licensed"
IBM Db2 Encryption Offering:			  "Not Licensed"
IBM Db2 Business Application Continuity Offering:  "Not Licensed"

If you applied the IBM Db2 BLU Acceleration In-Memory Offering license for a Db2 Enterprise Server Edition product, the output of db2licm -l command displays as follows:

Product name:                     	   	"Db2 Enterprise Server
Edition"
License type:                     		   "CPU option"
Expiry date:                      		   "Permanent"
Product identifier:               		   "db2ese"
Version information:              		   "11.1"
Enforcement policy:               		   "Soft Stop"
Features:
IBM Db2 BLU-Acceleration In-Memory Offering:	"Licensed"
IBM Db2 Performance Management Offering:	    "Not Licensed"
IBM Db2 Encryption Offering:			  "Not Licensed"
IBM Db2 Business Application Continuity Offering:  "Not Licensed"