|
|
Re: How to change value of CLUSTERING_FACTOR of index [message #349170 is a reply to message #349111] |
Fri, 19 September 2008 03:10 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Kriptas
Messages: 118 Registered: June 2008
|
Senior Member |
|
|
it is two ways
change clustering_factor of index for true,
so you need reorganise table ordering it by indexed column,
or you can put fake statistics and change clustering_factor value to another like that
begin
DBMS_STATS.SET_INDEX_STATS (
ownname =>'SCOTT',
indname => 'EMP_ENAME_I',
clstfct => 100); -- NEW clustering factor value
end;
|
|
|
|
Re: How to change value of CLUSTERING_FACTOR of index [message #349428 is a reply to message #349111] |
Sun, 21 September 2008 14:38 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
harrysmall3
Messages: 109 Registered: April 2008 Location: Massachusetts
|
Senior Member |
|
|
And just to point out
Quote: | 1. Re-organize the table to sort by way of Indexed Columns, and/or
2. Use dbms_stats to manually change the clustering factor of an Index.
|
#1 Will improve the actual clustering while #2 is just
changing a statistic, and will not change actual clustering.
Regards
Harry
|
|
|