installation of DB2 database

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

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

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

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

do you have the x window system installed?
Watch out for the !
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
Contact:

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


asim31
Lance Naik
Posts: 31
Joined: Sat Aug 27, 2005 6:14 pm
Contact:

DB2 on Linux

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


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

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.

Watch out for the !
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
Contact:

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


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

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

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest