ORA-14094: invalid ALTER TABLE EXCHANGE PARTITION option
Cause: Name of the table to be EXCHANGED has to be followed by [{INCLUDING|EXCLUDING} INDEX][{WITH|WITHOUT} VALIDATION]
Action: Ensure that no options besides INCLDING INDEX or EXCLUDING INDEX are specified with ALTER TABLE EXCHANGE PARTITION
ORA-14094:这是一个Oracle数据库服务器的错误码,表明检测到无效的ALTER TABLE EXCHANGE PARTITION选项。
1. 确认表分区表和替换表的表空间和表结构是否一致,如果不一致,需要先调整;
2. 对表分区表重新添加一个跟替换表一样的分区,然后使用ALTER TABLE EXCHANGE PARTITION语句将替换表的分区内容替换掉;
3. 使用DROP PARTITION语句将原来的表分区内容删除,完成交换和更新;
4. 用ANALYZE TABLE COMPUTE STATISTICS 语句重新计算表统计信息;
5. 对表分区表和替换表先后执行ALTER INDEX REBUILD,更新索引信息。