Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

errors running db2cc .....

2 views
Skip to first unread message

Mairhtin O'Feannag

unread,
Jun 29, 2004, 7:25:12 PM6/29/04
to
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.(X11GraphicsEnvironment.java:7
7)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(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.java:51)
at
javax.swing.plaf.basic.BasicLookAndFeel.getFont(BasicLookAndFeel.java
:252)
at
javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLo
okAndFeel.java:271)
at
javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLo
okAndFeel.java:210)
at
javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.
java:80)
at
javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.
java:1088)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:408)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:435)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:895)
at javax.swing.UIManager.initialize(UIManager.java:991)
at javax.swing.UIManager.maybeInitialize(UIManager.java:974)
at javax.swing.UIManager.getDefaults(UIManager.java:495)
at javax.swing.UIManager.get(UIManager.java:586)
at com.ibm.db2.tools.common.CommonUIManager.initialize(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

Larry

unread,
Jun 29, 2004, 8:40:14 PM6/29/04
to
This sounds to me more like an X-Windows problem. No?

Larry Edelstein

Mark A

unread,
Jun 29, 2004, 8:52:41 PM6/29/04
to
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

Mairhtin O'Feannag

unread,
Jun 30, 2004, 1:29:21 PM6/30/04
to
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" <nob...@nowhere.com> wrote in
news:79oEc.465$Ro6....@news.uswest.net:

Mark A

unread,
Jun 30, 2004, 2:33:03 PM6/30/04
to
"Mairhtin O'Feannag" <irish...@rocketmail.com> wrote in message
news:Xns95186ADC71FC8...@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.

0 new messages