View Full Version : Executing Oracle stored procedure from a Java stored procedure
Alain ROUILLON
01-06-2004, 03:13 AM
Hi,
Here is my pb :
Executing an Oracle stored procedure from a Java method included within a
Java class stored on the Oracle database causes an error ORA-03113
"End of file on communication canal".
When executing the Java method straight from a command line everything is
ok. If executed from the Oracle server, I get this message.
I need your help !
Alain
Jim Harrington
01-12-2004, 01:55 PM
Dan,
Apparently Alain got sidetracked, but I'm seeing exactly the same
situation. Here are my answers to your questions:
1) RS6000 - 4GB
2) AIX 4.3.3 maintenance level 10
3) 9.2.0.3
4) java shared pool 150M, shared pool 200M
5) N/A
In our case, we have a java based function that calls a PL/SQL stored
procedure that opens up a number of cursors. The java function
consumes all the cursors, puting the resulting data into HashMaps that
are then serialized and the resulting byte[] returned by the java
function as a BLOB.
When the logic that the java functions is executed outside of the
database, about 2.5MB of memory is used. This leads us to believe
that it is unlikely that we are exceeding the 150MB we have in the
java shared pool. When we run, the database connection cores and
leaves a trace file. We have found that if we trim down the select
clauses of the queries made in the PL/SQL procedure, we can cause the
overall call to succeed.
Daniel Morgan <damorgan@x.washington.edu> wrote in message news:<1073396295.988854@yasure>... Alain ROUILLON wrote: Hi, Here is my pb : Executing an Oracle stored procedure from a Java method included within a Java class stored on the Oracle database causes an error ORA-03113 "End of file on communication canal". When executing the Java method straight from a command line everything is ok. If executed from the Oracle server, I get this message. I need your help ! Alain Oh how I get tired of this! 1. What hardware platform with how much RAM? 2. What operating system and version? 3. What Oracle version and edition? 4. What is the size of the Java Shared Pool? 5. If Solaris or HP/UX are the kernel parameters for shared memory and semaphores those recommended by Oracle for your operating system and the number of processes? Who do so many people think their problems exist in a vacuum?
Daniel Morgan
01-12-2004, 06:06 PM
Jim Harrington wrote:
Dan, Apparently Alain got sidetracked, but I'm seeing exactly the same situation. Here are my answers to your questions: 1) RS6000 - 4GB 2) AIX 4.3.3 maintenance level 10 3) 9.2.0.3 4) java shared pool 150M, shared pool 200M 5) N/A In our case, we have a java based function that calls a PL/SQL stored procedure that opens up a number of cursors. The java function consumes all the cursors, puting the resulting data into HashMaps that are then serialized and the resulting byte[] returned by the java function as a BLOB. When the logic that the java functions is executed outside of the database, about 2.5MB of memory is used. This leads us to believe that it is unlikely that we are exceeding the 150MB we have in the java shared pool. When we run, the database connection cores and leaves a trace file. We have found that if we trim down the select clauses of the queries made in the PL/SQL procedure, we can cause the overall call to succeed.
Well I I might as well announce I have a broken leg so my ability to
function, given a fair dosage of opiates in my bloodstream is somewhat
altered. With that caveat I'd suggest that you, or someone here in the
group look for bugs on metalink. Because nothing jumps out at me
immediately other than suggesting that you patch to 9.2.0.4.
--
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.