ORA-08111: a partitioned index may not be coalesced as a whole
Cause: User attempted to coalesce a partitioned index using ALTER INDEX COALESCE statement, which is illegal
Action: Coalesce the index a (sub)partition at a time (using ALTER INDEX MODIFY (sub)PARTITION COALESCE)
这是一条Oracle系统级错误,当在聚集(Coalesce)数据表索引时报告。
Oracle 报错ORA-08111:表示有分区的索引不能以整体的形式聚集。
1. 确认要聚集的索引是否存在分区索引
使用以下命令检查索引是否存在分区
SQL>select index_name, partitioned from dba_indexes where index_name=your_index_name;
2. 如果源索引存在分区,则通过指定分区名称直接聚集索引
SQL>alter index your_index_name coalesce partition your_partition_name;
3. 处理索引使用ALTER INDEX your_index_name REBUILD命令。
SQL>alter index your_index_name rebuild;