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 > Distribute by hash ( ) question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-03-11, 10:19
EA6B EA6B is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
Distribute by hash ( ) question

I will be migrating tables from a partitioned V9.1 DB2 database to a non-partitioned database running V9.7 ( both on P series machines - AIX) . The table ddl on the partitioned database has a DISTRIBUTE BY HASH ( ) line. Should this line be removed from the ddl in the non-partitioned V9.7 database? If it is not removed, can this line slow down inserts or is it just ignored. I want to know if I should bother to edit all the table ddl before moving tables to the new database. I am not the db admin, but I create and maintain tables for myself. As my question implies, I am not very DB2 savvy.
Reply With Quote
  #2 (permalink)  
Old 06-03-11, 10:41
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Depending on what you mean by "non-partitioned" (not licensed? single-node DPF? single-node partition group for your tablespace?) DISTRIBUTE BY HASH may be invalid or spurious. I would suggest removing the clause to avoid possible confusion.
Reply With Quote
  #3 (permalink)  
Old 06-03-11, 11:08
EA6B EA6B is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks

n_i, Thanks for your reply and sorry for my misuse of the term. It’s a single partition database. But that’s all I know. I agree it seems cleaner to remove the clause.
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