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 > [newbie] Rolling 36 months

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-03, 02:37
stefanB stefanB is offline
Registered User
 
Join Date: Oct 2003
Posts: 18
Arrow [newbie] Rolling 36 months

Hi,

first of all - please, excuse me for my bad English... :-(

I'm currently using DB2 v8.1 and trying to design a small business-database.
The issue, that drives me mad, is to keep rolling through the most current 36 months of data. I guess, that using partitioned tablespace based on date columns (in this case, months like "102003") is the solution for this problem. But I fail to describe it in DDL. :-(

Appreciate everyones help.

Thanks in Advance,

S.B.
Reply With Quote
  #2 (permalink)  
Old 10-09-03, 03:44
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
DB2 offers partitioning with DB2 EEE V7 or DB2 ESE V8 (with partitioning option). However, this is hash partitioning (data randomly spread across all partitions) and not range partitioning.

Hash partitioning is for improving performance with parallel operation on a multi-CPU and/or multi-node system. This is usually employed on very large databases that frequently do tablespace scans.

Range partitioning is usually for ease of administration, especially when the range is by year, month, etc, although there are some performance benefits also. But this feature is not yet available on DB2 for Unix, Linux, and Windows (but is available on DB2 for OS/390). IBM has said that it will be available in a future release (date unknown).

But the good news is that you can use “Partitioning with a UNION ALL View” to accomplish the same thing, and it even supports parallel operations. I have tried it and it works great. Check out this article:
http://www7b.software.ibm.com/dmdd/l...202zuzarte.pdf

Last edited by Marcus_A; 10-09-03 at 03:48.
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