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 reorg

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-14-05, 11:56
allian allian is offline
Registered User
 
Join Date: Dec 2004
Posts: 54
DB2 reorg

I am using db2 7.2 on AIX,
I ran reorgchk, in the output for a particular table all index key it showed '*' , I did reorg by using primary key index but still remaining keys are showing '*' if i do reorg by using one index key remaining keys are still in '*', how I can resolve this?.

And why sysibm.sysprocedure's index is also in '*', how to resolve this also?

Allian
Reply With Quote
  #2 (permalink)  
Old 02-15-05, 03:34
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

Reorg-ing table by one index (e.g. primary key index) will sort table according to this index. Because table can be ordered by only one index all other indexes will be market as "*". You don't need to worry about "*" at other indexes, this is normal!

If you would like to have table ordered by particular index (and using DB2 for Linux/Unix/Windows just like you) you need to specify word "CLUSTER" at index creation.

Sample:
Code:
CREATE INDEX db2admin.index_name ON db2admin.table_name (COL1, COL2) CLUSTER
Hope this helps,
Grofaty

Last edited by grofaty; 02-15-05 at 03:40.
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