Solved

Install db2 license in Perl

Posted on 2006-11-16
7
476 Views
Last Modified: 2013-12-26
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>

=====================================================================================================================
0
Comment
Question by:p0sreed
  • 3
  • 2
7 Comments
 

Author Comment

by:p0sreed
ID: 17972235
help, please!
0
 
LVL 48

Expert Comment

by:Tintin
ID: 17973864
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.
0
 

Author Comment

by:p0sreed
ID: 17985470
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
0
 
LVL 48

Accepted Solution

by:
Tintin earned 300 total points
ID: 17985485

cpus=`psrinfo|grep -c on-line`;
system "db2licm -a db2ese.lic" and die "db2licm failed $!\n";
system "db2licm -n db2ese $cpus" and die "db2licm failed$!\n";

Any reason you want to create a Perl script for this rather than a shell script?
0
 

Author Comment

by:p0sreed
ID: 18034721
to port it to windows too
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question