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:
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.