I have v8.1 fix 5 installed on windows 2k.
I compiled a stored procedure in development environment, then used
the get routine command to generate the file.
I transferred the file to second test environment with same fixpack
level, but no compiler or development environment installed.
I issued put routine in second test environment and command succeeded
but when i try and run the stored proc with call command, db2 comes
back with sql0444 reason code 4 with reference to function pgmjmp
which i beleive is called from sqlutil.h.
I tried copying sqlutil.h into include directory in second test
environment but got the same result.
Can somebody explain what the fix is?
Thanks 5 3919
JS wrote: I have v8.1 fix 5 installed on windows 2k. I compiled a stored procedure in development environment, then used the get routine command to generate the file. I transferred the file to second test environment with same fixpack level, but no compiler or development environment installed. I issued put routine in second test environment and command succeeded but when i try and run the stored proc with call command, db2 comes back with sql0444 reason code 4 with reference to function pgmjmp which i beleive is called from sqlutil.h. I tried copying sqlutil.h into include directory in second test environment but got the same result. Can somebody explain what the fix is?
sqlutil.h is just a header file and has nothing to do with libraries being
loaded or functions within such libraries being called.
The reason code 4 of SQL0444 tells you that the library that implements the
stored procedure could not be found. Have you verified that the library
(whose name was given in the error message) actually exists on the second
system?
What language (Java, SQL, C) is used to write the procedure?
What do you have in the db2diag.log file?
--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Knut Stolze <st****@de.ibm.com> wrote in message news:<cf**********@fsuj29.rz.uni-jena.de>... JS wrote:
I have v8.1 fix 5 installed on windows 2k. I compiled a stored procedure in development environment, then used the get routine command to generate the file. I transferred the file to second test environment with same fixpack level, but no compiler or development environment installed. I issued put routine in second test environment and command succeeded but when i try and run the stored proc with call command, db2 comes back with sql0444 reason code 4 with reference to function pgmjmp which i beleive is called from sqlutil.h. I tried copying sqlutil.h into include directory in second test environment but got the same result. Can somebody explain what the fix is? sqlutil.h is just a header file and has nothing to do with libraries being loaded or functions within such libraries being called.
Yes, understood, I copied it there because the .c file generated by
the create procedure statement made reference to SQL_API_RC which is
in that header, so I'm just trying anything! The reason code 4 of SQL0444 tells you that the library that implements the stored procedure could not be found. Have you verified that the library (whose name was given in the error message) actually exists on the second system?
Yes I have, as I said, the put routine succeeded so the dll and the
log file was created in the correct place.
What language (Java, SQL, C) is used to write the procedure?
Language SQL What do you have in the db2diag.log file?
The log file indicates that the dbm cannot find the dll in the
expected place using the UNC path variable associated with
db2instprof, however, the dll is definately there and disappears when
the procedure is dropped.
Any ideas?
JS wrote: Knut Stolze <st****@de.ibm.com> wrote in message news:<cf**********@fsuj29.rz.uni-jena.de>... JS wrote:
> I have v8.1 fix 5 installed on windows 2k. > I compiled a stored procedure in development environment, then used > the get routine command to generate the file. > I transferred the file to second test environment with same fixpack > level, but no compiler or development environment installed. > I issued put routine in second test environment and command succeeded > but when i try and run the stored proc with call command, db2 comes > back with sql0444 reason code 4 with reference to function pgmjmp > which i beleive is called from sqlutil.h. > I tried copying sqlutil.h into include directory in second test > environment but got the same result. > Can somebody explain what the fix is?
sqlutil.h is just a header file and has nothing to do with libraries being loaded or functions within such libraries being called. Yes, understood, I copied it there because the .c file generated by the create procedure statement made reference to SQL_API_RC which is in that header, so I'm just trying anything! The reason code 4 of SQL0444 tells you that the library that implements the stored procedure could not be found. Have you verified that the library (whose name was given in the error message) actually exists on the second system?
Yes I have, as I said, the put routine succeeded so the dll and the log file was created in the correct place.
What language (Java, SQL, C) is used to write the procedure? Language SQL What do you have in the db2diag.log file? The log file indicates that the dbm cannot find the dll in the expected place using the UNC path variable associated with db2instprof, however, the dll is definately there and disappears when the procedure is dropped. Any ideas?
Hard to tell. Could you set the diaglevel to 4, run the failing CALL
statement again and then post the relevant content of the db2diag.log?
Just some other ideas:
Have you checked the privileges on all the directories and the library
itself?
The transferred lib on the second system, has it the very same size as on
the development system?
You might also want to contact IBM support.
--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Knut Stolze <st****@de.ibm.com> wrote in message news:<cf**********@fsuj29.rz.uni-jena.de>... JS wrote:
Knut Stolze <st****@de.ibm.com> wrote in message news:<cf**********@fsuj29.rz.uni-jena.de>... JS wrote:
> I have v8.1 fix 5 installed on windows 2k. > I compiled a stored procedure in development environment, then used > the get routine command to generate the file. > I transferred the file to second test environment with same fixpack > level, but no compiler or development environment installed. > I issued put routine in second test environment and command succeeded > but when i try and run the stored proc with call command, db2 comes > back with sql0444 reason code 4 with reference to function pgmjmp > which i beleive is called from sqlutil.h. > I tried copying sqlutil.h into include directory in second test > environment but got the same result. > Can somebody explain what the fix is?
sqlutil.h is just a header file and has nothing to do with libraries being loaded or functions within such libraries being called. Yes, understood, I copied it there because the .c file generated by the create procedure statement made reference to SQL_API_RC which is in that header, so I'm just trying anything! The reason code 4 of SQL0444 tells you that the library that implements the stored procedure could not be found. Have you verified that the library (whose name was given in the error message) actually exists on the second system?
Yes I have, as I said, the put routine succeeded so the dll and the log file was created in the correct place.
What language (Java, SQL, C) is used to write the procedure? Language SQL What do you have in the db2diag.log file? The log file indicates that the dbm cannot find the dll in the expected place using the UNC path variable associated with db2instprof, however, the dll is definately there and disappears when the procedure is dropped. Any ideas?
Hard to tell. Could you set the diaglevel to 4, run the failing CALL statement again and then post the relevant content of the db2diag.log?
It already is at 4, thats where I got the above message.
Just some other ideas: Have you checked the privileges on all the directories and the library itself?
This is Windows 2000 AS, we dont assign specific security to any db2
folders. The transferred lib on the second system, has it the very same size as on the development system?
When you say lib, could you be more specific? Which folder are you
referring to, sqllib\include? or the folder which contains the dll? You might also want to contact IBM support.
Yes, if I can't get it resolved here I probably will do that
JS wrote: >> What do you have in the db2diag.log file? > The log file indicates that the dbm cannot find the dll in the > expected place using the UNC path variable associated with > db2instprof, however, the dll is definately there and disappears when > the procedure is dropped. > Any ideas? Hard to tell. Could you set the diaglevel to 4, run the failing CALL statement again and then post the relevant content of the db2diag.log? It already is at 4, thats where I got the above message.
Well, what's the exact error message then? Just some other ideas: Have you checked the privileges on all the directories and the library itself?
This is Windows 2000 AS, we dont assign specific security to any db2 folders.
As far as I know, Windows has privileges for files and directories (at least
if you use NTFS). So you really might want to check those privileges.
The transferred lib on the second system, has it the very same size as on the development system?
When you say lib, could you be more specific? Which folder are you referring to, sqllib\include? or the folder which contains the dll?
With "lib" I mean "library" i.e. dll. The library that implements the
procedure that is to be called.
--
Knut Stolze
Information Integration
IBM Germany / University of Jena This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: subaga |
last post by:
Hi,
I restored a database from AIX machine to a sun machine. The restore
was fine. But, when i try executing stored procedures through my CLI
application, I am getting error sql0444 reason code...
|
by: A1 Ronen |
last post by:
Hi all
I got problem regarding executing all stored procedure through
common procedures where we have different parameter with different
names, type and data type
The Function is as follows...
|
by: staeri |
last post by:
When I execute a stored procedure with the following code it takes
forever and result in a timeout or a hang:
Sub TransformData()
Dim myConnection As New SqlConnection(ConnectionString)
Dim...
|
by: Goog79 |
last post by:
Hi everyone,
first time here, so I'm sorry if this has been covered already ages
ago. :(
I am trying to learn T-SQL and Stored Procedures and bought the book
on these topics by Djan...
|
by: jed |
last post by:
I have created this example in sqlexpress
ALTER PROCEDURE .
@annualtax FLOAT
AS
BEGIN
SELECT begin1,end1,deductedamount,pecentageextra
FROM tax
|
by: raylopez99 |
last post by:
Keep in mind this is my first compiled SQL program Stored Procedure
(SP), copied from a book by Frasier Visual C++.NET in Visual Studio
2005 (Chap12). So far, so theory, except for one bug...
|
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...
|
by: vivsriaus |
last post by:
I get this error:
Line 1: Incorrect syntax near '.'
when executing my stored procedure:
ALTER PROCEDURE Test
(
@Func VarChar(100)
)
|
by: acw |
last post by:
On a SQL Server 2000 db I would like to setup a stored procedure that
accesses couple tables and runs the extended stored procedure
xp..cmdshell. The goal is to grant users with limited privileges...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
|
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...
| |