ORA-02292:违反完整性约束(XXX.JOB_EXEC_PARAMS_FK)-在Spring Batch中找到子记录

时间:2018-06-28 13:01:22

标签: sql oracle spring-batch sql-delete

我一直想删除

ts += offset

但是我收到以下错误。这是特定于Spring Batch

delete from BATCH_JOB_EXECUTION where JOB_INSTANCE_ID=18380;

我也在看

Error starting at line : 1 in command -
delete from BATCH_JOB_EXECUTION where JOB_INSTANCE_ID=18380
Error report -
ORA-02292: integrity constraint (XXX.JOB_EXEC_PARAMS_FK) violated - child record found

1 个答案:

答案 0 :(得分:0)

参考https://docs.spring.io/spring-batch/3.0.x/reference/html/metaDataSchema.html,您将看到与子记录的链接。

只需删除相关子记录1st,然后您就可以删除父记录。