oracle如何把索引移到其他表空间

2025-04-29 21:30:15
推荐回答(3个)
回答1:

分两种情况,一种是移动普通索引,另一种是移动分区索引。

oracle移动普通索引到其他表空间语法:

alter index 索引名 rebuild tablespace 其他表空间;

oracle移动分区索引到其他表空间语法:

alter table 表名 move partition 分区名 tablespace 其他表空间;

回答2:

可以通过使用alter index命令中的rebuild选项来实现:alter index emp_no rebuild tablespace otherspace 它表示把emp_no索引被移到otherspace表空间

回答3:

:alter index emp_no rebuild tablespace otherspace