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

Sinking Feeling

I have a successful app which is used in a variety of client/server
situations. (DB2 8.x.)

I need to update it to have XML capability to interface with several
other external programs. Therefore, I was happy to see that DB2 is
doing what I need with V9.x

I upgraded an experimental server to 9.5 and a client to same. I'm
using UDB for LUW and the server is Windows Server 2003 and the client
is XP. The programing language has been (to date) VisualBasic 6.

Now, suddenly, the Connection object takes about 100x longer to
connect, the Command object takes about 100x longer to collect the
parameters from a stored procedure, and the actual Execution takes
about 100x longer to get a recordset with return of an SQLSTATE to the
Command object!

In addition, there are many unpredictible cases when the application's
call to a SP cannot find it at all and returns a fatal error!

I have a SINKING FEELING that IBM has mandated more Java -- More slow,
clunky, error-prone Java. Please, someone, tell me that this is not
so.

Or tell me that it IS so, so that I may do what I have to do . . .
Dec 15 '07 #1
12 1502
28******@gmail.com wrote:
I have a SINKING FEELING that IBM has mandated more Java -- More slow,
clunky, error-prone Java. Please, someone, tell me that this is not
so.

Or tell me that it IS so, so that I may do what I have to do . . .
There is no Java on the server. So whatever it is it isn't that.
You symptoms are to generic (more like an aching belly ;-) to give sound
advice. Can you open a PMR?

Alternatively I propose to divide and conquer.
Connect from the CLP. Run some tests.
What happens if the connection is local? Etc, etc...

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Dec 16 '07 #2
Serge,

I wasn't thinking of Java on the server, but on the new client. There
seems to be some disk-thrashing during all this (as I said, it takes
much, much longer than before for a connection.

1. Local connection is fine, ie if client and server are on same box,
the Stored Procedure is executed and returns correctly.
2. Remote CLP connections are fine.
3. Direct SQL statements executed from the remote client are fine.
THEN,
4. Calls to stored procedures from the new client (9.5 LUW) to the
new 9.5 server fail. Here's what happens: (Each of these is a step
in the code on the client:)
a) The client Connection object (via the new ODBC, I think it's in
MDAC 2.8) makes a very slow connection with the server, with disk
thrashing.
b) Uses Command object to contact the SP and pick up the number and
type of parameters (IN, OUT) via "Prepare Command" in code.
(Obviously can read the SP at this point.)
c) Back at the Client, The Command object is loaded with the values
of the IN Parameters.
d) This returns to the server for the SQL in the SP to run.
e) At this point a "About to Execute (Succes)" Event occurs in the
Connection object which has a Satus of 1 (succes).

Finis. Next message is the ODBC/system/SQL message that the SP code
is unavailable and the procedure has failed. The Connection Object
has Status 2 (fail). The Command remains with whatever parameters it
had; the Recordset is never opened. (Follows an eg of return with
"VERIFY_USER," but same for any SP):

[IBM][CLI driver]SQL0444N Routine "VERIFY_USER" (specific name
"SQL071201165900590") is implemented with code in library or path
"\VERIFY_USER", function "VERIFY_USER" which cannot be accessed.
Reason code "4". SQLSTATE = 42724
Dec 16 '07 #3
28******@gmail.com wrote:
[IBM][CLI driver]SQL0444N Routine "VERIFY_USER" (specific name
"SQL071201165900590") is implemented with code in library or path
"\VERIFY_USER", function "VERIFY_USER" which cannot be accessed.
Reason code "4". SQLSTATE = 42724
Is this UDF defined by you? Which language? Does the path make any
sense? (It looks dubious)
I'm wondering whether this has something to do with the search path...

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Dec 16 '07 #4
On Dec 16, 6:52 pm, Serge Rielau <srie...@ca.ibm.comwrote:
2803s...@gmail.com wrote:
[IBM][CLI driver]SQL0444N Routine "VERIFY_USER" (specific name
"SQL071201165900590") is implemented with code in library or path
"\VERIFY_USER", function "VERIFY_USER" which cannot be accessed.
Reason code "4". SQLSTATE = 42724

Is this UDF defined by you? Which language? Does the path make any
sense? (It looks dubious)
I'm wondering whether this has something to do with the search path...

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Serge,

<<Is this UDF defined by you? Which language?>>

The stored procedure is defined by me and has been working fine for
many months. Written in SQL. Also tried other SPs that have been
working well and same thing.

<<Does the path make any sense? (It looks dubious) >>

