Redian新闻
>
Problem running Oracle stored procedure in Java
avatar
Problem running Oracle stored procedure in Java# Java - 爪哇娇娃
y*o
1
I have never tried stored procedure in Java. So, I would like to give it a
shot.
I got the demo from Oracle and compiled this one: PLSQL.java, which is
attached in this post. This code uses Oracle XE's hr/hr schema. I've tried
some other code with plain SQL, and it runs just fine and returns employee
info from the employees table.
But, when I run this PLSQL, I get the following error, and I don't know what
it means. It looks like I get such error message for all codes involving
stored proced
avatar
y*o
2
Seems a lot of people are having this problem. Is this a bug? I haven't se
en a solution yet.

a
tried
employee
what

【在 y********o 的大作中提到】
: I have never tried stored procedure in Java. So, I would like to give it a
: shot.
: I got the demo from Oracle and compiled this one: PLSQL.java, which is
: attached in this post. This code uses Oracle XE's hr/hr schema. I've tried
: some other code with plain SQL, and it runs just fine and returns employee
: info from the employees table.
: But, when I run this PLSQL, I get the following error, and I don't know what
: it means. It looks like I get such error message for all codes involving
: stored proced

avatar
y*o
3
我来继续自说自话。
JavaRanch 的 Gaurav Chikara 说:

Generally this exception comes when heap memory exceeeds to that what JVM ca
n handle.
You must try setting heap memory to greater value using xmx ,xms variables i
n your Environment file
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。