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 command prompt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-17-08, 12:27
db2user db2user is offline
Registered User
 
Join Date: Dec 2002
Posts: 123
Restore command prompt

Hi,

If I give the db2 restore command, then I get the following message...

SQL2539W Warning! Restoring to an existing database that is the same as the backup image database. The database files will be deleted.
Do you want to continue ? (y/n)

We are trying to put this command as a part of an automatic script that runs early morning. Can you think of anyway we can avoid any manual intervention to press 'y' to continue with the restore? thanks!
Reply With Quote
  #2 (permalink)  
Old 09-17-08, 14:44
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Are you using the "WITHOUT PROMPTING" clause?

Andy
Reply With Quote
  #3 (permalink)  
Old 09-17-08, 16:34
db2user db2user is offline
Registered User
 
Join Date: Dec 2002
Posts: 123
Thanks for the reply.. I also found the REPLACE EXISTING option...that should also work.
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