Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question.
Asked: October 01, 2024 - 11:19 am UTC
Last updated: October 02, 2024 - 1:42 pm UTC
Version: 19.3
Viewed 1000+ times
create table a (id number(3), col_date timestamp(6)) storage (initial 128M)
alter table a modify partition by range (col_date) less than (TIMESTAMP '2024-01-01 00:00:00.000000') (partition old_data values less than (TIMESTAMP '2024-01-01 00:00:00.000000')) storage (initial 8M)
create table a (id number(3), col_date timestamp(6)) storage ( initial 128M ); select initial_extent from user_tables where table_name = 'A'; INITIAL_EXTENT -------------- 134217728 alter table a modify partition by range (col_date) interval ( interval '1' month ) ( partition old_data values less than (TIMESTAMP '2024-01-01 00:00:00') storage (initial 16M), partition newer_data values less than (TIMESTAMP '2024-03-01 00:00:00') storage (initial 32M) ); alter table a modify default attributes storage ( initial 8M ); select partition_name, initial_extent from user_tab_partitions where table_name = 'A'; PARTITION_ INITIAL_EXTENT ---------- -------------- NEWER_DATA 33554432 OLD_DATA 16777216 insert into a values ( 1, systimestamp ); select partition_name, initial_extent from user_tab_partitions where table_name = 'A'; PARTITION_ INITIAL_EXTENT ---------- -------------- NEWER_DATA 33554432 OLD_DATA 16777216 SYS_P4722 8388608
A reader, October 02, 2024 - 11:47 am UTC
If you are new to partitioning, check out Connor McDonald's introduction series here.
Documentation set on VLDB and Partitioning.