You cannot modify either basic table parameters, the primary index, or partitioning in the same ALTER TABLE request you run to revalidate a table or join index.
REVALIDATE
Update the data dictionary as needed. This also regenerates the table headers for a partitioned table.
You can optionally verify row partitioning and correct any errors that are found during the verification process for a row-partitioned table by specifying either the WITH DELETE or WITH INSERT INTO save_table options.
WITH DELETE
Delete any row for which a partitioning expression evaluates to a value outside the valid range of 1 through the number of partitions defined for that level.
This option is valid only for row-partitioned tables. You cannot specify the WITH clause for join indexes.
WITH INSERT
Insert into save_table any row for which a partitioning expression evaluates to a value outside the valid range of 1 through the number of partitions defined for that level. The non-valid row is inserted into the save_table and deleted from the source table.
This option is valid only for row-partitioned tables. You cannot specify the WITH clause for join indexes.
- INTO
- Optional keyword to precede save table specification.
- save_table
- The save_table and the table being altered must be different tables.