首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

Failed to commit: Missing IN or OUT parameter at index:: 1

2014-01-28 
CREATE OR REPLACE TRIGGER SCOTT.TRG_TEST BEFORE INSERT ON SCOTT . EMP FOR EACH ROW declare v_no

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

请问如何解决?


------解决方法--------------------------------------------------------
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.
 

        

热点排行