?
Solved

Install db2 license in Perl

Posted on 2006-11-16
7
Medium Priority
?
483 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1200 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

770 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