Advanced Index Compression

Advanced Index Compression works well on all supported indexes, including those indexes that are not good candidates for the existing prefix compression feature; including indexes with no, or few, duplicate values in the leading columns of the index.
Creating an index using advanced index compression reduces the size of all supported unique and non-unique indexes.  Advanced Index Compression improves the compression ratios significantly while still providing efficient access to the index.
Before enabling advanced index compression, the database must be at 12.1.0 or higher compatibility level. You enable advanced index compression using the COMPRESS ADVANCED LOW clause. For example, the following statement enables advanced index compression during the creation of the hr.emp_mndp_ix index:
CREATE INDEX hr.emp_mn_ix ON hr.employees(manager_id, department_id)   COMPRESS ADVANCED LOW;
You can also specify the COMPRESS ADVANCED LOW clause during an index rebuild. For example, during rebuild, you can enable advanced index compression for the hr.emp_manager_ix index as follows:

The COMPRESSION column in the ALL_INDEXESALL_IND_PARTITIONS, and ALL_IND_SUBPARTITIONS views shows whether an index is compressed
  • July 26, 2016 | 19 views
  • Comments