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 > Backup - Restore

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-14-04, 14:31
dingi dingi is offline
Registered User
 
Join Date: Feb 2004
Posts: 34
Backup - Restore

Environment - NT - UDB DB2 6.1

I've backup file in prod box, need to restore in Test box with new name.

How to do this ?

Any proper syntax ?

I'm new to DB2.
Reply With Quote
  #2 (permalink)  
Old 05-14-04, 14:43
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by dingi
Environment - NT - UDB DB2 6.1

I've backup file in prod box, need to restore in Test box with new name.

How to do this ?

Any proper syntax ?

I'm new to DB2.
Are the container and database paths to be reused?

If so :
RESTORE DATABASE <origname> INTO <newname;

If not, you're in a spot of trouble...
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 05-19-04, 14:31
chimes1967 chimes1967 is offline
Registered User
 
Join Date: Feb 2003
Posts: 9
for different containers, use the set tablespace container command:

restore db db1 from /dbbkup into db2
replace existing redirect parallelism 200;

set tablespace containers for 1 using
(
File '/db01/db2inst1/db2/tbs1.db2' 1000
)
;

set tablespace containers for 2 using
(
path '/db02/db2inst1/db2/tbs_temp4k',
path '/db02/db2inst1/db2/tbs_temp4k',
path '/db02/db2inst1/db2/tbs_temp4k'
)
;

:
:
:

set tablespace containers for 28 using
(
File '/db01/db2inst1/db2/tbs28.db2' 5000
)
;

restore db db1 continue;
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