Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: DB2 SQL Error: SQLCODE=-440, SQLSTATE=42884

$
0
0
Author: kishpra
Subject: DB2 SQL Error: SQLCODE=-440, SQLSTATE=42884
Posted: Sat Feb 18, 2017 2:31 am (GMT 5.5)

Hello Team,

My Java application is trying to call a Native SQL stored procedure AA400400 which is using a DB2 table.

When calling that stored procedure, we are getting the below error in Java application logs:

[0m[0m10:49:31,261 INFO [stdout] (http-/10.1.109.2:8443-1) DB2 SQL Error: SQLCODE=-440, SQLSTATE=42884, SQLERRMC=PROCEDURE;AA400400 DRIVER=4.14.113

My application connection URL in standalone file:
<connection-url> jdbc:db2://TZZSST.zpc.us.com:1330/TZZDB2T:currentSchema=TZZ1;resultSetHoldability=2;
</connection-url>

Application call to stored procedure
Call AA400400(NULL,NULL);

It does not points to correct schema TZZ1 and we can see the stored proc running in different schema i.e. SYSPROC.

We updated the connection URL as:
<connection-url> jdbc:db2://TZZSST.zpc.us.com:1330/TZZDB2T:currentSchema=TZZ1;currentFunctionPath="SYSIBM","SYSFUN","SYSPROC","SYSIBMADM","TZZ1";resultSetHoldability=2;
</connection-url>

But it still runs under SYSPROC.

Then we changed the connection URL as below:
<connection-url> jdbc:db2://TZZSST.zpc.us.com:1330/TZZDB2T:currentSchema=TZZ1;currentFunctionPath="TZZ1","SYSFUN","SYSPROC","SYSIBMADM","SYSIBM";resultSetHoldability=2;
</connection-url>

But still getting -440.

Please advise.

Thanks.
_________________
COBOL,JCL,VSAM,CICS,DB2


Viewing all articles
Browse latest Browse all 8500

Trending Articles