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 > How can I move an entire schema?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-07-04, 10:50
marcushaas marcushaas is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
How can I move an entire schema?

I'm using DB2 7.1 under AIX 4.3 on an RS/6000 F80 with two external RAID-5 arrays, one of 288GB (partitioned into a number of logical volumes) and a new one of 108GB (which is to be used as a single logical volume).

The data is stored using SMS.

I need to move an entire schema containing ca. 100 tables (50GB in total), from one of the logical volumes on the old array to the new array (and then re-use the space released on the old array to add space to an existing schema).

I need to be able to do this as simply as possible, as I'm not a UNIX filesystem expert.

It occurred to me it might be possible to simply copy the entire directory structure from the old logical volume onto the new logical volume, and then somehow 'tell' the database manager to use the files on the new volume rather than the old one.

Does anyone know if this is possible, and if so how, or if not, does anyone have any alternative suggestions?

Thanks.

Marcus
Reply With Quote
  #2 (permalink)  
Old 06-07-04, 11:48
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
db2relocatedb should help you

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 06-07-04, 11:59
marcushaas marcushaas is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks Sathyaram, this looks useful.
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