Oracle Table partitioning
Select existing partitions
Check existing partitions on Schema
SELECT * FROM user_tab_partitions;
Drop partition
ALTER TABLE table_name DROP PARTITION partition_name;
Select data from a partition
Select data from a partition
SELECT * FROM orders PARTITION(partition_name);
Split Partition
Splits some partition into two partitions with another high bound.
ALTER TABLE table_name SPLIT PARTITION old_partition
AT (new_high_bound) INTO (PARTITION new_partition TABLESPACE new_tablespace,
PARTITION old_partition)
Merge Partitions
Merge two partitions into single one
ALTER TABLE table_name
MERGE PARTITIONS first_partition, second_partition
INTO PARTITION splitted_partition TABLESPACE new_tablespace