| Start |
|---|
| Select existing partitions Check existing partitions on Schema |
Drop partition |
| Select data from a partition Select data from a partition |
| Hash partitioning This creates a table partitioned by hash, in this example on store id. You should use a power of 2 for the number of hash partitions, so that you get an even distribution in partition size. |
| Range partitioning This creates a table partitioned by ranges, in this example on order values. |
| List partitioning This creates a table partitioned by lists, in this example on store id. |
Truncate a partition |
Rename a partition |
Move partition to different tablespace |
Add new partition |
| Split Partition Splits some partition into two partitions with another high bound. |
| Merge Partitions Merge two partitions into single one |
| Exchange a partition Exchange/convert a partition to a non-partitioned table and vice versa. This facilitates a fast "move" of data between the data segments (opposed to doing something like "insert...select" or "create table...as select") as the operation is DDL (the partition exchange operation is a data dictionary update without moving the actual data) and not DML (large undo/redo overhead). Most basic examples :
Table "A" doesn't contain data in partition "OLD_VALUES" and table "B" contains data Result : data is "moved" from table "B" (contains no data after operation) to partition "OLD_VALUES"
Table "A" contains data in partition "OLD_VALUES" and table "B" doesn't contain data Result : data is "moved" from partition "OLD_VALUES" (contains no data after operation) to table "B" Note : there is a quite a few additional options, features and restrictions for this operation Further info can be found on this link ---> "https://docs.oracle.com/cd/E11882_01/server.112/e25523/part_admin002.htm#i1107555 (opens new window)" (section "Exchanging Partitions") RemarksPartitioning is an extra cost option and only available for the Enterprise Edition. |
Read Article
https://develop.horje.com/learn/1434/reference