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 > Query on Tablespace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-25-11, 01:11
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Smile Query on Tablespace

Hi have a test database for which i have the tablespace under more than 1 folder /directory

TBS 1 -- /home/db2inst1/node22/tbdkdl.....
and
later i started it to grow uner /opt/db2inst1/node22/tbdknk..


So i just have a doubt, when i take a backup and restore the database into other server, is it possible to make the tablespace under single directory which has a huge amount of space ...
Reply With Quote
  #2 (permalink)  
Old 03-25-11, 04:42
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Yes,

on a redirected restore you could change the Tablespace-Container files.
Reply With Quote
  #3 (permalink)  
Old 03-25-11, 05:42
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
thanks nvk !

how do i go with re-directed restore, info any docs available pl. share

will it work incase of a relocatedb ?
Reply With Quote
  #4 (permalink)  
Old 03-25-11, 08:30
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
RESTORE DATABASE - IBM DB2 9.7 for Linux, UNIX, and Windows

restore db <DBNAME> from ... redirect generate script <FILENAME>
Aftwards you can edit the generated Script and adjust the number and location of containers.
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