installation of DB2 database

Taking care of your Linux box.
Post Reply
mani101
Cadet
Posts: 6
Joined: Mon Dec 01, 2008 4:50 pm

installation of DB2 database

Post by mani101 »

i have install DB2 V9.1 Databass, on my system with 1Gb ram and 1.7 Ghz processor on RHEL 5.2,

when i run command for DB2 GUI view
#db2cc

it give this error

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Exception in thread "main" java.lang.NoClassDefFoundError: sun.awt.X11.XToolkit
at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:131)
at java.awt.Toolkit$2.run(Toolkit.java:864)
at java.security.AccessController.doPrivileged(AccessController.java:191)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:847)
at javax.swing.UIManager.initialize(UIManager.java:1296)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1279)
at javax.swing.UIManager.getDefaults(UIManager.java:590)
at javax.swing.UIManager.get(UIManager.java:852)
at com.ibm.db2.tools.common.CommonUIManager.initialize(Unknown Source)
at CC.setLookAndFeel(Unknown Source)
at CC.<init>(Unknown Source)
at CC.main(Unknown Source)
DB2JAVIT : RC = 1
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

do you have the x window system installed?
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
mani101
Cadet
Posts: 6
Joined: Mon Dec 01, 2008 4:50 pm

Post by mani101 »

lambda wrote:do you have the x window system installed?

yes i have complete installation of RHEL 5.2

if i export Display from any remote system, then its works fine and shows its GUI interface ,
but when i try to get on localhost its show me above error
asim31
Lance Naik
Posts: 31
Joined: Sat Aug 27, 2005 6:14 pm
Contact:

DB2 on Linux

Post by asim31 »

Salam,

Run command xhost +

Regds
-A.A
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

no, you should run "xhost +localhost" as the user you logged in as, and then type "env DISPLAY=localhost:0 db2cc" as the user you're executing the db2cc command as.

NEVER EVER RUN "xhost +"
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
mani101
Cadet
Posts: 6
Joined: Mon Dec 01, 2008 4:50 pm

Post by mani101 »

lambda wrote:no, you should run "xhost +localhost" as the user you logged in as, and then type "env DISPLAY=localhost:0 db2cc" as the user you're executing the db2cc command as.

NEVER EVER RUN "xhost +"

whats the reason to not run "xhost+" command

and when i run env DISPLAY=localhost:0 db2cc
its still end with same error
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

describe your situation in more detail.

which username do you log into the system as?
do you log into the graphical environment?
do you type "su" after that? "sudo -s"?
which user do you run db2cc as?
whats the reason to not run "xhost+" command
do you know what "xhost +" does? if you did, you wouldn't ask that.

you're almost always better off using xauth instead of xhost.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Post Reply