分两种情况,一种是移动普通索引,另一种是移动分区索引。
oracle移动普通索引到其他表空间语法:
alter index 索引名 rebuild tablespace 其他表空间;
oracle移动分区索引到其他表空间语法:
alter table 表名 move partition 分区名 tablespace 其他表空间;
可以通过使用alter index命令中的rebuild选项来实现:alter index emp_no rebuild tablespace otherspace 它表示把emp_no索引被移到otherspace表空间
:alter index emp_no rebuild tablespace otherspace