把几个表,换个表空间,直接用的alter table move的方法,分区表用alter
table table_name move partition tablespace tablespace_name,去move分区,做完了之后,索引一定会失效的,重建索引是必须的;
分区表出现的问题:表中的分区是每天用job去add的,那新加的分区还是在表所在的表空间中,所以不能满足要求。
对分区表只好换一种方法:在新的表空间上先建好表,然后inser into /*+ append*/
new_table_name select * from old_table_name nologging 把数据插入进去 ,1.2亿条数据用了47分钟, 然后再rename。 再重建索引。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25099483/viewspace-713701/ ,如需转载,请注明出处,否则将追究法律责任。