行レベルで変更なし30年後に拡張行圧縮をテーブルに対して指定
セグメントレベルで新規作成30月後に基本行圧縮をテーブルに対して指定
グループレベルでアクセスなし30日後に拡張行圧縮をテーブルに対して指定
セグメントレベルでアクセスなし30日後に基本行圧縮を表領域に対して指定
sqlplus test/test@pdb11
select * from DBA_ILMDATAMOVEMENTPOLICIES;
select * from DBA_ILMOBJECTS;
select * from DBA_ILMPOLICIES;
create table tab01(col1 number) tablespace users;
create table tab02(col1 number) tablespace users;
create table tab03(col1 number) tablespace users;
create tablespace tbs01 datafile '/oradata/orcl/pdb11/tbs01.dbf' size 10M;
alter table tab01 ilm add policy row store compress advanced row after 30 years of no modification;
alter table tab02 ilm add policy row store compress basic segment after 30 months of creation;
alter table tab03 ilm add policy row store compress advanced group after 30 days of no access;
alter tablespace tbs01 default ilm add policy row store compress basic segment after 30 days of no access;