ITPub博客

首页 > 数据库 > Oracle > ORA-14126:只有可遵循结果分区的说明

ORA-14126:只有可遵循结果分区的说明

原创 Oracle 作者:pujh 时间:2015-04-28 11:36:13 0 删除 编辑

当对分区表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博客 ” ,链接:https://blog.itpub.net/29827022/viewspace-1608486/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-08-25

  • 博文量
    8
  • 访问量
    44276