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 > Unable to restore dropped database!!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-22-08, 13:13
rev1976 rev1976 is offline
Registered User
 
Join Date: Dec 2007
Posts: 78
Unable to restore dropped database!!!

Please help!!

I'm running DB2 on windows. I dropped a database and unable to restore it now:

My backup database is located in F:\DB2backup\EXCHANGE.0\DB2\NODE0000\CATN0000\2008 0822\103608.001

I tried executing the following restore command:

db2 restore db EXCHANGE from F:\DB2backup\EXCHANGE.0\DB2\NODE0000\CATN0000\2008 0822
taken at 20080833103608 replace history file


and I'm getting the following error message:

SQL30061N The database alias or database name "EXCHANGE " was not found at the remote node

How can restore it? Thanks
Reply With Quote
  #2 (permalink)  
Old 08-22-08, 13:56
rev1976 rev1976 is offline
Registered User
 
Join Date: Dec 2007
Posts: 78
I did a db2 terminate and a db2stop/start and executed the restore command again:

F:\DB2backup> db2 restore db EXCHANGE from 'F:\DB2backup\EXCHANGE.0\DB2\NODE0000\CATN0000\200 80822" taken at 20080822103608 replace history file

and now i get the following error message:

SQL2542N No match for database image file was found based on the source database alias EXCHANGE and timestamp 20080822103608 provided
Reply With Quote
  #3 (permalink)  
Old 08-22-08, 14:10
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
1. You are specifying the backup path incorrectly: it should be "f:\db2backup", without any subdirectories.

2. What history file you are trying to replace if you said you'd dropped the database?
Reply With Quote
  #4 (permalink)  
Old 08-22-08, 14:20
rev1976 rev1976 is offline
Registered User
 
Join Date: Dec 2007
Posts: 78
thank you for your help. I got it to work. Thanks
Reply With Quote
  #5 (permalink)  
Old 08-22-08, 18:17
rev1976 rev1976 is offline
Registered User
 
Join Date: Dec 2007
Posts: 78
When installing the FP for windows will the db2 instance be automatically updated if i'm using the DB2 setup wizard? Hence i don't need to execute db2iupdt?
Reply With Quote
  #6 (permalink)  
Old 08-22-08, 18:41
rev1976 rev1976 is offline
Registered User
 
Join Date: Dec 2007
Posts: 78
'im executing F:\Program Files\SQLLIB\bin>db2iupdt DB2

But it's getting error message. Unless the wizard updates the instance when i install the new fixpack?
Reply With Quote
  #7 (permalink)  
Old 08-22-08, 18:52
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Yes, on windows, the instance is updated with the fixpack install.

Next time you have a new subject, please start a new thread. This is not a chat room.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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