Link to home
Start Free TrialLog in
Avatar of p0sreed
p0sreedFlag for United States of America

asked on

Install db2 license in Perl

Need the following the steps in Perl

Preferebly in Solaris

Help!

=====================================================================================================================
Install the db2license.

To install the DB2 license you need to log-on as db2<sid>.


The license file is located in /sapmnt/db_sw/db6/DB2_software/V8.1/DBSW/db2/license. The filename is db2ese.lic

To install the  product license, call the DB2 license manager program:

db2licm -a db2ese.lic


This will install the license file (nodelock) to /var/lum <- On adaptive installations,
make sure that /var/lum is a link to /opt/IBM/db2/lum:


It is necessary that the /opt/IBM/db2/lum directory exists.


After the installation of the DB2 license please update the number of licensed processors to match the number of CPUs on the DB server:
db2licm -n db2ese <number of CPUs>

=====================================================================================================================
Avatar of p0sreed
p0sreed
Flag of United States of America image

ASKER

help, please!
Avatar of Tintin
Tintin

system "db2licm -a db2ese.lic" and die "db2licm failed $!\n";
system "db2licm -n db2ese <number of CPUs>" and die "db2licm failed$!\n";

You make need to specify the full path to the licence file.
Avatar of p0sreed

ASKER

hmm...need a step to find the no of CPUs and feed the value to the <number of CPUs>

In solaris we can do that by "psrinfo | grep on-line | wc -l"

root# psrinfo | grep on-line | wc -l
       2
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of p0sreed

ASKER

to port it to windows too