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 > db restore

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-18-07, 09:37
sueamus sueamus is offline
Registered User
 
Join Date: Apr 2007
Posts: 26
db restore

I have tried to restore a database but my efforts are fruitless this far please assist. The command am using is as follows: "Restore database sample from C:\Backup\Sample.0\ into myDb without prompting". When i run this command when there I have no other databases it runs successfully but in the case where there are other databases in existence, it does not run successfully.What am i missing?
Reply With Quote
  #2 (permalink)  
Old 04-18-07, 11:26
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
DB2 can only have 1 database at a particular path location. Since you are not specifying a path to restore the DB to, it will use the default path (dftdbpath) config parameter. One of your existing DB is located there.

Andy
Reply With Quote
  #3 (permalink)  
Old 04-18-07, 11:48
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
and the syntax should also be :
... from c:\backup
the \sample.0 is the name of the source db and is specified in the restore command .. restore db sample ....
the error when restoring ????
maybe try restore db sample from c:\backup into newdbname ....
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #4 (permalink)  
Old 04-18-07, 12:33
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
They will also probably need a redirected restore, but I was just trying to inform them why it works without any DBs, but fails when some exist.

Andy
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