I'm running an XAMPP server for my PHP app and I would like to connect to a zOS DB2 table. I receive license error. I can connect a non-zOS DB2 DB so DB2 functions work. The error message I receive is:
An attempt to connect to the database server failed because of a licensing problem. SQLSTATE=42968 SQLCODE=-1598
My license file is db2consv.lic
Where do I have to copy this lic to take effect?
Procedure for DB2 license registration:
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 UNIXoperating 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, 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.1/adm
on AIX®, HP-UX or Solaris operating systems or /opt/ibm/db2/V11.1/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.1/adm/db2licm -a db2baf.lic