By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,369 Members | 1,131 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,369 IT Pros & Developers. It's quick & easy.

errors running db2cc .....

P: n/a
Hello,

According to the IBM website : http://www-
106.ibm.com/developerworks/linux/library/l-ss3-db2/
If you are using Red Hat 9, with its new thread library, Native POSIX
Thread Library (NPTL), then the Java installation code used by DB2 will
not work. You can force compatibility mode by setting the environment
variable LD_ASSUME_KERNEL to 2.2.5 before starting the install program
(db2setup).
LD_ASSUME_KERNEL=2.2.5
export LD_ASSUME_KERNEL

Note: This is not a supported platform for DB2 V8.1, and some functions
may not work as expected. You should also add these lines to the .bashrc
profile file for any user (for example, db2inst1) who wants to use the
DB2 Control Center or other Java tools.

Well... I have done that. But when I run the ./db2cc from
/home/db2inst1/sqllib/bin ... , I get the following :

[db2inst1@mairl bin]$ ./db2cc
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Exception in thread "main" java.lang.InternalError: Can't connect to X11
window
server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.(X11GraphicsEnviron ment.java:7
7)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(GraphicsEnvi
ronment.java:72)
at java.awt.Font.initializeFont(Font.java:285)
at java.awt.Font.(Font.java:319)
at javax.swing.plaf.FontUIResource.(FontUIResource.ja va:51)
at
javax.swing.plaf.basic.BasicLookAndFeel.getFont(Ba sicLookAndFeel.java
:252)
at
javax.swing.plaf.basic.BasicLookAndFeel.initCompon entDefaults(BasicLo
okAndFeel.java:271)
at
javax.swing.plaf.metal.MetalLookAndFeel.initCompon entDefaults(MetalLo
okAndFeel.java:210)
at
javax.swing.plaf.basic.BasicLookAndFeel.getDefault s(BasicLookAndFeel.
java:80)
at
javax.swing.plaf.metal.MetalLookAndFeel.getDefault s(MetalLookAndFeel.
java:1088)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:408)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:435)
at javax.swing.UIManager.initializeDefaultLAF(UIManag er.java:895)
at javax.swing.UIManager.initialize(UIManager.java:99 1)
at javax.swing.UIManager.maybeInitialize(UIManager.ja va:974)
at javax.swing.UIManager.getDefaults(UIManager.java:4 95)
at javax.swing.UIManager.get(UIManager.java:586)
at com.ibm.db2.tools.common.CommonUIManager.initializ e(Unknown
Source)
at CC.setLookAndFeel(Unknown Source)
at CC.(Unknown Source)
at CC.main(Unknown Source)
DB2JAVIT : RC = 1

Does this mean I'm going to have to run the control centre from my
winders machine and catalog the database as not local? Would be a pure
pain in the arse. I thought DB2 was supported on Fedora Core 2 ....???
Mairhtin
Nov 12 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
This sounds to me more like an X-Windows problem. No?

Larry Edelstein

Mairhtin O'Feannag wrote:
Hello,

According to the IBM website : http://www-
106.ibm.com/developerworks/linux/library/l-ss3-db2/
If you are using Red Hat 9, with its new thread library, Native POSIX
Thread Library (NPTL), then the Java installation code used by DB2 will
not work. You can force compatibility mode by setting the environment
variable LD_ASSUME_KERNEL to 2.2.5 before starting the install program
(db2setup).
LD_ASSUME_KERNEL=2.2.5
export LD_ASSUME_KERNEL

Note: This is not a supported platform for DB2 V8.1, and some functions
may not work as expected. You should also add these lines to the .bashrc
profile file for any user (for example, db2inst1) who wants to use the
DB2 Control Center or other Java tools.

Well... I have done that. But when I run the ./db2cc from
/home/db2inst1/sqllib/bin ... , I get the following :

[db2inst1@mairl bin]$ ./db2cc
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Exception in thread "main" java.lang.InternalError: Can't connect to X11
window
server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.(X11GraphicsEnviron ment.java:7
7)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(GraphicsEnvi
ronment.java:72)
at java.awt.Font.initializeFont(Font.java:285)
at java.awt.Font.(Font.java:319)
at javax.swing.plaf.FontUIResource.(FontUIResource.ja va:51)
at
javax.swing.plaf.basic.BasicLookAndFeel.getFont(Ba sicLookAndFeel.java
:252)
at
javax.swing.plaf.basic.BasicLookAndFeel.initCompon entDefaults(BasicLo
okAndFeel.java:271)
at
javax.swing.plaf.metal.MetalLookAndFeel.initCompon entDefaults(MetalLo
okAndFeel.java:210)
at
javax.swing.plaf.basic.BasicLookAndFeel.getDefault s(BasicLookAndFeel.
java:80)
at
javax.swing.plaf.metal.MetalLookAndFeel.getDefault s(MetalLookAndFeel.
java:1088)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:408)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:435)
at javax.swing.UIManager.initializeDefaultLAF(UIManag er.java:895)
at javax.swing.UIManager.initialize(UIManager.java:99 1)
at javax.swing.UIManager.maybeInitialize(UIManager.ja va:974)
at javax.swing.UIManager.getDefaults(UIManager.java:4 95)
at javax.swing.UIManager.get(UIManager.java:586)
at com.ibm.db2.tools.common.CommonUIManager.initializ e(Unknown
Source)
at CC.setLookAndFeel(Unknown Source)
at CC.(Unknown Source)
at CC.main(Unknown Source)
DB2JAVIT : RC = 1

