If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SQL30090N while running stored proc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-22-11, 03:40
crisjul crisjul is offline
Registered User
 
Join Date: Sep 2011
Posts: 1
SQL30090N while running stored proc

Hi,

I am running a stored procedure which in turn calls another stored procedure (the called proc does some insert into DB2 tables).
Now, this call statement goes fine.

But following this there is an insert statement (insert into a DB2 table), this is where I get the following error:

Exception occurred while running:
A database manager error occurred.SQLCODE: -438, SQLSTATE: 25000 - DB2 SQL Error: SQLCODE=-438, SQLSTATE=25000,
SQLERRMC=SQL30090N Operation invalid for application execution environment


e.g., if proc1 calls proc2, proc1 has something like this:

call proc2 (input parameters)
insert into table1(field1, ...,fieldn)
values (field1,..,fieldn)


When I try running the call statement alone, the procedure runs good.
When I run the insert statement alone, the insert into table goes fine.
But the error occurs only when I have the call statement followed by the insert.

It will be great if someone can throw some light on the reason for this error.

Thanks.

Last edited by crisjul; 09-22-11 at 03:43.
Reply With Quote
  #2 (permalink)  
Old 09-22-11, 04:32
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
are some of the involved tables : nicknames ?
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On