473,394 Members | 1,794 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,394 software developers and data experts.

Modifying DB2 Profiles/Config files

Hello,

I have had a lot of problems installing a DB2 v8.1 Personal Edition on
a RHEL4. Solved most of them by using a JDK-1.4.1 instead of the
default 1.3.1, which comes with DB2. But I still have two problems,
and I think they have something in common:

1) an instance was created during the installation. I am trying to add
a new instance by using: "/opt/IBM/db2/V8.1/instance/db2icrt -d -a
server -s ese -u db2fenc1 db2inst2", and this fails in the set_cfgfile
routine. The debug looks like:

+ set_cfgfile
+ trac set_cfgfile
+ '[' 0 -eq 0 ']'
+ echo '## call function set_cfgfile'
+ tee -a /tmp/db2icrt.log.4581
## call function set_cfgfile
+ set -x
+ '[' ese = EEE -o ese = eee ']'
+ '[' ese = EE -o ese = ee ']'
+ '[' ese = ESE -o ese = ese ']'
+ CFGFILE=db2sysmp
+ '[' '!' -f /opt/IBM/db2/V8.1/cfg/db2sysmp ']'
+ trax set_cfgfile
+ '[' 0 -eq 0 ']'
+ echo '## exit function set_cfgfile'

Indeed, there isn't such a file "/opt/IBM/db2/V8.1/cfg/db2sysmp". In
that directory, there are two files starting with "db2sys": "db2sysrq"
and "db2syssr". When copying one of these "profile" files to
"db2sysmp", the instance is created. The question is: why wasn't a
profile file for ESE/WSE set up from the very beginning by the
installation process?

2) whenever I create a new instance, or try to use the instance
created during the installation, a lot of tools like "db2ca", "db2cc",
etc. don't work because:

sh: /opt/IBMJava2-131/jre/bin/java: No such file or directory
DB2JAVIT : RC = 127

This "IBMJava2-131" seems to be hardcoded in many utilities. The DB2
installation used a "IBMJava2-141" JVM, there wasn't/isn't any "131"
on the disk.

I can update the "JDK_PATH" pro database manager, and then the
instance tools "db2cc", "db2ca", etc. work. But when creating new
instances, they inherit the old IBMJava2-131 path.

What's even more interesting, this "hardcored path" IBMJava2-131
appears in both "profiles" files mentioned above, "db2sysrq" and
"db2syssr". How can one modify/generate this sort of profile files,
and modify variables like "JDK_PATH" at the "DB2 Installation" level
(as opposed to "DB2 Instance/DBM level")?

Thank you,
Bogdan

Oct 18 '07 #1
1 3753
bo*********@gmail.com wrote:
Hello,

I have had a lot of problems installing a DB2 v8.1 Personal Edition on
a RHEL4. Solved most of them by using a JDK-1.4.1 instead of the
default 1.3.1, which comes with DB2. But I still have two problems,
and I think they have something in common:

1) an instance was created during the installation. I am trying to add
a new instance by using: "/opt/IBM/db2/V8.1/instance/db2icrt -d -a
server -s ese -u db2fenc1 db2inst2", and this fails in the set_cfgfile
routine. The debug looks like:
You have personal edition, you claim. So why are you trying to create a wse
(or even ese) instance? Just leave the "-s" flag out of your command
altogether (with the 'ese' parameter). That should solve that problem.

db2icrt defaults to the "largest" available instance type. If you have ESE
installed, it defaults to ESE. If you have WSE or Express installed, it
defaults to that type (Express uses the WSE instance type). Similarly
Personal Edition uses the "standalone" type (which doesn't have a -s flag
option on Linux, you need to use the default), and clients use the "client"
type.
Indeed, there isn't such a file "/opt/IBM/db2/V8.1/cfg/db2sysmp". In
There shouldn't be ... unless you have ESE installed.
that directory, there are two files starting with "db2sys": "db2sysrq"
and "db2syssr". When copying one of these "profile" files to
"db2sysmp", the instance is created. The question is: why wasn't a
profile file for ESE/WSE set up from the very beginning by the
installation process?
Because you don't have ESE or WSE installed?
2) whenever I create a new instance, or try to use the instance
created during the installation, a lot of tools like "db2ca", "db2cc",
etc. don't work because:

sh: /opt/IBMJava2-131/jre/bin/java: No such file or directory
DB2JAVIT : RC = 127

This "IBMJava2-131" seems to be hardcoded in many utilities. The DB2
installation used a "IBMJava2-141" JVM, there wasn't/isn't any "131"
on the disk.
The default for v8.1 is Java 1.3 because Java 1.4 didn't exist at the time.
You should upgrade to v8.2, that should change the default.
I can update the "JDK_PATH" pro database manager, and then the
instance tools "db2cc", "db2ca", etc. work. But when creating new
instances, they inherit the old IBMJava2-131 path.

What's even more interesting, this "hardcored path" IBMJava2-131
appears in both "profiles" files mentioned above, "db2sysrq" and
"db2syssr". How can one modify/generate this sort of profile files,
and modify variables like "JDK_PATH" at the "DB2 Installation" level
(as opposed to "DB2 Instance/DBM level")?
As far as I'm aware, you can't. These are instance variables, and there is
no global version of these variables to use.
Oct 20 '07 #2

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

Similar topics

2
by: yvan | last post by:
I was wondering if someone here could help me with modifying this PHP template so that it does something very specific for me. My knowledge of PHP is very limited (I'm more of a Cold Fusion...
2
by: B. Hummer | last post by:
My corporate environment uses redirected profiles for Application Settings, My Documents and Desktop. I've already gotten through the fact that to run my apps "trusted" that I need to have the...
8
by: vadim | last post by:
Hi, Is there a .Net control available that allows to write into web.config file appsettings section? The idea is to create encrypted user name and password for database connection and then...
0
by: george_Martinho | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older than a...
1
by: moondaddy | last post by:
I need to have multiple deployment profiles for a .net 2.0 winforms project. This is my requirement: 1) Re-use same project for multiple ClickOnce deployment profiles. 2) Each profile will...
0
by: Ryan Adler | last post by:
We would like to use the Profiles in ASP.NET 2.0, and I have started a few tests. I have created our own provider to connect to our data source, and this is working fine. I have also gone ahead...
3
by: Jeff | last post by:
Hey asp.net 2.0 I want to populate a GridView with the profile properties off all users registered on a website! For example like this: <profile enabled="true"> <properties>
3
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I have seen a few articals that show how to start using properties, even a few on custom providors for profiles, but have not yet seen any basic steps on how to initialize the database tables and...
5
by: IUnknown | last post by:
Ok, we are all aware of the situation where modifying the folder structure (adding files, folders, deleting files, etc) will result in ASP.NET triggering a recompilation/restart of the application....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.