当对分区表aa_part的三个分区进行分区合并时遇到ORA-14126问题。
alter table aa_part merge partitions p_1,p_2,p_3 into partition p_3 update global indexes;
错误:ORA-14126:只有可遵循结果分区的说明
原来merge into 最多只能进行两个全并为一个。
alter table aa_part merge partitions p_1,p_2 into partition p_2 update global indexes;
table altered;
alter table aa_part merge partitions p_2,p_3 into partition p_3 update global indexes;
table altered;
分两步即可实现三个合并为一个分区的效果;
需要说明的是merge into语句可能会导致合并后的分区所有本地索引失效,因此需监控并进行分区索引重建,以及进行表分析。当然所有的操作都将会影响到业务,请避开业务期间进行操作。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29827022/viewspace-1608486/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29827022/viewspace-1608486/