p0sreed
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_soft ware/V8.1/ DBSW/db2/l icense. 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>
========================== ========== ========== ========== ========== ========== ========== ========== ========== ========== =
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_soft
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>
==========================
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.
system "db2licm -n db2ese <number of CPUs>" and die "db2licm failed$!\n";
You make need to specify the full path to the licence file.
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
In solaris we can do that by "psrinfo | grep on-line | wc -l"
root# psrinfo | grep on-line | wc -l
2
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
to port it to windows too
ASKER