sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Burkhard Schultheis's Avatar

Recovery after Crash


Question posted by: Burkhard Schultheis (Guest) on November 12th, 2005 06:25 AM
I had a crash on my w2k machine. I installed w2k in a new directory.
Then I installed DB2 V8.1 in the same directory as before. Now DB2 is
not able to start. It tells me that the environment is inconsistent,
because the instance is not valid. DB2INSTANCE is DB2, and the old
instance is e:\db2. DB2 is installed on drive E:, too.

What can I do to get the old data (no, I don't have a backup of all
data, only of the most important table).

Regards,
--
Burkhard Schultheis
Tele Data Electronic, Wagnerstr. 10, D-76448 Durmersheim
Email: Join Bytes!
Phone: +49-7245-9287-21, Fax: +49-7245-9287-30
3 Answers Posted
Bill's Avatar
Guest - n/a Posts
#2: Re: Recovery after Crash

Burkhard,

The e:\db2 is your database path.

When I had this type of problem, I was able to drop the DB2 instance
(db2idrop db2) and then create it again (db2icrt db2).

Dropping the instance does not affect any databases under the instance.
However, you will have to catalog the database entry again after you
re-create the DB2 instance: db2 catalog database xxxxx as yyyyyy on e:

"Burkhard Schultheis" <schultheis@tde-online.de> wrote in message
news:bvlsgo$to8fm$1@ID-100086.news.uni-berlin.de...[color=blue]
> I had a crash on my w2k machine. I installed w2k in a new directory.
> Then I installed DB2 V8.1 in the same directory as before. Now DB2 is
> not able to start. It tells me that the environment is inconsistent,
> because the instance is not valid. DB2INSTANCE is DB2, and the old
> instance is e:\db2. DB2 is installed on drive E:, too.
>
> What can I do to get the old data (no, I don't have a backup of all
> data, only of the most important table).
>
> Regards,
> --
> Burkhard Schultheis
> Tele Data Electronic, Wagnerstr. 10, D-76448 Durmersheim
> Email: Join Bytes!
> Phone: +49-7245-9287-21, Fax: +49-7245-9287-30[/color]


PM \(pm3iinc-nospam\)'s Avatar
PM \(pm3iinc-nospam\) November 12th, 2005 06:26 AM
Guest - n/a Posts
#3: Re: Recovery after Crash

change diaglevel to 4
try to restart DB2
see db2diag.log

DB2 LIST DATABASE DIRECTORY [ON drive]
(e: in your case, you should see the db's that were there before.)

check
DBM CFG dftdbpath

those could help
re-catalog nodes
re-catalog databases

PM

"Burkhard Schultheis" <schultheis@tde-online.de> a écrit dans le message de
news:bvlsgo$to8fm$1@ID-100086.news.uni-berlin.de...[color=blue]
> I had a crash on my w2k machine. I installed w2k in a new directory.
> Then I installed DB2 V8.1 in the same directory as before. Now DB2 is
> not able to start. It tells me that the environment is inconsistent,
> because the instance is not valid. DB2INSTANCE is DB2, and the old
> instance is e:\db2. DB2 is installed on drive E:, too.
>
> What can I do to get the old data (no, I don't have a backup of all
> data, only of the most important table).
>
> Regards,
> --
> Burkhard Schultheis
> Tele Data Electronic, Wagnerstr. 10, D-76448 Durmersheim
> Email: Join Bytes!
> Phone: +49-7245-9287-21, Fax: +49-7245-9287-30[/color]


Burkhard Schultheis's Avatar
Burkhard Schultheis November 12th, 2005 06:26 AM
Guest - n/a Posts
#4: Re: Recovery after Crash

Burkhard Schultheis schrieb:[color=blue]
> I had a crash on my w2k machine. I installed w2k in a new directory.
> Then I installed DB2 V8.1 in the same directory as before. Now DB2 is
> not able to start. It tells me that the environment is inconsistent,
> because the instance is not valid. DB2INSTANCE is DB2, and the old
> instance is e:\db2. DB2 is installed on drive E:, too.
>
> What can I do to get the old data (no, I don't have a backup of all
> data, only of the most important table).
>[/color]

After some thinking overnight I solved the problem like I did it on AIX
some times ago: I deinstalled DB2, renamed DB2 to DB2.old, installed DB2
with all fixpaks, created the sample database (that created the instance
DB2), created an empty database with the correct name, dropped the
sample database, stopped db2, renamed DB2.old to DB2, started DB2, and
all was OK.

Then I made an offline backup :-)

Regards,
--
Burkhard Schultheis
Tele Data Electronic, Wagnerstr. 10, D-76448 Durmersheim
Email: Join Bytes!
Phone: +49-7245-9287-21, Fax: +49-7245-9287-30
 
Not the answer you were looking for? Post your question . . .
196,829 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,829 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors