473,411 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

SQL4301N RC4 and DB2ROUTINE_DEBUG

Just a quick note to report on the resolution of a problem that gave me
serious grief in January. I put it aside for a while and, largely by
accident, found the solution a few minutes ago.

In short, I found myself getting SQL4301N Reason Code 4 - "The Java
interpreter has terminated itself and cannot be restarted." - whenever I
tried to execute a stored procedure from a client. I also got it whenever I
tried to run a stored procedure in the Stored Procedure Builder, EXCEPT for
the first run after I built the procedure. In other words, if I built a
stored proc, I could run it successfully once but any subsequent time I
tried to run it, I would get the SQL4301N RC4. That meant the only way I
could run stored procs was in the Builder and then only if I rebuilt it each
time before I ran it, even though it hadn't changed.

I should mention that I am running DB2 V7.2.7, i.e. V7.2 with Fixpack 9
applied, on a WinXP machine with all critical Windows service applied.

After going around in circles on this problem for a while, I finally
stumbled on the solution. I noticed that DB2ROUTINE_DEBUG was ON when I did
a "db2set" command. (That was a result of having made an unsuccessful
attempt to use the IBM Distributed Debugger in January.) Just for the heck
of it, I tried turning it off and recycling the instance to make the change
take effect, not really expecting any improvement.

Much to my surprise, my client programs can now call my stored procedures
just fine and the Stored Procedure Builder works fine again too.

I don't pretend to understand why this single setting should make such a big
difference to stored procedures but I wanted to report this to the group in
case anyone else ever encountered the same problem. I know some of us are on
older versions of DB2 so I thought I owed it to people to share what I
learned, just in case others confront the same problem somewhere down the
road.

By the way, if anyone can offer an explanation for how the DB2ROUTINE_DEBUG
setting messed up my stored procedures so badly, I'd be curious to hear it.

--
Rhino
---
rhino1 AT sympatico DOT ca
"If you're getting something for nothing, you're not using your own credit
card."
Nov 12 '05 #1
2 2252
This was a bug in the sp debugger kicker code. It's fixed either in a
recent fixpack or in the next one coming out...

Rhino wrote:
Just a quick note to report on the resolution of a problem that gave me
serious grief in January. I put it aside for a while and, largely by
accident, found the solution a few minutes ago.

In short, I found myself getting SQL4301N Reason Code 4 - "The Java
interpreter has terminated itself and cannot be restarted." - whenever I
tried to execute a stored procedure from a client. I also got it whenever I
tried to run a stored procedure in the Stored Procedure Builder, EXCEPT for
the first run after I built the procedure. In other words, if I built a
stored proc, I could run it successfully once but any subsequent time I
tried to run it, I would get the SQL4301N RC4. That meant the only way I
could run stored procs was in the Builder and then only if I rebuilt it each
time before I ran it, even though it hadn't changed.

I should mention that I am running DB2 V7.2.7, i.e. V7.2 with Fixpack 9
applied, on a WinXP machine with all critical Windows service applied.

After going around in circles on this problem for a while, I finally
stumbled on the solution. I noticed that DB2ROUTINE_DEBUG was ON when I did
a "db2set" command. (That was a result of having made an unsuccessful
attempt to use the IBM Distributed Debugger in January.) Just for the heck
of it, I tried turning it off and recycling the instance to make the change
take effect, not really expecting any improvement.

Much to my surprise, my client programs can now call my stored procedures
just fine and the Stored Procedure Builder works fine again too.

I don't pretend to understand why this single setting should make such a big
difference to stored procedures but I wanted to report this to the group in
case anyone else ever encountered the same problem. I know some of us are on
older versions of DB2 so I thought I owed it to people to share what I
learned, just in case others confront the same problem somewhere down the
road.

By the way, if anyone can offer an explanation for how the DB2ROUTINE_DEBUG
setting messed up my stored procedures so badly, I'd be curious to hear it.

Nov 12 '05 #2
Thanks for the info, Sean! I'm glad to hear that this situation is well
understood and already (being) resolved. I hadn't seen any other posts on
this problem via Google so I thought I was the only one encountering it.

Rhino

"Sean McKeough" <mc******@nospam.ca.ibm.com> wrote in message
news:c5**********@hanover.torolab.ibm.com...
This was a bug in the sp debugger kicker code. It's fixed either in a
recent fixpack or in the next one coming out...

Rhino wrote:
Just a quick note to report on the resolution of a problem that gave me
serious grief in January. I put it aside for a while and, largely by
accident, found the solution a few minutes ago.

In short, I found myself getting SQL4301N Reason Code 4 - "The Java
interpreter has terminated itself and cannot be restarted." - whenever I
tried to execute a stored procedure from a client. I also got it whenever I tried to run a stored procedure in the Stored Procedure Builder, EXCEPT for the first run after I built the procedure. In other words, if I built a
stored proc, I could run it successfully once but any subsequent time I
tried to run it, I would get the SQL4301N RC4. That meant the only way I
could run stored procs was in the Builder and then only if I rebuilt it each time before I ran it, even though it hadn't changed.

I should mention that I am running DB2 V7.2.7, i.e. V7.2 with Fixpack 9
applied, on a WinXP machine with all critical Windows service applied.

After going around in circles on this problem for a while, I finally
stumbled on the solution. I noticed that DB2ROUTINE_DEBUG was ON when I did a "db2set" command. (That was a result of having made an unsuccessful
attempt to use the IBM Distributed Debugger in January.) Just for the heck of it, I tried turning it off and recycling the instance to make the change take effect, not really expecting any improvement.

Much to my surprise, my client programs can now call my stored procedures just fine and the Stored Procedure Builder works fine again too.

I don't pretend to understand why this single setting should make such a big difference to stored procedures but I wanted to report this to the group in case anyone else ever encountered the same problem. I know some of us are on older versions of DB2 so I thought I owed it to people to share what I
learned, just in case others confront the same problem somewhere down the road.

By the way, if anyone can offer an explanation for how the DB2ROUTINE_DEBUG setting messed up my stored procedures so badly, I'd be curious to hear it.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Rob S | last post by:
I have UDB 8.1 Personal Edition installed. I'm using Development centre to develop JAVA Stored Procedues. I am unable to debug them. I have installed IBM Distributed Debugger and have set...
3
by: Rhino | last post by:
I've spent the last couple of hours trying to figure out how to debug a Java stored procedure and am just going in circles. The last straw came when I got "Cannot open input stream for default"...
0
by: Raquel | last post by:
UDB PE 8.1 on XP. Have developed a simple java stored procedure using Development Center. Performed a "Build for Debug". Now, how do I actually perform the debugging? There 'is' a "Debug" option...
1
by: Raquel | last post by:
UDB PE 8.1.3 on XP. Have IBM Distributed Debugger installed on my machine. When I invoke the debugger with the command: idebug, the debugger gets loaded and I am able to debug my Java stored...
1
by: Uma | last post by:
DB2I.PROCEDURE1 - Build started. C:\SQLLIB\java\jdk\bin\javac -classpath ".;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip" "PROCEDURE1.java" DB2I.PROCEDURE1 -...
5
by: | last post by:
Does this message mean something to someone? I am receiving it during a CREATE SQL PROCEDURE statement and am wondering if this could be the source of the error: IBM CLI DRIVER SQL30020N ...
1
by: Uma | last post by:
I tried to compile Java stored procedures and I am getting this message .. SQL1131N DARI (Stored Procedure) process has been terminated abnormally. SQLSTATE=38503 I am using DB2 UDB...
4
by: acemann7 | last post by:
Windows 2000 udb v 7.2 Got the latest fixpak 13 Applied it. Still can't get a single java sp to run. I used to get reason "2"... now reason "0" - reason 0 is not even documented. I point...
3
by: tol7481 | last post by:
Hi, I'm trying to deploy a Java stored procedure on DB2 V8 on a Linux box, but I have some problems. I've added to the classpath the following JARs sqllib/java/db2java.zip...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.