`
womendu
  • 浏览: 1480602 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

分区split ORA-14074

 
阅读更多
ORA-14074: partition bound must collate higher than that of the last partition错误解决
在使用alter table TAB_STAT_DAY_COMPANY add PARTITION p201001 values less than (to_date('2010-01-01','yyyy-mm-dd'));
增加分区时,我想大家碰到的最多的错误就是ORA-14074: partition bound must collate higher than that of the last partition.
因为表上已经有了pmaxvalue分区,这个时候oracle是不直接允许增加分区的. 而是通过拆分分区实现,只要只用下列语句增加分区就不会发生该错误.

ALTER TABLE 【table_name 表名】 SPLIT PARTITION 【pmaxvalue -- 需要拆分的分区名】 at (to_date('2010-01-01','yyyy-mm-dd')) INTO (PARTITION p201001, PARTITION pmaxvalue);
注意:
进行分区split操作后是使得索引无效

对于global的index
使用
alter index INX_LOTT_ORDER_ID rebuild;/alter index INX_LOTT_ORDER_ID rebuild online(此时不影响DML操作);

对于local索引
则需要重建所有分区上的索引
ALTER INDEX IDX_CREATE_TIME REBUILD PARTITIONT_ORDER_20100203

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics