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 Range Partition deletions/truncations

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-13-07, 12:19
pineappleman pineappleman is offline
Registered User
 
Join Date: Jan 2007
Posts: 5
DB2 Range Partition deletions/truncations

Hi people,

I have tables that are making use of the Range Partition. We have 5 range partitions 1 - 5 representing each work day (Mon - Fri)

Now the load process after each day, should would by truncating the relevant partition and then inserting the fresh data. So Monday's load should truncate partition 1 and reload the fresh Mondays sales data.

I am unclear on how the truncate would work - i cannot see a command on the Internet - all I can see is the attach/detach partitions which does not seem to work with the above truncate/load approach. Anyone have any suggestions?

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 01-13-07, 15:59
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
detach - load replace - attach
Reply With Quote
  #3 (permalink)  
Old 01-15-07, 04:54
pineappleman pineappleman is offline
Registered User
 
Join Date: Jan 2007
Posts: 5
Quote:
Originally Posted by n_i
detach - load replace - attach
Does each partition needs to be in its own separate tablespace ? or can they be in the same one ? What are the pro's/con's of each ??

thanks :-)
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