Professional Documents
Culture Documents
OCM Tips and Tricks - Partition
OCM Tips and Tricks - Partition
OCM Tips and Tricks - Partition
To get more detailed information and SQL syntax related with composite partitioning tables, refer to the
documentation that is provided in the beginning of the chapter and go to “Creating Composite
Partitioned Tables” section. Check the following documentation to get more detailed information about
the composite partitioning:
Sometimes, defining only one partition is not enough. By creating a composite partition, the table is
firstly partitioned by the first data distribution method, and then each partition is subpartitioned by the
second data distribution method.
In this and next post, we will talk about the following composite partitioned tables:
Range-hash partitioning
Range-list partitioning
Range-range partitioning
List-range partitioning
List-hash partitioning
List-list partitioning
Hash-hash partitioning
Interval-list partitioning
Interval-range partitioning
Interval-hash partitioning
Note: Only Range-Hash and Range-List composite partitions can be created from OEM.
Range-Hash partitioning
PARTITION BY RANGE
(object_id)
SUBPARTITIONS 4
AS
Table created.
SQL>
www.ocmguide.com/category/ocm-tips-and-tricks/ 1/2
6/17/2021 OCM Tips and Tricks – OCM Guide
To get the list of range partitions and the data distribution, query DBA_TAB_PARTITIONS view as
follows:
partition_name,
subpartition_count,
num_rows,
blocks
FROM dba_tab_partitions
www.ocmguide.com/category/ocm-tips-and-tricks/ 2/2