Skip to main content

developerWorks >  Information Management  >  Forums  >  IBM DB2 Express Forum  >  developerWorks

Error creating database    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 9 - Pages: 1 - Last Post: Jul 22, 2008 1:04 PM Last Post By: amouriz
congonga

Posts: 11
Registered: Feb 27, 2008 08:56:59 PM
Error creating database
Posted: Mar 01, 2008 04:55:52 PM
Click to report abuse...   Click to reply to this thread Reply
db2inst1@Ladybug$ db2 create db something
SQL1034C The database is damaged. All applications processing the database
have been stopped. SQLSTATE=58031

In my last message I tried to create the sample database, using the command db2sampl. None of the solutions posted there works to me. This is even worst, because I can not create any database it all. :S

I installed DB2 Express 9.5 from the canonical repository for Ubuntu 7.10 Gutsy. During the installation process there were no problems but the problem are db2sampl does not work and db2 create database neither.

Please, anybody can help me?
igorM

Posts: 494
Registered: Dec 30, 2005 05:04:40 AM
Re: Error creating database
Posted: Mar 03, 2008 01:59:58 AM   in response to: congonga in response to: congonga's post
Click to report abuse...   Click to reply to this thread Reply
The error explanation is:
"If you are installing the sample database, drop it and install
the sample database again."

If this doesn't help uninstall DB2 product and try to install it again. I haven't installed it from repository, so I don't know deb package is corrupted.

I downloaded DB2 from web page and installed it. If you need help how to do this try my how-to for Ubuntu 7.10 Server: http://www-128.ibm.com/developerworks/forums/thread.jspa?messageID=14028783&#14028783

If you are using Ubuntu 7.10 Desktop there is link at the end of first post of another how-to I have written for desktop.

Before uninstall/install can you please look into db2diag.log file default at /home/db2inst1/sqllib/db2dump/db2diag.log path. Please delete this file and recreate the problem (create database...) and then look into this file again. There should be only messages associating your problem. Please post this file to forum.

Hope this helps,
IgorM
congonga

Posts: 11
Registered: Feb 27, 2008 08:56:59 PM
Re: Error creating database
Posted: Mar 04, 2008 11:51:23 AM   in response to: igorM in response to: igorM's post
Click to report abuse...   Click to reply to this thread Reply
Dear Igor,

I apreciate so much your post. I started all over again yesterday. Even I change my Kubuntu to Ubuntu 7.10 Desktop. I downloaded the DB2 Express software from this IBM site. I am doing all the steps appearing in the how to entries. It's all ok until now. I am making the post installation process. The users and instance are created. My problem appears when I try to create a database, as the db2inst1 user:

db2 CREATE DATABASE ariela AUTOMATIC STORAGE YES ON '/home/db2inst1/' DBPATH ON '/home/db2inst1'

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

This same error have been happened since the first time I installed DB2 to this last time. I don't know what to do.
congonga

Posts: 11
Registered: Feb 27, 2008 08:56:59 PM
Re: Error creating database
Posted: Mar 05, 2008 04:24:52 PM   in response to: congonga in response to: congonga's post
Click to report abuse...   Click to reply to this thread Reply
A Linux expert found the problem with the create database deal. After just one hour he found the error, which was on the /home/db2inst/sqllib/db2dump/db2diag.log file:

2008-03-05-12.57.11.058354-180 I15322G515 LEVEL: Error
PID : 4297 TID : 2977950608 PROC : db2sysc
INSTANCE: db2inst1 NODE : 000 DB : SAMPLE
APPHDL : 0-17 APPID: *LOCAL.db2inst1.080305155535
AUTHID : DB2INST1
EDUID : 18 EDUNAME: db2agent (SAMPLE)
FUNCTION: DB2 UDB, SW- query graph, sqlnq_set_locale, probe:20
RETCODE : ZRC=0x800F0060=-2146500512=SQLO_BADCC "Invalid country-code."
DIA8107C Invalid country code "".

When I tried to create the sample or any database, an error like this appears in the log file. My Ubuntu is in Spanish language, installed for Chile (the country where I live) and it seems DB2 expects the default language, english. The solution he tried (and worked) was editing the .bashrc of the db2inst1 user (in your case, the user that owns the DB2 instance) the following line:

export LC_ALL=C

