473,382 Members | 1,635 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,382 software developers and data experts.

DB2 Java Stored Procedure refresh Issues

Hello,

The problem mentioned below has been faced while trying to execute a
stored procedure.

In this case they have deployed an SP and then trying to make changes
to the out parameters but the changes made are not reflected on the
output tab where we get the results displayed.

We tried doing the following steps and still we are getting the first
result and the changes are not reflected.

1. We dropped the stored procedure in question and removed the
references of the jar id and also ensured that the jar file is deleted
from the server.
2. We then deployed the SP to the server with the changed output
parameters and this created a jar with new jar id.
3. We then tried executing the SP from the database where the SP
content had the changes made. But still we were facing the same
problem.

We also thought the the cache needs to be refreshed and we executed
the command "call sqlj.refresh_classes (void);". But this too does not
refresh the results.

Can anybody help us solve this issue....
Thanks in advance,
Arindam Roy
Nov 12 '05 #1
2 4579

"Arindam Roy" <ar*********@fidelity.com> wrote in message
news:e2**************************@posting.google.c om...
Hello,

The problem mentioned below has been faced while trying to execute a
stored procedure.

In this case they have deployed an SP and then trying to make changes
to the out parameters but the changes made are not reflected on the
output tab where we get the results displayed.

We tried doing the following steps and still we are getting the first
result and the changes are not reflected.

1. We dropped the stored procedure in question and removed the
references of the jar id and also ensured that the jar file is deleted
from the server.
2. We then deployed the SP to the server with the changed output
parameters and this created a jar with new jar id.
3. We then tried executing the SP from the database where the SP
content had the changes made. But still we were facing the same
problem.

We also thought the the cache needs to be refreshed and we executed
the command "call sqlj.refresh_classes (void);". But this too does not
refresh the results.

Can anybody help us solve this issue....


The main cause for this problem is usually the KEEPDARI parameter.

KEEPDARI is a performance parameter which causes cacheing of stored
procedures. It should be set to "YES" in a production environment but should
normally be "NO" in a development environment.

I suggest you determine the value of KEEPDARI in your environment via this
command, issued from a DB2 Command Window:
db2 get dbm cfg | more

Scroll down until you see a line that starts:
"Keep DARI process (KEEPDARI) = "

If the value of KEEPDARI is not appropriate, execute these commands:
db2 update dbm cfg using keepdari no [or yes if you want KEEPDARI on]
db2 terminate
db2 force application all
db2stop
db2start

If this doesn't resolve your problem, take a careful look through your
preparation procedures for an inconsistency. For example, if your compile st
ep is writing the object code to directory FOO but the object code is being
copied into DB2 from the BAR directory, the code that is being compiled is
different from the code that is being stored in DB2. In that case, no amount
of recompiling will resolve the problem: you have to revise your preparation
procedures to fix that problem.

Rhino
Nov 12 '05 #2
If you want to run with keepdari=yes (for performance), you have another
option...just "call sqlj.refresh_classes()", and on the next invocation
(in a new uow), the new jar/class will be picked up. (I think this
function is doccumented as jar specific, but it destroys the old
classloader, and so should pick up any class changes too).

Rhino wrote:
"Arindam Roy" <ar*********@fidelity.com> wrote in message
news:e2**************************@posting.google.c om...
Hello,

The problem mentioned below has been faced while trying to execute a
stored procedure.

In this case they have deployed an SP and then trying to make changes
to the out parameters but the changes made are not reflected on the
output tab where we get the results displayed.

We tried doing the following steps and still we are getting the first
result and the changes are not reflected.

1. We dropped the stored procedure in question and removed the
references of the jar id and also ensured that the jar file is deleted
from the server.
2. We then deployed the SP to the server with the changed output
parameters and this created a jar with new jar id.
3. We then tried executing the SP from the database where the SP
content had the changes made. But still we were facing the same
problem.

We also thought the the cache needs to be refreshed and we executed
the command "call sqlj.refresh_classes (void);". But this too does not
refresh the results.

Can anybody help us solve this issue....

The main cause for this problem is usually the KEEPDARI parameter.

KEEPDARI is a performance parameter which causes cacheing of stored
procedures. It should be set to "YES" in a production environment but should
normally be "NO" in a development environment.

I suggest you determine the value of KEEPDARI in your environment via this
command, issued from a DB2 Command Window:
db2 get dbm cfg | more

Scroll down until you see a line that starts:
"Keep DARI process (KEEPDARI) = "

If the value of KEEPDARI is not appropriate, execute these commands:
db2 update dbm cfg using keepdari no [or yes if you want KEEPDARI on]
db2 terminate
db2 force application all
db2stop
db2start

If this doesn't resolve your problem, take a careful look through your
preparation procedures for an inconsistency. For example, if your compile st
ep is writing the object code to directory FOO but the object code is being
copied into DB2 from the BAR directory, the code that is being compiled is
different from the code that is being stored in DB2. In that case, no amount
of recompiling will resolve the problem: you have to revise your preparation
procedures to fix that problem.

Rhino

Nov 12 '05 #3

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

Similar topics

0
by: aychai | last post by:
Hi all, I am trying to make use Oracle9i db to call an external .Net Web Service from a JAva Stored Procedure. I created the .Net Web Service and use JDeveloper 9.0.3.4Build(1247) to create...
3
by: dinesh prasad | last post by:
I'm trying to use a servlet to process a form, then send that data to an SQL server stored procedure. I'm using the WebLogic 8 App. server. I am able to retrieve database information, so I know my...
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"...
4
by: Rhino | last post by:
Is it possible for a Java Stored Procedure in DB2 V7.2 (Windows) to pass a Throwable back to the calling program as an OUT parameter? If yes, what datatype should I use when registering the...
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
1
by: esmith2112 | last post by:
We all of a sudden find ourselves in dire straits, because we have one of those mysteries where everything used to work, and apparently, all of a sudden everything went to pot just in time for a...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
by: amgupta8 | last post by:
Note: This problem occurred when I updated the JDK from 1.3.1 to 1.4.1 or 1.4.2. Nothing else was changed in the code, other than updating the JDK on the database server (dbm cfg parm jdk_path) and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.