It looks like the extension is created automagically, along with the
index:
SQL> exec dbms_stats.drop_extended_stats(user,'EMP','(SYS_OP_DESCEND
(SAL))');
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.31
SQL> create index test1 on emp(sal desc);
Index created.
Elapsed: 00:00:00.04
SQL> select extension_name,extension from all_stat_extensions
2 where owner=user and table_name='EMP';
EXTENSION_NAME
------------------------------
EXTENSION
--------------------------------------------------------------------------------
SYS_NC00009$
("SAL")
Elapsed: 00:00:00.02
SQL> exec dbms_stats.drop_extended_stats(user,'EMP','(SYS_OP_DESCEND
(SAL))');
BEGIN dbms_stats.drop_extended_stats(user,'EMP','(SYS_OP_DESCEND(SAL))');
END;
*
ERROR at line 1:
ORA-20000: extension "(SYS_OP_DESCEND(SAL))" is not droppable
ORA-06512: at "SYS.DBMS_STATS", line 8639
ORA-06512: at "SYS.DBMS_STATS", line 32711
ORA-06512: at line 1
Elapsed: 00:00:00.01
SQL>
So, all that needs to be done is to collect stats with "FOR ALL HIDDEN
COLUMSN SIZE 254" as method_opt. This is neat!
--
http://mgogala.byethost5.com