DB2 Control Center on Linux shows blank window

Man, I hadn’t posted anything in a while.

Anyway, I was having trouble getting the DB2 Control Center (db2cc) to work on Ubuntu 8.04 (Hardy.) Whenever I tried to run db2cc all I was getting was a blank gray window and found that setting the following variable makes it work:


You can set this automatically by adding the following to your .bashrc or .profile file:

export AWT_TOOLKIT=MToolkit

By the way, I found this quick solution on this forum. Hope this helps.


DB2 on Ubuntu: “Database is damaged” error

If you installed DB2 Express-C 9.5 on Ubuntu and can’t create any databases because of the following error:

SQL1034C The database is damaged. All applications processing the database
have been stopped. SQLSTATE=58031

Try adding the following to the /home/db2inst1/.bashrc file:

export LC_ALL=C

This happened to me running Ubuntu in Spanish and the above environment variable fixed the problem. I can now create and use databases.

By the way, I found this solution here.