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 > Migrate DB2 8.1 Tables to DB2 9.5 with partitioning

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-12-08, 06:29
thereapman thereapman is offline
Registered User
 
Join Date: Dec 2008
Posts: 1
Migrate DB2 8.1 Tables to DB2 9.5 with partitioning

Hello!

I want to migrate an ERP-Database to DB2 v9.5 and want to use the new "Table Partitioning" feature of 9.5 for some Tables.

Is it possible to use partitioning without recreating these tables from scratch?
When not: Is there a Solution to do this with less handwork.

Greets,
Markus
Reply With Quote
  #2 (permalink)  
Old 02-03-09, 23:59
SuperKuper SuperKuper is offline
Registered User
 
Join Date: Apr 2008
Posts: 51
Assuming that you are talking about RANGE partitioning, I do not believe it is possible to alter tables to make them range partitioned. However, there may be a way around this. You could create a new empty range-partitioned table and then ATTACH to it your existing table as one of the ranges.
__________________
db2topgun.com
Reply With Quote
  #3 (permalink)  
Old 02-04-09, 03:33
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
You'd probably want new/extra tablespaces to enable rollin/rollout so recreating tables can not be avoided.

Just punch your DDL with db2look
edit the "db2look.out" (nice name ain't it?) to add your new stuff
split the "db2look.out" in 2 parts:
- the upper part which contains the create table & indices
- the lower part which conains all the foreign key contraints

execute the upper part of your db2look.out in you new database
do a "load from cursor" for each table
execute the lower part of your db2Look.out in you new database

and here is your new database with the new features enabeled!
Sound familiar? It's basically what "db2move" does.
Reply With Quote
  #4 (permalink)  
Old 02-04-09, 07:58
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by dr_te_z
Sound familiar? It's basically what "db2move" does.
No, it is not what db2move does.
Reply With Quote
  #5 (permalink)  
Old 02-05-09, 15:37
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by n_i
No, it is not what db2move does.
Okay, but I was inspired by "db2move".
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