UDB PE 8.1 on Win XP.
ok, this function caused a lot of grief today. My stored procedures
are java stored procedures, all FENCED and directly placed in
\sqllib\functio n directory (not built into JAR files).
While the manuals state that SQLJ.REFRESH_CL ASSES() only refreshes the
routines built into JAR files, I have been successfully refreshing my
JDBC stored procedures with this function.
A couple of days back, I started developing SQLJ stored procedures and
it took me a long while to figure out that all the strange errors I
was receiving while attempting to run the SQLJ stored procedures
(messages like arguments not being compatible etc.) were because
SQLJ.REFRESH_CL ASSES() was NOT refreshing my SQLJ stored procedures in
\sqllib\functio n. I had to stop and start the database manager
everytime I changed and recompiled a stored procedure. This solved the
problem.
KEEPFENCED in dbm config. file is set to YES (default).
Anyway, so my question is: Is someone on the list aware of what the
deal with SQLJ.REFRESH_CL ASSES() is? Why does it work with JDBC
procedures and not with SQLJ procedures. Actually, per the manual, it
should work *only* for stored procedures that are built into JAR
files. Since my JDBC stored procedures are not built into JAR files,
SQLJ.REFRESH_CL ASSES() should not have worked even with JDBC.
What are your experiences in this regard.
TIA
Raquel.
Nov 12 '05
10 4121
You're either missing a fixpack, or else something is wrong with the
code...you don't want to go to keepfenced=no.. .you're paying the cost of
starting a jvm on every sp invocation.
Raquel wrote: I now have thoroughly conducted various tests and following are the results. They are consistent whether the stored procedures are JDBC or SQLJ (so, at least that's good). I am at 8.1.3 UDB PE on XP. As already mentioned, all my procedures are defined as FENCED and are in \sqllib\functio n library (and are not defined as JAR files).
SQLJ.REFRESH_CL ASSES() does not have ANY effect at all; in other words executing it does NOT refresh the stored procedure code (in my case...that is in case of stored procedures directly defined in \sqllib\functio n, probably it does in case stored procedures are defined in JAR format).
The parameter that does make a difference is: KEEPFENCED.
1. If KEEPFENCED=YES, it is imperitive to issue a db2stop/db2start to refresh the stored procedure bytecode(once you change the stored procedure and compile it). 2. If KEEPFENCED=NO, the stored procedures bytecode is automatically refreshed (the moment you compile your changed procedure).
Thanks. Raquel. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: chaos |
last post by:
Hello,
i have problems using sqlj in the following environment.
I use type 4 driver com.ibm.db2.jcc.DB2Driver and connect succesful to
8.1. db2-Database(DRDA)(Informational tokens are "DB2 v8.1.0.32",
"s031027", "MI00060", and FixPak "4".Product is installed at
"/opt/IBM/db2/V8.1"). It runs in an applicationcontainer (jdk1.4,
linux). I tried all other drivers without success.
|
by: Bernard Dhooghe |
last post by:
DB2 UDB V8.1 Fixpak 4 AIX 5.1
CLASSPATH:
/usr/opt/db2_08_01/java/db2jcc.jar:/usr/opt/db2_08_01/java/db2jcc_license_cu.jar:/usr/opt/db2_08_01/java/sqlj.zip:/usr/java131/jre/lib/rt.jar:
Program: tmp0.sqlj
import java.sql.*;
import sqlj.runtime.*;
import sqlj.runtime.ref.*;
|
by: Raquel |
last post by:
This is a very simple DB2 SQLJ stored procedure. The problem is that it
seems to run fine but returns NOTHING. I mean..as if nothing has
happened..not resultset is returned. I am passing value 'D11' to :workdept
and I have checked in the table that 6 rows should have returned. Any
ideas why no resultset is being returned.
import java.sql.*;
import sqlj.runtime.*;
import sqlj.runtime.ref.*;
import java.io.*; // Input/Output classes
|
by: Raquel |
last post by:
UDB V8.1.3 on XP. While trying out SQLj procedures, I just 'compile'
my stored procedure code (by command sqlj program-name.sqlj) and run
it. That's it. So, how and when is db2profc and all the other commands
needed? The stored procedure seems to run without executing these
commands as well. In fact, I experience no difference between methods
of preparing JDBC or SQLj procedures other than the fact that JDBC
procedures are compiled with...
|
by: Rhino |
last post by:
I am having an odd problem: the sqlj command on my system doesn't work.
I am running DB2 (LUW) V8 (FP8) on WinXP.
I haven't done an sqlj program since Version 6 of DB2 (LUW) so I checked the
manuals for the proper techniques to prepare an sqlj program. When I went to
try the sqlj command, I got this:
Exception in thread "main" java.lang.NoClassDefFoundError:
sqlj/tools/Sqlj
| |
by: Jean-Marc Blaise |
last post by:
Hi,
The dev center calls sqlj.DB2_UPDATEJARINFO
('JMARC.JMB','JMB','file:JMB.sqlj') to update the sqlj routine source.
I tried in CLP from the directory containing jar and sqlj files (Windows 8.2
FP9):
db2 connect to sample
db2 call sqlj.DB2_UPDATEJARINFO ('JMARC.JMB','JMB','file:JMB.sqlj')
|
by: shibubaby |
last post by:
Hi All,
I am trying to compile some embedded SQL using the SQLJ in DB2
environment. My setup is as follows.
1) Fedora Core 5
2)IBM DB2 V8.2
I installed both the client/admin tools in the DB2 and created data
base instance. I am able sucessfully play with the DB2 related
commands.
|
by: vasilip |
last post by:
I'm trying to insert large polygon data via sql statement. since the
data was over 32k I had to use sqlj to insert my data.
I made a class that inserts the data. ran sqlj, generated the .java
and .ser files then used
db2profc to bind the ser file.. not exacly 100% sure what this is
about.. but I kind of get the idea..
I imported the java file into my project and attempted to use it..
|
by: ajitkathar |
last post by:
In my SQLJ procedure , there is call to another stored procedure using a callable statement. But during excecution when .excute() happens . . the DB2 V7 database shuts down.
Plz help.
Follwing is the code . .
************ CAL02RSCAL.sqlj which call another PL/SQL Strored procedure TESTRSFILEPL written in DB2 *******************
package PAKCAL02RSCAL ;
import java.sql.*;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |