混合列压缩包含以下两种:
Warehouse Compression
Archive Compression
Migration and Best Practices
对于新建表和分区可以在建表时带上"COMPRESS FOR QUERY HIGH"。
create table ... column store compress for query high;也可以使用一下方式: ... column store compress for query low. ... column store compress for archive low. ... column store compress for archive high.
对于已经存在的表可以使用一下方法开启HCC。
alter table ... column store compress for query high;这种开启方式仅会对后续的dml操作进行压缩, 对于已经在表中的数据仍然是未压缩的。
Online Redefinition (DBMS_REDEFINITION)
alter table ... move column store compress for query high;
alter table ... move table/partition/subpartition ... online;
