Use the ALTER TABLE ADD PARTITION statement to add a new partition to the "high" end (the point after the last existing partition). To add a partition at the beginning or in the middle of a table, use the SPLIT PARTITION clause.
ALL_TAB_SUBPARTITIONS displays, for each table subpartition accessible to the current user, the subpartition name, name of the table and partition to which it belongs, its storage attributes, and statistics generated by the DBMS_STATS package.
To drop table partitions, use DROP PARTITION or DROP SUBPARTITION with the ALTER TABLE SQL statement. The following statements drop a table partition or subpartition: ALTER TABLE DROP PARTITION to drop a table partition.
With Oracle Partitioning, a single logical object in the database is subdivided into multiple smaller physical objects, so-called partitions. The knowledge about this physical partitioning enables the database to improve the performance, manageability, or availability for any application.
Partitioning Methods Range Partitioning - the data is distributed based on a range of values. List Partitioning The data distribution is defined by a discrete list of values. Auto-List Partitioning - extends the capabilities of the list method by automatically defining new partitions for any new partition key values.
Example: HASH/RANGE PARTITIONS num... You can extend the PARTITION BY HASH clause to include SUBPARTITION BY either RANGE | LIST | HASH to create subpartitions in a HASH partitioned table. This example creates a table sales that's hash partitioned by part_no and subpartitioned using a range by dept_no .
Use the ALTER TABLE ADD PARTITION statement to add a new partition to the "high" end (the point after the last existing partition). To add a partition at the beginning or in the middle of a table, use the SPLIT PARTITION clause.
You can remove multiple partitions or subpartitions from a range or list partitioned table with the DROP PARTITION and DROP SUBPARTITION clauses of the SQL ALTER TABLE statement. For example, the following SQL statement drops multiple partitions from the range-partitioned table sales .
ORA-14097: column type or size mismatch in ALTER TABLE EXCHANGE PARTITION Cause: The corresponding columns in the tables specified in the ALTER TABLE EXCHANGE PARTITION are of different type or size Action: Ensure that the two tables have the same number of columns with the same type and size.