Exchange分区上的索引不匹配

时间:2019-05-21 15:59:32

标签: sql oracle indexing partition

我有创建索引的代码

 create unique index &schema_temp..UK_temp_dm_ID_final 
 on &schema_temp..temp_dm_ID_final (ID, START_DT)
 tablespace &tablespace_final_indx
 parallel &parallels;

然后在

ALTER TABLE &schema_final..DM_ID EXCHANGE PARTITION ALL_DATA WITH TABLE &schema_temp..temp_dm_ID_final INCLUDING INDEXES WITHOUT VALIDATION;

我收到以下错误。

ORA-14098: index mismatch for tables in ALTER TABLE EXCHANGE PARTITION

因为表DM_ID没有索引。

因此,我使用相同的逻辑在脚本外部直接在数据库中创建表dm_id并为其建立索引。

我仍然收到以下错误...

ORA-14098: index mismatch for tables in ALTER TABLE EXCHANGE PARTITION

假设索引不匹配,如何检查和/或使索引匹配?

0 个答案:

没有答案