Solved

Install db2 license in Perl

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange date stored 22 106
How to determine file rename from EventLog ? 2 43
modThree challenge 4 80
Sed question 2 69
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

28 Experts available now in Live!

Get 1:1 Help Now