Does this mean I'm going to have to run the control centre from my
winders machine and catalog the database as not local? Would be a pure
pain in the arse. I thought DB2 was supported on Fedora Core 2 ....???
Mairhtin


Nov 12 '05 #2

P: n/a
Here are some steps for installing on DB2 8.1 on RH9 that I have used. This
might work on other RH versions also:

DB2-RH 9 Linux Installation Instructions

1. Install IBM Java 1.41 (or latest code) free from IBM website.

2. Set display (where host_name is your host)

xhost + host_name
export DISPLAY=host_name:0

3. Set Kernel for DB2 install only (not needed later)

LD_ASSUME_KERNEL=2.2.5
export LD_ASSUME_KERNEL

4. Run ./db2setup

Install DB2 with an instance but DO NOT install Tools Catalog

5. Reboot

6. Update java path (your path may be different depending on which Java you
install)

db2 update dbm cfg using jdk_path /opt/IBMJava2-141
db2 update admin cfg using jdk_path /opt/IBMJava2-141

This will point DB2 to the correct JDK for DB2 and Admin Server.

7. You can now install Tools Catalog in you want one.

8. Update Linux parms

The default setting for the msgmni kernel parameter only allows a couple of
simultaneous
connections to DB2. To set this value at boot time, append the following
lines to
/etc/sysctl.conf:
# Sets maximum number of message queues to 128
# Set this to 1024 or higher on production systems
kernel.msgmni = 128

9. Change the etc/nsswitch.conf file to search DNS before
searching the hosts file. For example, hosts : dns files



Nov 12 '05 #3

P: n/a
Mark,

I installed correctly. Everything works with the exception of db2cc ...

And the IBM documentation says to set the kernel level to 2.5.5 before
invoking db2cc ...

This has to have come up before..

I don't think DB2 is ready for Fedora Core 2.

Mairhtin
"Mark A" <no****@nowhere.com> wrote in
news:79*****************@news.uswest.net:
Here are some steps for installing on DB2 8.1 on RH9 that I have used.
This might work on other RH versions also:

DB2-RH 9 Linux Installation Instructions

1. Install IBM Java 1.41 (or latest code) free from IBM website.

2. Set display (where host_name is your host)

xhost + host_name
export DISPLAY=host_name:0

3. Set Kernel for DB2 install only (not needed later)

LD_ASSUME_KERNEL=2.2.5
export LD_ASSUME_KERNEL

4. Run ./db2setup

Install DB2 with an instance but DO NOT install Tools Catalog

5. Reboot

6. Update java path (your path may be different depending on which
Java you install)

db2 update dbm cfg using jdk_path /opt/IBMJava2-141
db2 update admin cfg using jdk_path /opt/IBMJava2-141

This will point DB2 to the correct JDK for DB2 and Admin Server.

7. You can now install Tools Catalog in you want one.

8. Update Linux parms

The default setting for the msgmni kernel parameter only allows a
couple of simultaneous
connections to DB2. To set this value at boot time, append the
following lines to
/etc/sysctl.conf:
# Sets maximum number of message queues to 128
# Set this to 1024 or higher on production systems
kernel.msgmni = 128

9. Change the etc/nsswitch.conf file to search DNS before
searching the hosts file. For example, hosts : dns files




Nov 12 '05 #4

P: n/a
"Mairhtin O'Feannag" <ir********@rocketmail.com> wrote in message
news:Xn******************************@64.164.98.51 ...
Mark,

I installed correctly. Everything works with the exception of db2cc ...

And the IBM documentation says to set the kernel level to 2.5.5 before
invoking db2cc ...

This has to have come up before..

I don't think DB2 is ready for Fedora Core 2.

Mairhtin

Did you do everything I suggested, including the following?

db2 update dbm cfg using jdk_path /opt/IBMJava2-141
db2 update admin cfg using jdk_path /opt/IBMJava2-141

IBM does not support DB2 8.1 on RH9 either, but I got it to work.

Nov 12 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.