Applying Db2 licenses

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

Before you begin

The following base licenses are available in the /db2/license directory of the server image. The Db2 Community Edition license is automatically applied during Db2 product installation.

  • db2dec.lic: permanent Db2 Community Edition license
  • db2ese_t.lic: Db2 Enterprise Server Edition 90-day trial license
  • db2trial.lic: Db2 Advanced Edition 90-day trial license
  • db2consv.lic: Db2 Connect Server base license applied during installation of the product

About this task

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

Procedure

To apply the Db2 Advanced Edition or Db2 Standard Edition licenses follow these instructions:

  1. Install the Db2 Version 11.5 - Server image that uses the Db2 Setup wizard.
  2. Run the db2licm -a command to apply the relevant licenses for either the Db2 Advanced Edition or Db2 Standard 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.5/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 Performance Management Offering:

    Windows

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

    Linux or UNIX

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

Example

The Db2 Server image comes with the permanent community edition license.

If you applied the Db2 Trial license, the output of db2licm -l command displays as follows:

Product name:         "Db2 Advanced Edition"
License type:         "Trial"
Expiry date:          "04/26/2020"
Product identifier:   "db2adv"
Version information:  "11.5"
Product name:                    "Db2 Community Edition"
License type:                    "Community"
Expiry date:                     "Permanent"
Product identifier:              "db2dec"
Version information:             "11.5"
Max amount of memory (GB):       "16"
Max number of cores:             "4"
Max amount of table space (GB):  "100"

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

Product name:                     		   "Db2 Advanced Edition"
License type:                     		   "Virtual Processor Core"
Expiry date:                      		   "Permanent"
Product identifier:               		   "db2adv"
Version information:              		   "11.5"
Enforcement policy:               		   "Hard Stop"
Features:
IBM Db2 Performance Management Offering:           "Not Licensed"

If you applied the Db2 Standard Edition license, the output of db2licm -l command displays as follows:

Product name:                     	   	   "Db2 Standard Edition"
License type:                     		   "Virtual Processor Core"
Expiry date:                      		   "Permanent"
Product identifier:               		   "db2std"
Version information:              		   "11.5"
Enforcement policy:               		   "Hard Stop"
Features:
IBM Db2 Performance Management Offering:           "Not Licensed"

If you applied the IBM Db2 Performance Management Offering license for Db2 Advanced Edition product, the output of db2licm -l command displays as follows:

Product name:                     	   	   "Db2 Advanced Edition"
License type:                     		   "Virtual Processor Core"
Expiry date:                      		   "Permanent"
Product identifier:               		   "db2adv"
Version information:              		   "11.5"
Enforcement policy:               		   "Hard Stop"
Features:
IBM Db2 Performance Management Offering:           "Licensed"