473,320 Members | 2,111 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,320 software developers and data experts.

errors running db2cc .....

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
4 8476
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
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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current...
8
by: Data Goob | last post by:
I searched far and wide for more information on how to correct this problem, but did not find any information on what to do. We have successfully installed DB2 8.1 on Linux. SuSE 9.0. Kernel...
1
by: Bruce M | last post by:
Is there a way to run the db2-generated HADR-create script outside of DB2CC beyond the obvious? My DB2CC generates the HADR script and then abends because of a java error meaning I can't finish my...
6
by: Smutny30 | last post by:
Hello, I have problem running the db2cc (Command Center) on AIX. I obtain SQL1224N error when trying to display some windows of the CC. Eg. I try to create database - OK, but then I try to watch...
3
by: dunleav1 | last post by:
I have an AMD Redhat 3.0 machine that is 64 bit. My kernel level is 2.4.21-21.0.1. I downloaded C58SBML.tar off of IBM's website. C58DBML.tar is listed as the 64 bit version of DB2 with the 2.4...
1
by: szudor | last post by:
Hi, When I start db2cc, the program hangs with memory access violation in javaw.exe. Strating with trace option, in java trace file I found the following information: 0SECTION TITLE...
15
by: xiaoning.sunx | last post by:
Hi, i have a pb of configuer db2 express-C with ubuntu6.10 version desktop. In fact, i had installed db2 9.1Express-C and i can't start the control center and everytime it shows: ./db2cc 27 :...
3
by: bomahony | last post by:
I recently installed four AIX 5.3 boxes (ML03 and 04). I then installed various versions of db2 V8.1 -- FP9a and FP11 when i run db2cc on two of the boxes as the instance owner, it loads up. ...
2
by: Gary | last post by:
I was using DB2 9.1 on Linux which came with db2cc The same level of DB2 on AIX 5.3 with the same install options and there is no db2cc in the sqllib. I know that db2cc is a script so trying...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.