473,413 Members | 2,043 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Autostart DB2 v9 on Linux

I want to thank all of you that have answered my earlier questions, thanks.

New problems though. The database doesn't start with the operating system
and I can't find out how it does that on the other server. Can't find
anything in the rc-files that seems to apply so I figure that there's some
kind of magic involved ;-)

The second question is why I have to re-apply the licence every time I
restart the dbm? Shouldn't it be enough to do a db2licm -a *.lic once?
The operating system is Fedora* core 6 with DB2 9 WSE.

*) I really wanted Red Hat 4 AS but since Red Hat Sweden after two weeks
still can't give me an answer about the Academic Edition (that we already
have two of btw) I just couldn't wait any longer.

--

Mvh

/RE
Nov 6 '06 #1
6 9628
Have you tried db2iauto ? According to the manual :
db2iauto - Auto-start Instance Command
Enables or disables the auto-start of an instance after each system
restart. This command is available on UNIX-based systems only.
check the syntax here
http://publib.boulder.ibm.com/infoce.../v8//index.jsp , search
for "db2iauto"
and answer on your second question , no license is applied once ....

/RK

Nov 6 '06 #2
ka******@hotmail.com wrote in news:1162814509.191126.314250
@h48g2000cwc.googlegroups.com:
Have you tried db2iauto ? According to the manual :
db2iauto - Auto-start Instance Command
Enables or disables the auto-start of an instance after each system
restart.
Thank you. That did the trick.
and answer on your second question , no license is applied once ....
That's what I thought. Unfortunatelly if I run db2stop and then db2start
it will tell me that there's no valid license:

[db2inst1@norrbo ~]$ db2stop
SQL1064N DB2STOP processing was successful.

[db2inst1@norrbo ~]$ db2start
ADM12026W The DB2 server has detected that a valid license for this
product has not been registered.
SQL1063N DB2START processing was successful.

[db2inst1@norrbo license]$ db2licm -a db2wse.lic

LIC1402I License added successfully.
LIC1426I This product is now licensed for use as specified in the
License Agreement and License Information documents pertaining to the
licensed copy of this product. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE
OF THE TERMS OF THE IBM LICENSE AGREEMENT AND LICENSE INFORMATION
DOCUMENTS, LOCATED IN THE FOLLOWING DIRECTORY:
"/opt/ibm/db2/V9.1/license/en_US.iso88591"

[db2inst1@norrbo license]$ db2licm -l
Product name: "DB2 Workgroup Server Edition"
License type: "License not registered"
Expiry date: "License not registered"
Product identifier: "db2wse"
Version information: "9.1"
Max number of CPUs: "4"
Max amount of memory (GB): "16"
Annotation: "1;(_b)"

[db2inst1@norrbo ~]$ db2stop
SQL1064N DB2STOP processing was successful.

[db2inst1@norrbo ~]$ db2start
ADM12026W The DB2 server has detected that a valid license for this
product has not been registered.
SQL1063N DB2START processing was successful.

And so on...

Every other version I've installed before have worked just fine. Why is
this one giving me all these problems? Oh well..

--

Mvh

/RE
Nov 6 '06 #3
Ok, where are the license file ? run db2licm -g to generate a
compliance report
/Roger

Nov 6 '06 #4
ka******@hotmail.com wrote in news:1162823383.974147.249370
@h48g2000cwc.googlegroups.com:
Ok, where are the license file ?
Where I unpacked the file downloaded from IBM:

[db2inst1@norrbo license]$ locate db2wse.lic
/dl/DB2_9.1/Linux_x86-64/DB2_WSE/db2/license/db2wse.lic

run db2licm -g to generate a compliance report
[db2inst1@norrbo license]$ db2licm -g compliance.txt

LIC1440I License compliance report generated successfully.
[db2inst1@norrbo license]$ cat compliance.txt

ADM12026W The DB2 server has detected that a valid license for
this product has not been registered.

Explanation:

Registration of a valid license key is required in order to
comply with the terms and conditions of your License Agreement.
The license keys for this product are located on this product's
media in the 'license' directory.

User Response:

