IBM Support

[Db2] How to register a license in DB2 9 or later.

Question & Answer


Question

I can't register a license as below in spite of running "db2licm -a" command or registering a license after DB2 deployment.
a)When running "db2licm -l", "License not registered" is displayed on the screen.
Product name: "DB2 Enterprise Server Edition"
License type: "License not registered"
Expiry date: "License not registered"
Product identifier: "db2ese"
Version information: "10.1"

b)When db2start, a warning message for ADM12026W is logged.
<message>
The DB2 server has detected that a valid license for the product product-name has not been registered.
c)db2start fails with SQL8000N due to missing license.
<message>
SQL8000N DB2START processing failed; a valid product license was not found. If you have licensed this product, ensure the license key is properly registered. You can register the license via the License Center or db2licm command line utility. The license key can be obtained from your licensed product CD.
SQL1032N No start database manager command was issued. SQLSTATE=57019

Cause

Starting in DB2 v9,  users have to register not only a basic license included in the product media, but also a license included on the Activation CD or Quick Start CD to activate a license for DB2 server product.
(Db2 v11.5 or later, product media comes with a Developer Community Edition license instead of a basic license.)
If you register the basic license only, db2licm prints "License not registered".
If you register the trial license only, you may see  "No license" message during db2start, and Db2 does not start after the trial period has been expired.

Answer

To successfully register a product license, you have to register the appropriate license file with the DB2 database product after installation.
License file is provided as Activation CD after DB2 V9.1.
How to get a license file.
License file(*.lic) is in the /db2/license directry in Activation CD.
The name of file differs depending on product name and license type. for example, db2*_c.lic(CPU/PVU Option) or db2*_u.lic(Authorized User Option)
If you use DB2 Enterprise Server Edition (CPU Option), the file named db2ese_c.lic.
If you have not purchased a media pack and do not have an Activation CD, you can download it from Passport Advantage Online.
If you have purchased a media pack, you can use DVD labeled Activation or Quick Start.
Log on the Passport Advantage to use Customer's IBM ID from below page.
Search for part number of license file.
*Passport Advantage Online
In addition, Please refer to the following page for the part number and download method of the license file.
*How do I download my DB2 license from Passport Advantage
Please refer to the following page for the part number of DB2 V11.5.
Downloading IBM DB2 Version 11.5 for Linux, UNIX, and Windows
How to register a license file
  1. Login as Instance owner (Unix/Linux), Administrator or Power Users group (Windows).
  2. Run the following command.
     db2licm -a <License file name>
    
  3. Run the following command to see if it's registerd successfully.
     db2licm -l
    
To register valid license key, db2licm -l command show all available product with license information. Sample output is as follows:
 $ db2licm -l
 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 Performance Management Offering:              "Not licensed"
Operational Consideration:
The license file is common to each platform, but it is different at every versions.
For example, Both DB2 V11.1 for Windows and V11.1 for Linux use common license file, but DB2 V10.5 for AIX and V11.1 for AIX use different license file.
The file name is the same even if the version changes.
In the case of installing several DB2 copys on a computer, you have to register a license to every DB2 copy.
Multiple DB2 copies on the same computer (Linux and UNIX)
Multiple DB2 copies on the same computer (Windows)

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.8;9.7;9.5;9.1;10.1;10.5;11.1;11.5","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Historical Number

354D0F6997402394492576DA0039BA84

Document Information

Modified date:
04 October 2019

UID

ibm11074360