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 to find no. of hash partitions per database partition, of a table ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-12-11, 21:59
VenkatG VenkatG is offline
Registered User
 
Join Date: Mar 2011
Posts: 11
how to find no. of hash partitions per database partition, of a table ?

How to find no. of hash partitions per database partition, of a table, in partitioned database environment?

Last edited by VenkatG; 03-12-11 at 22:04. Reason: to make question more clear
Reply With Quote
  #2 (permalink)  
Old 03-13-11, 05:16
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
What do you mean by "hash partitions"?
Reply With Quote
  #3 (permalink)  
Old 03-13-11, 09:45
VenkatG VenkatG is offline
Registered User
 
Join Date: Mar 2011
Posts: 11
hash partitions: Also called as hash keys that are generated by hash alogrithm, during the distribution of table rows, as per the distribution key across the database partitions.
Reply With Quote
  #4 (permalink)  
Old 03-13-11, 18:27
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by VenkatG View Post
hash partitions: Also called as hash keys that are generated by hash alogrithm, during the distribution of table rows, as per the distribution key across the database partitions.

Maybe you're looking for 32767 (4096 in pre-v9.7) - partitioning/distribution map mentioned here:
IBM DB2 9.7 for Linux, UNIX and Windows Information Center


"Database partitioning is the method by which the placement of each row in the table is determined. The method works as follows:
A hashing algorithm is applied to the value of the distribution key, and generates a number between zero (0) and 32 767.
The distribution map is created when a database partition group is created. Each of the numbers is sequentially repeated in a round-robin fashion to fill the distribution map.
The number is used as an index into the distribution map. The number at that location in the distribution map is the number of the database partition where the row is stored."
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