After this file was modified, all the databases were created and connected without problems. I hope this kind of trouble could be easy to resolve for the DB2 users as me, that use sistems in other languages, different from the english. Thank you so much gpoo (the Linux Expert who helped me).

Message was edited by: congonga
omor

Posts: 1
Registered: Apr 24, 2008 06:38:48 PM
Re: Error creating database
Posted: Apr 24, 2008 09:40:38 PM   in response to: congonga in response to: congonga's post
Click to report abuse...   Click to reply to this thread Reply
I found the same error on an spanish version of Windows XP after installing the Windows version of DB2 9.5 Express:

2008-04-24-16.52.22.625000-300 I13197H524 LEVEL: Error
PID : 5996 TID : 5464 PROC : db2syscs.exe
INSTANCE: DB2 NODE : 000 DB : SAMPLE
APPHDL : 0-9 APPID: *LOCAL.DB2.080424215221
AUTHID : O
EDUID : 5464 EDUNAME: db2agent (SAMPLE)
FUNCTION: DB2 UDB, SW- query graph, sqlnq_set_locale, probe:20
RETCODE : ZRC=0x800F0060=-2146500512=SQLO_BADCC "Invalid country-code."
DIA8107C Invalid country code "".
Cobio

Posts: 3
Registered: Jul 12, 2008 02:10:00 PM
Re: Error creating database
Posted: Jul 12, 2008 03:30:10 PM   in response to: omor in response to: omor's post
Click to report abuse...   Click to reply to this thread Reply
Hi, Do you find the solution for Windows XP Spanish?
Cobio

Posts: 3
Registered: Jul 12, 2008 02:10:00 PM
Re: Error creating database
Posted: Jul 12, 2008 03:35:10 PM   in response to: Cobio in response to: Cobio's post
Click to report abuse...   Click to reply to this thread Reply
Did you find the solution for Windows XP Spanish?

Sorry, I'm not a native speaker of english.
Community Manager rfchong

Posts: 477
Registered: Jan 18, 2006 05:27:23 PM
Re: Error creating database
Posted: Jul 13, 2008 03:11:11 AM   in response to: Cobio in response to: Cobio's post
Click to report abuse...   Click to reply to this thread Reply
Hello,

There are a couple of related APARs though not 100% match to your problem (IZ16595, IZ16974 --> full description can be found if you go to www.ibm.com and input any of those numbers from the "Search" field. You may have to register/sign in first).

The problem seems to occur because the database to be created is using a locale not supported by DB2. This information in the case of Windows would be taken from your Regional Settings. This link in the manuals describes how DB2 derives the locale for Linux, UNIX and Windows:

http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.db2.luw.admin.nls.doc/doc/c0006827.html

If you want to change the locale on Windows you can follow these instructinos:

===
From the Start menu, select Control Panel, then select Regional and Language Options.
Change the regional options on the Windows computer:
On the Regional Options tab, select a language and territory from the list box, such as German (Germany).
On the Languages tab, click Details and select the default input language.
Optional: Select one or both check boxes to install additional languages.
On the Advanced tab, select the language that you want to use.
Click OK. You might need to restart the system for your changes to take effect.
===

This other link shows the supported territory codes and code pages and locales:
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.db2.luw.admin.nls.doc/doc/r0004565.html

Hope this helps!,

Raul F. Chong
DB2 on Campus Program Manager
Email: db2x@ca.ibm.com
Cobio

Posts: 3
Registered: Jul 12, 2008 02:10:00 PM
Re: Error creating database
Posted: Jul 14, 2008 09:27:51 AM   in response to: rfchong in response to: rfchong's post
Click to report abuse...   Click to reply to this thread Reply
Thank you.

I installed it in the English version of XP, and it works. I'll try your solution for the spanish version.
amouriz

Posts: 1
Registered: Mar 22, 2007 10:27:56 AM
Re: Error creating database
Posted: Jul 22, 2008 01:04:27 PM   in response to: Cobio in response to: Cobio's post
Click to report abuse...   Click to reply to this thread Reply
For spanish version of Windows XP you can fix the problem with the Regional Settings (as Raul posted before).

Inicio->Panel de control->Configuración regional y de idioma

then, in the 'Opciones avanzadas' section, modify the setting in the 'Idioma para programas no Unicode' combo. Use a codepage that DB2 supports (I tried 'Español (España)' and works fine).

Now, the CREATE DATABASE command should work.
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums