Truncating Partitions

You can use Oracle Enterprise Manager to remove all rows from a partition of a composite-partitioned table. Truncating a partition deletes all the data from the rows of the partition but the empty partition structure remains.

You cannot truncate an index partition. However, if local indexes are defined for the table, the truncate partition function truncates the matching partition in each local index. Unless you specify Update Indexes (cannot be specified for index-organized tables), any global indexes are marked UNUSABLE and must be rebuilt.

Note: After choosing to truncate, the SQL that is generated will not execute until you choose Apply on the subsequent Table Property page.

To truncate partitions, follow these steps:

  1. Navigate to the Database Home page.

  2. On the Schema tab, click Tables from the Database Objects section.

    The Tables Search page appears containing a results table listing all current tables for the current database.

  3. Find the partitioned table containing the partition you want to truncate and choose Edit.

  4. Choose the Partitions tab and then select the partition you want to truncate.

  5. Choose Truncate from the Actions drop-down menu and press Go.

    Click Help for more information about tables and partitions.

Related Topics

About Partitioned Tables

About Partitioned Indexes

Adding Partitions

Creating Partitioned Indexes

Creating Partitioned Tables

Exchanging Partitions

Merging Partitions

Splitting Partitions

Enterprise Manager Information Roadmap