Solved

Install db2 license in Perl

Posted on 2006-11-16
7
468 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Need Help INsttalling wget on Mavericks OS X 3 83
repeatEnd java challenge 42 83
Unix / Linux grid computing 5 127
countEvens challenge 2 59
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now