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.....SqlException: 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 16575 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.....SqlException: 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.....SqlException: 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*****@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.....SqlException: 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, <thatnewschema>
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*****@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.....SqlException: 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, <thatnewschema>
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:...
|
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...
|
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...
|
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...
|
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 ??...
|
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...
|
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>
...
|
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...
|
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...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
|
by: jack2019x |
last post by:
hello, Is there code or static lib for hook swapchain present?
I wanna hook dxgi swapchain present for dx11 and dx9.
|
by: DizelArs |
last post by:
Hi all)
Faced with a problem, element.click() event doesn't work in Safari browser.
Tried various tricks like emulating touch event through a function:
let clickEvent = new Event('click', {...
|
by: F22F35 |
last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...
| |