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 not working.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-17-09, 04:11
keoghg keoghg is offline
Registered User
 
Join Date: Apr 2009
Posts: 2
Restore not working.

Two machines both Win XP and the very same level of db2 'DB2 v9.1.200.98'

Backed up the BUSCONT database from one that works fine and want to put it on the other machine but keep getting this:

C:\TMP>DB2 RESTORE DATABASE BUSCONT into BUSCONT
SQL0902C A system error (reason code = "") occurred. Subsequent SQL
statements cannot be processed. SQLSTATE=58005

Please help. I'm pulling my hair out on this one.
Attached Files
File Type: txt diag.txt (10.6 KB, 466 views)
Reply With Quote
  #2 (permalink)  
Old 04-17-09, 08:29
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Your restore command is incomplete. DB2 needs to know what to restore. It needs to know where the image is located and which image to restore.

Andy
Reply With Quote
  #3 (permalink)  
Old 04-17-09, 08:33
keoghg keoghg is offline
Registered User
 
Join Date: Apr 2009
Posts: 2
The restore command is fine. I'm doing it from the location where the backup is. The back and the new db names are both the same.
Reply With Quote
  #4 (permalink)  
Old 04-17-09, 08:37
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
If the above restore command is the complete command you are issuing, then it is not fine. It does not tell DB2 where the image is located, nor does it tell it which image to restore.

Andy
Reply With Quote
  #5 (permalink)  
Old 04-17-09, 08:41
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
try the following command:
DB2 RESTORE DATABASE BUSCONT on c: dbpath on c:
Reply With Quote
  #6 (permalink)  
Old 04-17-09, 09:01
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
That still will not work. The OP still needs to tell the restore command where the image (USE, LOAD, FROM) and which image to restore (TAKEN AT). I was hoping that the OP would RTFM and learn it themselves instead of having it spelled out.

Andy
Reply With Quote
  #7 (permalink)  
Old 04-17-09, 13:25
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You don't need to tell the location/timestamp of the image if the restore command is issued from the dir where the image is located and there is only one image for this db.

Restore was complaining about D: being unavailable and this is most likely due to the source db/tablespaces having its automatic storage on D:
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