Registering a Db2 database product or Db2 offering license certificate using the db2licm command

Use the db2licm command to apply the license entitlement certificate (also referred to as registering a license certificate file).

Before you begin

To complete this task, you must have the appropriate license certificate file (*.lic).

To connect to a z/OS® server or a System i® server, you must register a Db2 Connect license certificate file. (Retrieve the license certificate file from your Passport Advantage® distribution, for example db2conpe.lic, then copy the license certificate file to the license directory under the directory where the driver was installed.) On System i server, you must add a swidtag on Db2® for i "Db2 Connect Unlimited Edition for System i" machine. For more information, see IBM® Support document Steps to put swidtag on Db2 for i "Db2 Connect Unlimited for System i" machine.

If you are using Db2 Connect Unlimited Edition for z/OS, then use a server based license certificate file. This one step will prevent the need for client based license certificate file. For details, see the topic about activating the license certificate file for Db2 Connect Unlimited Edition for System z®.

On Windows operating systems, you must belong to the local Administrators or Power Users group to use the db2licm command with the -a command parameter.

Procedure

  • On Windows operating systems, register a Db2 license certificate file by entering the following command:
    db2install_path\bin\db2licm -a filename
    where db2install_path is the Db2 installation path filename is the full path name and file name for the license certificate file that corresponds to the product or offering you have purchased.
  • On Linux® or UNIX operating systems, register a Db2 license certificate file by entering 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 and file name for the license certificate file that corresponds to the product or Db2 offering 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 AIX® operating systems or /opt/ibm/db2/V11.5/adm on Linux operating systems, if you use the default installation directory.

Example

On Linux, to register the IBM Db2 BLU Acceleration® In-Memory Offering, run this db2licm command:
  /opt/IBM/db2/V11.5/adm/db2licm -a db2baf.lic