I'm not sure what you mean by this. All procs are written on the
client and sent to the server by using the CLP: DB2 CONNECT TO
MYDATABASE USER ME USING MYPASSWORD <ENTER (get connection message)
then
db2 -td@ -vf "C:\ADDRESS\SP_MY_STORED_PROC.SQL" where
SP_MY_STORED_PROC.SQL is the name of the local file containing the SQL
code for the SP. (Returns success message).

I do not declare the address on the server. All these procs have
worked fine for a long time.

Is there a way for me to check the search path, change a PATH
environmental variable, or do anything else to make the SP more
findable? Remember that the Command successfully gets the number and
type of parameters before trying to execute the SQL query (which is
what fails).

SS

PS The total SP looks like (Extra white space removed):
DROP SPECIFIC PROCEDURE "DATASHIELD"."VERIFY_USER"@
CREATE PROCEDURE "DATASHIELD"."VERIFY_USER" (
IN p_USER_ID VARCHAR(18),
IN p_PASSWORD VARCHAR(250),
OUT p_SQLSTATE CHAR(5) )
SPECIFIC "DATASHIELD"."VERIFY_USER"
DYNAMIC RESULT SETS 1
READS SQL DATA
LANGUAGE SQL
P1: BEGIN
DECLARE SQLSTATE CHAR(5) DEFAULT '00000';
DECLARE C1 CURSOR WITH RETURN FOR
SELECT
UNIQUE_ID,
GROUP_ID,
SIGNATURE,
NAME_TO_SIGN
FROM DATASHIELD.USERS U
WHERE UCASE(U.USER_ID) = UCASE(p_USER_ID) AND U.PASSWORD =
p_PASSWORD; DECLARE EXIT HANDLER FOR SQLEXCEPTION, SQLWARNING, NOT
FOUND
SET p_SQLSTATE = SQLSTATE;
VALUES (SQLSTATE) INTO p_SQLSTATE;
OPEN C1;
END P1@
Dec 17 '07 #5
OK you should NEVER get a 444 from an SQL Procedure invocation.
Please open a PMR.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Dec 17 '07 #6
On Dec 17, 11:10 am, Serge Rielau <srie...@ca.ibm.comwrote:
OK you should NEVER get a 444 from an SQL Procedure invocation.
Please open a PMR.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
My thoughts go like this:

I got the free version 9.5 as Express-C. I could buy a license and
then submit a PMR. Why should I pay $2300 (the cost of a license) for
the privilege of submitting a PMR? I have already spent many hours,
which means many $.

I paid full fare for V8 WSE. Why not revert to that version (with
highest fixpack) and wait until IBM figures out what's wrong and fixes
it? Since I can't be the only one with this problem, why should I
alone pay IBM to fix its own problem?

I'm going to try one more thing: a third-party ODBC driver. If that
doesn't work then I'm back to V8.max and wait until I hear that IBM
has solved the problem. I want the features advertised for V9.5, but
I can't afford to personally cause them to be available.

SS
Dec 18 '07 #7
<28******@gmail.comwrote in message
news:96**********************************@l1g2000h sa.googlegroups.com...
My thoughts go like this:

I got the free version 9.5 as Express-C. I could buy a license and
then submit a PMR. Why should I pay $2300 (the cost of a license) for
the privilege of submitting a PMR? I have already spent many hours,
which means many $.

I paid full fare for V8 WSE. Why not revert to that version (with
highest fixpack) and wait until IBM figures out what's wrong and fixes
it? Since I can't be the only one with this problem, why should I
alone pay IBM to fix its own problem?

I'm going to try one more thing: a third-party ODBC driver. If that
doesn't work then I'm back to V8.max and wait until I hear that IBM
has solved the problem. I want the features advertised for V9.5, but
I can't afford to personally cause them to be available.

SS
Is 9.5 GA yet? If not, the DB2 Express-C version should probably be
considered beta code. Even if it is GA, any problems with the free version
of DB2 Express-C version should be reported on the DB2 Express-C forum (on
IBM website) and I suspect that the IBM people who run the forum will
forward that to development. It probably will not hurt to do some name
dropping when you post on that forum (Serge).
Dec 18 '07 #8
Mark A wrote:
Is 9.5 GA yet?
Hmpf!
If not, the DB2 Express-C version should probably be
considered beta code. Even if it is GA, any problems with the free version
of DB2 Express-C version should be reported on the DB2 Express-C forum (on
IBM website) and I suspect that the IBM people who run the forum will
forward that to development.
Yes. Express C has forum support.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Dec 18 '07 #9
On Dec 17, 9:13 pm, Serge Rielau <srie...@ca.ibm.comwrote:
Mark A wrote:
Is 9.5 GA yet?

