Registering the DB2 license key

The IBM® DB2® Enterprise Server Edition, Version 10.1 license key must be registered using the db2licm command.

About this task

The DB2 product uses the license key information contained in the nodelock file. The nodelock file is created or updated by running the db2licm command and specifying the license file for the DB2 product. Creating or updating the nodelock file is referred to as registering the DB2 product license key.

The DB2 product uses the license key information that is contained in the nodelock file, which is created or updated by running the db2licm command and specifying the license file for the DB2 product. To register the license key, you must run the db2licm command on each computer where DB2 is installed.

To manually register your DB2 product license key using root authority:
  1. Log in as a user with root authority.
  2. Register the DB2 product license key with the appropriate command:
    • /usr/opt/db2_08_01/adm/db2licm -a filename on AIX®
    • /opt/IBM/db2/V8.1/adm/db2licm -a filename for all other UNIX-based operating systems
    where filename is the full pathname and filename for the license file that corresponds to the product you are bundling.
For example, on AIX, if the CD-ROM is mounted in the /cdrom directory and the name of the license file is db2ese_o.lic, the command should be: /usr/opt/db2_08_01/adm/db2licm -a /cdrom/db2/license/db2ese_o.lic
After running the db2licm command, the DB2 product license key information is contained in the nodelock file in the following directories:
  • AIX: /var/ifor.
  • HP-UX, Linux, or Solaris Operating Environment: /var/lum.
  • Windows: DB2PATH/sqllib/license.

Procedure

To register your DB2 product license key as the instance owner:

  1. Create the instance environment and become the instance owner.
  2. Register your DB2 product license with the appropriate command:
    • For UNIX operating systems: db2instance_path/adm/db2licm -a filename
    • For Windows operating systems: db2instance_path\adm\db2licm -a filename
    where db2instance_path is where the DB2 instance was created and filename is the full pathname and filename for the license file that corresponds to the product that you are bundling.

Feedback