当前位置: 代码迷 >> Oracle技术 >> 数据插入oracel出错 请教解决方法
  详细解决方案

数据插入oracel出错 请教解决方法

热度:80   发布时间:2016-04-24 08:34:19.0
数据插入oracel出错 请问解决办法
java.sql.BatchUpdateException: 批处理中出现错误: ORA-00604: 递归 SQL 级别 2 出现错误
ORA-00001: 违反唯一约束条件 (SYS.I_COL1)

at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:415)
at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:455)
at oracle.jdbc.driver.OracleStatement.executeBatch(OracleStatement.java:3965)
at Insert.main(Insert.java:63)

------解决方案--------------------
查看一下SYS.I_COL1 这个是哪个限制
select * from dba_constraints t where t.constraint_name like '%I_COL1%'然后看看是哪张表的那个主键冲突了。
  相关解决方案