Updated on 2025-05-29 GMT+08:00

Invalidating/Rebuilding Indexes

You can use ALTER INDEX to invalidate or rebuild indexes.

For example, if the range_sales_idx index exists in the range_sales partitioned table, run the following command to invalidate the index:
ALTER INDEX range_sales_idx UNUSABLE;
Run the following command to rebuild the range_sales_idx index:
ALTER INDEX range_sales_idx REBUILD;