installation of DB2 database

Taking care of your Linux box.

installation of DB2 database

Postby mani101 » Thu Jun 04, 2009 2:09 pm

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
mani101
Cadet
 
Posts: 6
Joined: Mon Dec 01, 2008 4:50 pm
WLM: mausman20@hotmail.com

Postby lambda » Thu Jun 04, 2009 4:35 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby mani101 » Fri Jun 05, 2009 10:15 am

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
mani101
Cadet
 
Posts: 6
Joined: Mon Dec 01, 2008 4:50 pm
WLM: mausman20@hotmail.com

DB2 on Linux

Postby asim31 » Fri Jun 05, 2009 11:35 am

Salam,

Run command xhost +

Regds
-A.A
asim31
Lance Naik
 
Posts: 31
Joined: Sat Aug 27, 2005 6:14 pm
ICQ: 2

Postby lambda » Fri Jun 05, 2009 11:59 am

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby mani101 » Fri Jun 05, 2009 3:50 pm

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
mani101
Cadet
 
Posts: 6
Joined: Mon Dec 01, 2008 4:50 pm
WLM: mausman20@hotmail.com

Postby lambda » Fri Jun 05, 2009 6:10 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron