奇怪的触发器问题,总提示编译出错!

Brunhild 2007-07-24 02:46:33
CREATE OR REPLACE TRIGGER SCOTT.TRG_TEST BEFORE
INSERT ON "SCOTT"."EMP" FOR EACH ROW
declare
v_no emp.empno%type;
begin
v_no:=:new.empno;
end;

错误提示:
Failed to commit: Missing IN or OUT parameter at index:: 1

请问如何解决??????
...全文
175 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
hongqi162 2007-07-24
  • 打赏
  • 举报
回复
There might be a problem in the Oracle?? JDBC?? driver code.

When the executeBatch is called, a large number of statements (as many as 4000) succeed. However, during the close of the statement, the connection manager calls the clearParameters() method on the statement, and gets an Oracle SQLException: Internal Error. This statement is then thrown away and not cached.

Subsequent prepares of this SQL string result in a new prepare call to the JDBC driver, and all should continue normally. However, the second time executeBatch is called, Oracle throws the above exception. While these two errors might not be related, it seems very coincidental. This behavior can happen if Oracle statement caching is enabled and the internal error somehow corrupted these Oracle statements.
Brunhild 2007-07-24
  • 打赏
  • 举报
回复
我用的是10g for linux

17,089

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