问题从ITPub.net而来:
我两张表, 分别各600m数据, 有相同得PK,每张表表只有两个字段, 然后建立聚簇, 这个居然有4G多了? 晕!
当然晕的肯定是你了, 不是Oracle, 这个问题, 我的第一反应是你没有指定SIZE参数, 先来看一段说明吧.
SIZE
specifies the amount of space in bytes to store all rows with the same cluster key value or the same hash value. You can use K or M to specify this space in kilobytes or megabytes. The value of this parameter cannot exceed the size of a data block. If you omit this parameter, Oracle reserves one data block for each cluster key value or hash value.
因此可以推算, 你的表大约有50万个不同的cluster key值, 假定你的块大小是8k. 不知道我猜的对不对?