1、检查要处理表是否存在全局索引
select * from user_indexes t where table_name ='xxxxxxx' and t.PARTITIONED='NO'
2、若存在,以下两种方法
(1)删除分区或者truncate分区后要更新全局索引(此操作会产生排它锁,导致表不可用,同时也会加重服务器负载)
alter table xxxxxxx drop partition p_2014_12 update global indexes;
(2)重建索引(此时的索引处于不可用状态,对业务有一定影响)
alter index index_name rebulid online parallel 8;
3、若不存在,直接清理分区
alter table xxxxxxx drop partition p_2014_12;