If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > restore gone bad in Control Center

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-09, 09:19
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
restore gone bad in Control Center

db2 v8 FP 12 Windows 2003.

I was using Control Center for restore, but got an error. It seems that somewhere it is still connected, but I cannot see that in db2 list applications. It appears that it didn't issue a terminate command.

Now during a command restore:

RESTORE DATABASE mydb FROM "E:\sqlbackups\mydb" TAKEN AT 20081212145527 TO "E:" REDIRECT

SQL2001N The utility was interrupted. The output data may be incomplete.

terminate
DB20000I The TERMINATE command completed successfully.

connect to mydb
SQL1119N A connection to or activation of database "mydb" cannot be made
because a previous restore is incomplete. SQLSTATE=57019

SET TABLESPACE CONTAINERS FOR 0 IGNORE ROLLFORWARD CONTAINER OPERATIONS USING (PATH "E:\DB2\NODE0000\SQL00003\SQLT0000.0")
SQL1024N A database connection does not exist. SQLSTATE=08003

There are other table spaces, but I won't bore you with those.
Reply With Quote
  #2 (permalink)  
Old 02-27-09, 10:19
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You'll probably need to drop the database and repeat the restore from the beginning
Reply With Quote
  #3 (permalink)  
Old 02-27-09, 10:35
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
Quote:
Originally Posted by n_i
You'll probably need to drop the database and repeat the restore from the beginning

Thanks that seemed to work on another system that I was having problems with. On the other ssystem I get "database in use" even though db2 show applications show no one connected.
Reply With Quote
  #4 (permalink)  
Old 02-27-09, 11:47
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by bic
I get "database in use" even though db2 show applications show no one connected.
LIST ACTIVE DATABASES
DEACTIVATE DB ...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On