【发布时间】:2011-06-07 19:46:42
【问题描述】:
public class HelloWorld{
public static void add(int a, int b){
System.out.println(a+b);
}
}
然后我通过
将它加载到 oracleloadjava -user system/admin Helloworld.class
这句话很好。
之后我写了这个程序:
create or replace
PROCEDURE start_helloworld(a in number, b in number)
AS language java
name 'HelloWorld.add(int,int)';
我希望能够在 PL/SQL 中调用该过程:
exec start_helloworld(1,1);
但它给出了我提到的错误。
【问题讨论】:
标签: java oracle plsql oracle10g