ORA-25961: join index prevents dml cascade constraint operation
Cause: An attempt to execute dml resulted in the need to perform dml on another table because of a cascade constraint. The join index only allows one of its underlying tables to me modified at a time.
Action: Drop the join index or remove the constraint.
ORA-25961 是一个Oracle数据库的错误,指明不允许级联操作。它报告的内容是:“Join index prevents DML cascade constraint operation”,意思是连接索引不允许DML级联约束操作。
1. 使用以下SQL查出要删除和要更新的表以及外键:
select * from dba_constraints
where constraint_type=’R’
and table_name=”;
2. 使用以下SQL查询该外键约束上的索引:
select * from dba_indexes
where index_name = ‘FK_NAME’;
3. 如果索引类型是JOIN,那么使用以下SQL删除索引:
drop index indexName;
4. 再次尝试要进行的级联操作。