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 > SQL1119N Cannot make connection because previous restore is incomplete

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-10, 01:00
nmandyam nmandyam is offline
Registered User
 
Join Date: Jan 2010
Posts: 4
SQL1119N Cannot make connection because previous restore is incomplete

We run DB2 Community Edition DB2 v9.5.0.2, "s080811", "MI00238", Fix Pack "2". Last night, one of our databases "died", meaning, we lost connection to it. After much looking around, we finally decided to restore a backup, but the restore failed saying the backup file is corrupt. db2ckbkp lists a bunch of things missing from the backup, including LIST.OF.DATA.POOLS, history file, DATA.POOL.TABLE, Db configuration and so on. So effectively, the backup seems to be unusable. If someone can tell me how to make it usable, that'd save my life!

So anyway, the restore failed. But now, we're unable to connect to the original database anymore - the connect command gives us this SQL1119N error. I've looked through these (and other) forums and tried the things they've suggested - doing a rollforward with various options, cancelling the roll-forward, etc. No dice - the database still resolutely refuses to allow connections, giving us the same "SQL1119N A connection to or activation of database "<db alias>" cannot be made because a previous restore is incomplete or still in progress. SQLSTATE=57019" error message. How do we get this previous restore to end?

I checked the file system and there are some large files in the NODE000 sub-directories. So I am assuming our original data is still somewhere out there, on disk, and I'd love to get back to using that data. Any possibilities of that happening, do you think?

Any inputs in any of these three areas will help. Thanks!
Reply With Quote
  #2 (permalink)  
Old 01-20-10, 03:26
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Hi,

i don't know any to get the data out of the database when the restore started. There's a tool named "high performance unload". It's able to extract data from a Backup-Image. Don't know if it can read databases in restore- or rollforward-pending or extract data from a corrupted Backup.

It might be best to contact the IBM-Support.

Good Luck,
nvk
Reply With Quote
  #3 (permalink)  
Old 01-20-10, 06:05
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Unless you have some other backup image (maybe an older one), which is not corrupted, IBM support is probably your only option now.

You should have tried to restore the backup in an independent system to make sure it actually works. Once you started the backup with a corrupted image, you effectively removed the old database (so you can't use it anymore) and the corrupted image leads to the situation that the restored database can't be used either.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #4 (permalink)  
Old 01-20-10, 06:27
nmandyam nmandyam is offline
Registered User
 
Join Date: Jan 2010
Posts: 4
nvk, Knut, thank you for the responses.
nvk, I'll look for tools that like. Will post back here if I find something that works.
Knut, is there a way to fix the backup file, then? Since db2ckbkp tells me a list of things it finds missing, is there a way to introduce those things (say) into the file, so it can be restored?
Reply With Quote
  #5 (permalink)  
Old 01-21-10, 12:06
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Call IBM support.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #6 (permalink)  
Old 01-21-10, 15:56
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
See if you can unload any data using db2dart with /ddel option. If not, follow Knut's advice.
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