本文介绍了表索引有组织吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 如果知道某个特定的表是否按索引排序,哪一个 一个? reorg table index ind1 - >桌子由ind1组织 i不知道所有的桌子 thx 解决方案 看看SYSSTAT.INDEXES.CLUSTERRATIO和CLUSTERFACTOR。 如果您使用ORGANIZE BY KEY SEQUENCE选项定义了范围集群表,请查看SYSCAT.INDEXES.INDEXTYPE。它将包含 RCT对于这样的表格。 - Knut Stolze 信息集成 IBM德国/大学of Jena 如果其中一个索引被定义为聚集而且那么DB2将使用它来在重组期间和插入期间对行进行排序。 如果没有将索引定义为聚簇,则必须指定索引 在重组时订购表行,并且DB2在任何地方插入 方便的表格。 > i不明白 示例: table1有3个索引:index1,index2,index3 i发出以下命令 db2 reorg table table1 index index2 之后,我怎样才能检索到表已经使用 index2重新组织了 我认为现在index2是一个集群索引? 如果是,:db2 v7中的,如何重新组织所有索引而不发出所有这些命令 : db2 reorg table table1 index index1 db2 reorg table table1 index index2 db2 reorg table table1 index index3 Hi,how to know for a particular table if it is organized by index, and whichone ? reorg table index ind1 -> the table is organised by ind1 i wan''t to know that for all table thx 解决方案 Have a look at SYSSTAT.INDEXES.CLUSTERRATIO and CLUSTERFACTOR. And if you have range clustered tables defined using the ORGANIZE BY KEYSEQUENCE option, have a look at SYSCAT.INDEXES.INDEXTYPE. It will contain"RCT" for such tables. --Knut StolzeInformation IntegrationIBM Germany / University of Jena If one of the indexes is defined as "clustered" then DB2 will use itto order rows during a reorg and during an insert. If no index is defined as clustered, then an index must be specifiedat time of reorg to order the table rows, and DB2 inserts wherever inthe table it is convenient. i don''t understand example :table1 has 3 indexes : index1, index2, index3 i issue the following commanddb2 reorg table table1 index index2 after that, how can i retrieve the table has benn reorganised by using theindex2I think that now index2 is a cluster index ? If yes, :in db2 v7, how can i reorganise all index without issuing all these commands:db2 reorg table table1 index index1db2 reorg table table1 index index2db2 reorg table table1 index index3 这篇关于表索引有组织吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-25 16:09