Renames indexes in base or global temporary tables, foreign key role names of indexes and foreign keys explicitly created by a user, or changes the clustered nature of an index on a catalog store table. You cannot rename indexes created to enforce key constraints.
ALTER { INDEX index-name | [ INDEX ] FOREIGN KEY role-name | [ INDEX ] PRIMARY KEY | ON [owner.]table-name { rename-clause | move-clause | cluster-clause} rename-clause - (back to Syntax) RENAME TO | AS new-name move-clause - (back to Syntax) MOVE TO dbspace-name cluster-clause - (back to Syntax) CLUSTERED | NONCLUSTERED
CREATE TABLE foo ( c1 INT IN Dsp1, c2 VARCHAR(20), c3 CLOB IN Dsp2, c4 DATE, c5 BIGINT, PRIMARY KEY (c5) IN Dsp4) IN Dsp3); CREATE DATE INDEX c4_date ON foo(c4) IN Dsp5; ALTER INDEX PRIMARY KEY ON foo MOVE TO Dsp8;
ALTER INDEX c4_date ON foo MOVE TO Dsp9
ALTER INDEX COL1_HG_OLD ON jal.mytable RENAME AS COL1_HG_NEW
ALTER INDEX FOREIGN KEY ky_dept_id ON dba.Employees RENAME TO emp_dept_id