Use DB2 License Center or db2licm command line utility to
register the appropriate licenses that you have purchased. The
License Agreement text is located in the 'license' directory in
the installation directory of this product.
[db2inst1@norrbo license]$
(The server has 2 dual core Xeon and 8 Gb of RAM)

--

Mvh

/RE
Nov 6 '06 #5
Roger Eriksson wrote:
ka******@hotmail.com wrote in news:1162814509.191126.314250
@h48g2000cwc.googlegroups.com:
>and answer on your second question , no license is applied once ....

That's what I thought. Unfortunatelly if I run db2stop and then db2start
it will tell me that there's no valid license:

[db2inst1@norrbo ~]$ db2stop
SQL1064N DB2STOP processing was successful.

[db2inst1@norrbo ~]$ db2start
ADM12026W The DB2 server has detected that a valid license for this
product has not been registered.
SQL1063N DB2START processing was successful.

[db2inst1@norrbo license]$ db2licm -a db2wse.lic

LIC1402I License added successfully.
LIC1426I This product is now licensed for use as specified in the
License Agreement and License Information documents pertaining to the
licensed copy of this product. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE
OF THE TERMS OF THE IBM LICENSE AGREEMENT AND LICENSE INFORMATION
DOCUMENTS, LOCATED IN THE FOLLOWING DIRECTORY:
"/opt/ibm/db2/V9.1/license/en_US.iso88591"

[db2inst1@norrbo license]$ db2licm -l
Product name: "DB2 Workgroup Server Edition"
License type: "License not registered"
Expiry date: "License not registered"
Product identifier: "db2wse"
Version information: "9.1"
Max number of CPUs: "4"
Max amount of memory (GB): "16"
Annotation: "1;(_b)"

[db2inst1@norrbo ~]$ db2stop
SQL1064N DB2STOP processing was successful.

[db2inst1@norrbo ~]$ db2start
ADM12026W The DB2 server has detected that a valid license for this
product has not been registered.
SQL1063N DB2START processing was successful.

And so on...

Every other version I've installed before have worked just fine. Why is
this one giving me all these problems? Oh well..
Because the licensing for v9 has changed dramatically. With your WSE CD,
you should also have received a license CD to go along with it. There will
be a db2/license directory there with the license to install to convert
your install into a permanent license. I can't tell you the name of it
because there is more than one permanent license for WSE.

Nov 6 '06 #6
I just wanted to thank you all for the your help.

All my troubles that I've encountered this far solved themselves when I
threw out Fedora core 6 and installed Red Hat AS 4 instead.

I realised that I could move the RH license from the old DB-server to the
new one which solved the problem with the updates to the OS.

I might be back in the future though, with new questions ;-)

--

Mvh

/RE
Nov 7 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Bill Medland | last post by:
Can anyone tell me what I am doing wrong? I installed DB2 8.1 + FP5 on Red Hat Enterprise Linux 3 (Update 1), using the command line method (i.e. db2_install and vi and ....) The one bit that...
1
by: timtos | last post by:
How can I tell a setup project to put a file to the startup folder of a user only when he selected this option. To give the user the possibility to select this option I´ve inserted a two radio...
4
by: Dica | last post by:
based on a previous thread, i've been advised that using the system registry isn't always the best way to store user config details (due to portability issues). from my understanding, however,...
0
by: Leo | last post by:
Hi! is it possible to deploy .net 2 application using OneClick Deployment and add it to autostart?
5
by: cranium.2003 | last post by:
hi, Here is my code #include <iostream.h> int main() { cout <<"HI"; return 0; } and using following command to compile a C++ program g++ ex1.cpp -o ex1
4
by: Joh | last post by:
I've developed an application that is launched at system startup. Is there a way to detect when an application is started by autostart and when its launched by a user?
2
by: Ultrak The DBA | last post by:
Using the following query: select substr(reg_var_name,1,24) as reg_var_name, substr(reg_var_value, 1,12) as reg_var_value, level from table(sysproc.reg_list_variables()) as registryinfo; I am...
2
by: JayaseelanVaiyapuri | last post by:
Hi, Anybody please tell how to create a project with autostart future.. If i install the .CAB file in my device the application should automatically start after completing the installation.....
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.