|
原帖由 Yong Huang 于 2009-10-28 04:33 发表 ![]()
To reduce the clustering factor of an index, you have to rebuild the table in the order of the index column(s). It sounds weird because a heap table is said to have no internal order. But more or less there *is* some order in it. To do this data re-ordering, you need to create a new table as select * from the old table order by the column(s) of the index. And make other changes as needed (constraints, etc).
The wait event "gc cr block 2-way" is not an idle wait. The parameters are undocumented. But I believe p1 and p2 are simply the file# and block#. How do you know this wait is related to the high index clustering factor? Did you check p1 and p2 in v$session or v$session_wait?
Always tell us Oracle version.
Yong Huang
Agree that it's not easy to control the cluster factor.
This wait event looks good if you do need to scan this amount of blocks unless you can do some tuning to your application requirement or sql performance. |
|