ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Configure DB2 Driver to Ignore SQL State 01003

Post new topic  Reply to topic
 Configure DB2 Driver to Ignore SQL State 01003 « View previous topic :: View next topic » 
Author Message
ReemRashwan
PostPosted: Sun Nov 14, 2021 4:07 am    Post subject: Configure DB2 Driver to Ignore SQL State 01003 Reply with quote

Novice

Joined: 09 Mar 2021
Posts: 12

Good Morning,
I am trying to retreive the data as a pivot table from a database but the operation fails with the following error:
Code:
BIP2322E: Database error: SQL State ''01003''; Native Error Code '0'; Error Text ''[IBM][CLI Driver][DB2/LINUXX8664] SQLSTATE 01003: Null values were eliminated from the argument of a column function. ''. : /build/jenkins_swg/slot2/product-build/WMB/src/DataFlowEngine/MessageServices/ImbOdbc.cpp: 4069: ImbOdbcStatement::checkRcInner: :


I searched online I found a suggestion to ignore this error in the driver.
https://www.ibm.com/support/pages/query-receives-sqlstate-01003

So I searched for 'ODBCINI' envrionemnt variable with the following command:
Code:
printenv | grep odbc


I opened the file and inserted the following to lines under my specific driver instaza:
Code:
IGNOREWARNINGS=1
IGNOREWARNLIST = "'01003'"


odbc.ini now is as the following:
Code:
[placeHolder]
Driver=placeHolder/libdb2o.so
Description=IBM DB2 ODBC Database
Database=placeHolder
HostName=placeHolder
PortNumber=placeHolder
User=placeHolder
Password=placeHolder
IGNOREWARNINGS=1
IGNOREWARNLIST = "'01003'"


Note: placeHolder is just a mask


I restarted the broker, restarted the server and deleted and redeployed the application but nothing worked

I tried to modify the "libdb2o.so" file listed in odbc.ini in driver property but it as a binary file.

Any suggestions for driver modification? Am I modifying the wrong file?
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Mon Nov 15, 2021 12:31 am    Post subject: Reply with quote

Knight

Joined: 17 Jul 2017
Posts: 516
Location: UK

hi...that link is asking to add those entries at db2cli.ini file and not at odbc.ini

Quote:
The solution is to add the following two entries into the db2cli.ini file that the application is using:

IGNOREWARNINGS=1
IGNOREWARNLIST = "'01003'"


you can find the db2cli.ini file under the DB2 installation folder,
https://www.ibm.com/support/pages/procedure-capturing-db2-cli-trace-ibm-integration-bus
Back to top
View user's profile Send private message
ReemRashwan
PostPosted: Mon Nov 15, 2021 12:40 am    Post subject: Reply with quote

Novice

Joined: 09 Mar 2021
Posts: 12

abhi_thri wrote:
hi...that link is asking to add those entries at db2cli.ini file and not at odbc.ini

I will search for it and I will feed you back
Back to top
View user's profile Send private message
ReemRashwan
PostPosted: Mon Nov 15, 2021 1:56 am    Post subject: Reply with quote

Novice

Joined: 09 Mar 2021
Posts: 12

Quote:

you can find the db2cli.ini file under the DB2 installation folder,
https://www.ibm.com/support/pages/procedure-capturing-db2-cli-trace-ibm-integration-bus


I can't find it anywhere in the system
I used the following command to find db2 installation location:

Code:
whereis db2

assuming db2 is under /sqllib/bin/, I navigated to /sqllib/cfg/ and I only found db2cli.ini.sample but not db2cli.ini.
I searched for the db2cli.ini using:
Code:
locate db2cli.ini

but there is no such file in the system, only db2cli.ini.sample in different locations.
I found multiple db2cli (without .ini) but they don't seem to be text files.

Any suggestions?
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Mon Nov 15, 2021 3:50 am    Post subject: Reply with quote

Knight

Joined: 17 Jul 2017
Posts: 516
Location: UK

ReemRashwan wrote:

assuming db2 is under /sqllib/bin/, I navigated to /sqllib/cfg/ and I only found db2cli.ini.sample but not db2cli.ini.


hi...see below link,

https://www.ibm.com/docs/en/db2/9.7?topic=keywords-db2cliini-initialization-file

Quote:
you can create a db2cli.ini file that is based on the db2cli.ini.sample file and place the db2cli.ini file in the same location as the db2cli.ini.sample file. The db2cli.ini.sample file location is the default location from which the db2cli.ini file is read
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Configure DB2 Driver to Ignore SQL State 01003
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.