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 > DB2 restore with different name on same server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-10, 14:55
shashankj shashankj is offline
Registered User
 
Join Date: Mar 2010
Posts: 13
DB2 restore with different name on same server

Hi,

I have taken backup of one database. I want to have same DB for other application so I want to clone this backed up DB with different name.
How should I do that?

Your response is appreciated.

Thanks and Regards,
-Shashank
Reply With Quote
  #2 (permalink)  
Old 04-09-10, 15:13
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You will need to do the following:

1) do a redirected restore
2) use the "TO <target-directory>" clause
3) use the "INTO <target-database-alias>" clause
4) use the "NEWLOGPATH <directory" clause

Andy
Reply With Quote
  #3 (permalink)  
Old 04-09-10, 15:34
shashankj shashankj is offline
Registered User
 
Join Date: Mar 2010
Posts: 13
Thanks a lot for quick help. I could restore DB.

Regards,
-Shashank
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