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 > Question on UDB Feature

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-05, 14:25
vsubbaramu vsubbaramu is offline
Registered User
 
Join Date: Oct 2005
Posts: 4
Question on UDB Feature

Hi, We have a table with high volume .Is there any feature in UDB Version 8.0 to partition tables (Kind of similar to Oracle ) or is database partitioning the only way . We do not have the hardware to set up database partioning hence was wondering if there is a way out .

Thanks very much,
Venky
Reply With Quote
  #2 (permalink)  
Old 10-20-05, 17:06
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Look into UNION all view; you create each partition(say data for each month) as a seperate table but view the group of such tables as a master table
__________________
mota
Reply With Quote
  #3 (permalink)  
Old 10-20-05, 17:09
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
A table partition resides in a database partition. If you have a single-partition database then you can only create tables that reside in that single partition.

You could implement "poor man's table partitioning" by creating multiple tables with the same structure and range check constraints for the pseudo-partitioning key column(s) and defining a UNION ALL view over those tables. The optimizer will be able to take advantage of that.

More about this here: http://www-128.ibm.com/developerwork...209rielau.html
Reply With Quote
  #4 (permalink)  
Old 10-20-05, 23:36
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The UNION ALL view works exceptionally well with multiple processors, because it can make use of parallel query processing. You will need to set the DB2 parms to allow for parallel processing. For best results, put each table on a different physical device or different array.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 10-21-05, 20:21
DBA-Jr DBA-Jr is offline
Registered User
 
Join Date: Mar 2005
Posts: 108
Can you INSERT into the view you create with UNION ALL?
Reply With Quote
  #6 (permalink)  
Old 10-22-05, 09:20
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Yes
.................
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