Hmpf!
If not, the DB2 Express-C version should probably be
considered beta code. Even if it is GA, any problems with the free version
of DB2 Express-C version should be reported on the DB2 Express-C forum (on
IBM website) and I suspect that the IBM people who run the forum will
forward that to development.

Yes. Express C has forum support.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Reply to Serge and Mark:

<<From Mark A. -- should be reported on the DB2 Express-C forum (on
IBM website) and I suspect that the IBM people who run the forum will
forward that to development. It probably will not hurt to do some
name
dropping when you post on that forum (Serge). >>
<<and answered from Serge: Yes. Express C has forum support.>>

So who forwards this, and how does one get results?

C'mon guys, I'm nobody. You're somebody. Why are the somebodies not
doing something for the nobody?!?

SS
Dec 18 '07 #10
"Serge Rielau" <sr*****@ca.ibm.comwrote in message
news:5s*************@mid.individual.net...
Hmpf!
Sorry, my DB2 databases process real-time credit card authorizations. I
don't keep up with brand new releases.
Dec 18 '07 #11
<28******@gmail.comwrote in message
news:91**********************************@s12g2000 prg.googlegroups.com...
So who forwards this, and how does one get results?

C'mon guys, I'm nobody. You're somebody. Why are the somebodies not
doing something for the nobody?!?

SS
I am nobody (customer) also, plus we don't own any V9 licenses.

Register on this forum and post your problem. Mention that Serge read your
original post on the comp.databases.ibm-db2 newsgroup and he told you to
open a PMR.
http://www.ibm.com/developerworks/fo...pa?forumID=805
Dec 18 '07 #12
28******@gmail.com wrote:
On Dec 17, 9:13 pm, Serge Rielau <srie...@ca.ibm.comwrote:
>Mark A wrote:
>>Is 9.5 GA yet?
Hmpf!
>>If not, the DB2 Express-C version should probably be
considered beta code. Even if it is GA, any problems with the free version
of DB2 Express-C version should be reported on the DB2 Express-C forum (on
IBM website) and I suspect that the IBM people who run the forum will
forward that to development.
Yes. Express C has forum support.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

Reply to Serge and Mark:

<<From Mark A. -- should be reported on the DB2 Express-C forum (on
IBM website) and I suspect that the IBM people who run the forum will
forward that to development. It probably will not hurt to do some
name
dropping when you post on that forum (Serge). >>
<<and answered from Serge: Yes. Express C has forum support.>>

So who forwards this, and how does one get results?
The forum is moderated by three guys just as (in) competent as I am:
Ryan, Ian and Raul.
C'mon guys, I'm nobody. You're somebody. Why are the somebodies not
doing something for the nobody?!?
Ryan, Ian, and Raul are the paid somebodies to help your nobodyness.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Dec 18 '07 #13

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

Similar topics

3
by: Gary Smith | last post by:
Aloha, Can anyone tell me why this works in safari, Netscape, msie 5.x Mac but not msie6 windows? There is supposed to be a green stripe, a yellow box, a red box, and another green stripe all on...
4
by: astro | last post by:
I've been looking at the event sinking example in Litwin et. al. "Access 97 Developer's Handbook" and I am able to event sink the 2 events listed - those being the "_quit" and "_documentchange"...
2
by: learn_remoting | last post by:
Hello, I am trying to understand the details of .net remoting. There are so many different kinds of sinks .... which have left me totally confused. TerminatorSinks, ContextSinks, MessageSinks,...
5
by: Bill Davidson | last post by:
Hello All: I've got a question about synchronization requiremements in a C# worker thread procedure that, among other things, sinks events from outside sources. I realize the worker thread will...
1
by: Bill Davidson | last post by:
(RESEND: I added a little more code to the sample for clarity) Hello All: I've got a question about synchronization requiremements in a C# worker thread procedure that, among other things,...
10
by: Dimsion | last post by:
Hi everyone, I have been using VB5/VB6 and loving it but since my upgrade/new installation to VS.net 2003 and even the new VB.net 2005 beta 1. The GUI design is very slow and generic looking....
6
by: fshawish | last post by:
Hello all, I have a C# Class Lib that exposes a public events, methods and properties. I am referencing this ClassLib from an MFC DIalog app that is compiled with /CLR. I use gcroot<T> to...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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
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: 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:
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.