重庆思庄Oracle、、PostgreSQL、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 50|回复: 0
打印 上一主题 下一主题

[Oracle] ORA-14006 When Using For Clause In Partition Maintenance Command

[复制链接]
跳转到指定楼层
楼主
发表于 前天 11:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
ORA-14006 when partition operation is used with FOR clause for partitioned index or for partitioned index organized table (IOT).

ALTER TABLE <IOT> MODIFY PARTITION FOR(10) ....
ALTER INDEX <partitioned index> MODIFY PARTITION FOR(10) ....

e.g.
alter index idx2 modify partition for(10) nocompress
                                  *
ERROR at line 1:
ORA-14006: invalid partition name

alter table iot1 modify partition for(10) coalesce
*
ERROR at line 1:
ORA-25189: illegal ALTER TABLE option for an index-organized table
ORA-14006: invalid partition name

This occurs for other partition maintenance operations (e.g. split, drop, rebuild)  for partitioned index and for IOT.

原因:
Unpublished minor bug, that is with development at the time of writing this article.

处理方法:
1./ Determine the corresponding partition/subpartition by looking up the PARTITION_NAME
SUBPARTITION_NAME, HIGH_VALUE columns of the corresponding dictionary view:
user|dba|all_tab_partitions
user|dba|all_tab_subpartitions
user|dba|all_ind_partitions
user|dba|all_ind_subpartitions

2./ Use the partition name instead of the FOR clause.

e.g.
alter index idx2 modify partition pi1 nocompress;
alter table iot1 modify partition p2 coalesce;

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2025-7-15 22:17 , Processed in 0.108061 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表