oracle中,已经建好的表放入别的表空间怎么设置

2025-03-22 10:18:06
推荐回答(1个)
回答1:

alter table 表名move tablespace 新表空间名称
注意:移动表的表空间后,该表的索引肯定会失效的,所以需要把索引重建一下
索引重建索引语法:
alter index 索引名称 rebuild;
如果你的Oracle是企业板的话:
alter index 索引名称 rebuild online;