All, we are trying to create and execute our stored procs on db2 ver
8.1 fp5. This is a new database that we setup and are having some
trouble. When I try and run the stored proc from the db2 command line,
I get the following error:
SQL0440N No authorized routine named "XXX" of type
"PROCEDURE" having compatible arguments was found. SQLSTATE=42884
When the application (java) tries to execute the sp. we see the
following error:
com.ibm.db2.jcc .c.....SqlExcep tion: DB2 SQL error: SQLCODE: -444,
SQLSTATE: 42724, SQLERRMC:
We have checked to make sure that:
- the schema exists
- the SP exists
- user executing the sp has execute permissions on the proc
- the user also has insert/update/delete rights on the table being
accessed in the sp
Please note that this is happening for all our stored procs.
Thanks! 4 16688 sh*****@austin. rr.com wrote: All, we are trying to create and execute our stored procs on db2 ver 8.1 fp5. This is a new database that we setup and are having some trouble. When I try and run the stored proc from the db2 command line, I get the following error:
SQL0440N No authorized routine named "XXX" of type "PROCEDURE" having compatible arguments was found. SQLSTATE=42884
When the application (java) tries to execute the sp. we see the following error:
com.ibm.db2.jcc .c.....SqlExcep tion: DB2 SQL error: SQLCODE: -444, SQLSTATE: 42724, SQLERRMC:
We have checked to make sure that:
- the schema exists - the SP exists - user executing the sp has execute permissions on the proc - the user also has insert/update/delete rights on the table being accessed in the sp
Please note that this is happening for all our stored procs.
Thanks!
The number one reason for unexpected -440 is that the proc has a
CHAR() or SMALLINT argument and literals are provided (which are
VARCHAR() and INTEGER respectively).
Use CAST('hello' AS CHAR(..)) and CAST(1 AS SMALLINT) as required.
Once we get the -440 out of teh way let's look at the -444.
Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
FYI...The same stored procs work on another database, same version. The
only thing that we changed when we created this new database, was the
schema. Any thoughts on that?
Serge Rielau wrote: sh*****@austin. rr.com wrote: All, we are trying to create and execute our stored procs on db2
ver 8.1 fp5. This is a new database that we setup and are having some trouble. When I try and run the stored proc from the db2 command
line, I get the following error:
SQL0440N No authorized routine named "XXX" of type "PROCEDURE" having compatible arguments was found. SQLSTATE=42884
When the application (java) tries to execute the sp. we see the following error:
com.ibm.db2.jcc .c.....SqlExcep tion: DB2 SQL error: SQLCODE: -444, SQLSTATE: 42724, SQLERRMC:
We have checked to make sure that:
- the schema exists - the SP exists - user executing the sp has execute permissions on the proc - the user also has insert/update/delete rights on the table being accessed in the sp
Please note that this is happening for all our stored procs.
Thanks! The number one reason for unexpected -440 is that the proc has a CHAR() or SMALLINT argument and literals are provided (which are VARCHAR() and INTEGER respectively). Use CAST('hello' AS CHAR(..)) and CAST(1 AS SMALLINT) as required. Once we get the -440 out of teh way let's look at the -444.
Cheers Serge
-- Serge Rielau DB2 SQL Compiler Development IBM Toronto Lab sh*****@austin. rr.com wrote: FYI...The same stored procs work on another database, same version. The only thing that we changed when we created this new database, was the schema. Any thoughts on that?
Serge Rielau wrote:
sh*****@austi n.rr.com wrote:
All, we are trying to create and execute our stored procs on db2 ver 8.1 fp5. This is a new database that we setup and are having some trouble. When I try and run the stored proc from the db2 command line, I get the following error:
SQL0440N No authorized routine named "XXX" of type "PROCEDURE " having compatible arguments was found. SQLSTATE=42884
When the application (java) tries to execute the sp. we see the following error:
com.ibm.db2. jcc.c.....SqlEx ception: DB2 SQL error: SQLCODE: -444, SQLSTATE: 42724, SQLERRMC:
We have checked to make sure that:
- the schema exists - the SP exists - user executing the sp has execute permissions on the proc - the user also has insert/update/delete rights on the table being accessed in the sp
Please note that this is happening for all our stored procs.
Thanks!
The number one reason for unexpected -440 is that the proc has a CHAR() or SMALLINT argument and literals are provided (which are VARCHAR() and INTEGER respectively). Use CAST('hello' AS CHAR(..)) and CAST(1 AS SMALLINT) as required. Once we get the -440 out of teh way let's look at the -444.
Cheers Serge
-- Serge Rielau DB2 SQL Compiler Development IBM Toronto Lab
SET PATH = CURRENT PATH, <thatnewschem a>
Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Thank you we figured out our issue. We were using a type 4 driver
instead of a type 2 driver to connect!
Serge Rielau wrote: sh*****@austin. rr.com wrote: FYI...The same stored procs work on another database, same version.
The only thing that we changed when we created this new database, was
the schema. Any thoughts on that?
Serge Rielau wrote:
sh*****@austi n.rr.com wrote:
All, we are trying to create and execute our stored procs on db2
ver
8.1 fp5. This is a new database that we setup and are having some trouble. When I try and run the stored proc from the db2 command
line,
I get the following error:
SQL0440N No authorized routine named "XXX" of type "PROCEDURE " having compatible arguments was found. SQLSTATE=42884
When the application (java) tries to execute the sp. we see the following error:
com.ibm.db2. jcc.c.....SqlEx ception: DB2 SQL error: SQLCODE: -444, SQLSTATE: 42724, SQLERRMC:
We have checked to make sure that:
- the schema exists - the SP exists - user executing the sp has execute permissions on the proc - the user also has insert/update/delete rights on the table being accessed in the sp
Please note that this is happening for all our stored procs.
Thanks!
The number one reason for unexpected -440 is that the proc has a CHAR() or SMALLINT argument and literals are provided (which are VARCHAR() and INTEGER respectively). Use CAST('hello' AS CHAR(..)) and CAST(1 AS SMALLINT) as required. Once we get the -440 out of teh way let's look at the -444.
Cheers Serge
-- Serge Rielau DB2 SQL Compiler Development IBM Toronto Lab
SET PATH = CURRENT PATH, <thatnewschem a>
Cheers Serge
-- Serge Rielau DB2 SQL Compiler Development IBM Toronto Lab This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris |
last post by:
Hello everyone
I want to call a DB2 7.2 stored procedure via ADO in VC++ 7.1
It has 4 parameters, the 1st and the 4th are OUTPUT and the others are INPUT
params.
My code looks like this:
(spCMD is a Command, spCON a Connection, spRS a Resultset, and spPARAM
are Parameters)
spCMD->Name = "mySPname";
|
by: Anthony Robinson |
last post by:
I'm executing a stored procedure and getting the
SQL0440N No authorized routine named
"AMROBI2.CREATEAIMCONNECTION" of type "PROCEDURE
" having compatible arguments was found.
The schema exists, the stored procedure exists, the user executing the
procedure has execute permissions on the procedure and also has
insert, update, delete rights...
|
by: Wonderinguy |
last post by:
Hi everybody , I have been trying to execute a simple DB2 stored
Procedure from perl. But it doesn't work. Could anybody please help me
find out why this is happening :
here is my perl script that execute the SP :
<snip>
my $dbh = DBI->connect( "dbi:DB2:$database","user1","passwd1") || die
"cannot connect to db2";
my $callstmt = "CALL...
|
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 problems doing this.
I wanted to implemented a generic "Helper" class like this:
/**
* Helper
|
by: purushneel |
last post by:
Hi,
I work primarily on Oracle databases. I am trying to convert a
recursive stored procedure written in Oracle to DB2.
Does DB2 UDB v8.2 (Windows/AIX) supports recursive stored procedures ??
After some research, I found out that to call recursively in DB2, the
stored procedure should be CALLed using dynamic SQL. I am not sure
whether it...
| |
by: nikhilbhavsar |
last post by:
Hi Frnds ,
I want to debug a stored procedure.
It is written in SQL. I am using Developement center for creating
stored procedures.
I built the stored procedure with Debug option and also performed BIND
operation.
When click on Debug menu and enter the Input parameters for the stored
procedure ,
|
by: Brian Tkatch |
last post by:
Server: DB2/SUN 8.1.6
Client: DB2 Connect Personal Edition (No 11)
<URL:ftp://ftp.software.ibm.com/ps/products/db2/fixes2/english-us/db2winIA32v8/fixpak/FP11_WR21365/FP11_WR21365_CONPE.exe>
Uninstalled old version, installed new version, and am now trying to
use the CLP.
<<<<<<<<<<<<
For more detailed help, refer to the Online Reference...
|
by: dalvigirish |
last post by:
Hi,
I am new to DB2. I am trying to write a simple stored procedure, but getting the error attached below.
ERROR
==========================================================
TGT.AUDIT - Build started.
Create stored procedure returns -440.
TGT.AUDIT: 28: SQL0440N No authorized routine named "||" of type "FUNCTION" having compatible...
|
by: PJackson |
last post by:
I have a number of SQL PL stored procedures (DB2 UDB 8.2 on Windows)
that were created in the DB2 Development Center. From there I can run
them just fine.
When I use another tool (WinSQL) and attempt to run while connected to
the same UDB database:
CALL TFBUDB.SMACF_DRIVER_INFO(21264682);
I get the following message:
SQL0444N Routine...
|
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...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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.
| |