在我的 ADW 实例中,自动索引创建的索引默认会被压缩,但手动创建的索引不会。
为什么手动创建的索引默认不压缩?
Test case:
==========
SQL> create table a (a number);
Table created.
SQL> create index a_ind on a (a);
Index created.
SQL> select INDEX_NAME,COMPRESSION from dba_indexes where index_name='A_IND';
INDEX_NAME
--------------------------------------------------------------------------------
COMPRESSION
-------------
A_IND
DISABLED
SQL> drop index a_ind ;
Index dropped.
SQL> create index a_ind on a (a) compress;
Index created.
SQL> select INDEX_NAME,COMPRESSION from dba_indexes where index_name='A_IND';
INDEX_NAME
--------------------------------------------------------------------------------
COMPRESSION
-------------
A_IND
ENABLED