一个朋友在执行DELETE FROM T WHERE ID='9' 时报 ORA-29876错误,如下
[oracle@edsir4p1-PROD1 ~]$ oerr ora 29876
29876, 00000, "failed in the execution of the ODCIINDEXDELETE routine"
// *Cause: Failed to successfully execute the ODCIIndexDelete routine.
// *Action: Check to see if the routine has been coded correctly.
解决过程:
建了一个测试表,执行delete,可以执行。delete from county不能执行,初步估计是该表的存储有了问题,不深究了,直接重建表。
create table county_bk as select * from county;
drop table county;
alter table county_bk rename to county;
再执行delete,可以了。收工!