ORA-00001: 违反唯一约束 (DEV.X_PK)
我有一个将数据发送到 Web 服务的 java 代码,以及一个使用该数据的 portlet。
java代理发送的数据被放置在TMP表中,合并过程将其合并到portlet使用的MAIN表中。
运行java代理时,尽管我确保不发送重复的主键,但出现以下错误:
ORA-00001: unique constraint (DEV.X_PK) violated
ORA-06512: at "DEV.PGK_Y", line 200
ORA-06512: at line 1
我尝试关闭主键约束,但徒劳。然后我尝试删除所有使用的表,然后再次创建它们。但仍然没有运气......
有趣的是,我能够手动将数据插入 TMP 并运行合并过程,并且没有错误。
任何帮助将不胜感激...
I have a java code that sends data to a web service, and a portlet that uses that data.
Data sent by java agent gets placed in TMP table, and merge procedure merges it into MAIN table used by portlet.
When running java agent I get the following error, although I ensure that no duplicate primary keys are sent:
ORA-00001: unique constraint (DEV.X_PK) violated
ORA-06512: at "DEV.PGK_Y", line 200
ORA-06512: at line 1
I tried turning off primary key constraint, but in vain. Then I tried to drop all tables used, and created them again. But still no luck...
Interestingly, I am able to manually insert data into TMP and run merge procedure, and there are no errors.
Any help is appreciated...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
启用会话的 SQL 跟踪,找出导致 ORA-1 的原因应该非常简单。
Enable SQL trace of the session and it should be pretty simple to find out what is causing the ORA-1.