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 » SQL Error

Post new topic  Reply to topic
 SQL Error « View previous topic :: View next topic » 
Author Message
CHAK DE
PostPosted: Thu Sep 27, 2007 5:48 am    Post subject: SQL Error Reply with quote

Novice

Joined: 27 Sep 2007
Posts: 10

Hi,
I am new to WBIMB and I am testing a message flow to retrieve data from a table in SAMPLE database on the same server which hosts the broker.
I am getting the errors during runtime as below :

Database error: ODBC return code '-1'. :


Database error: SQL State 'HY009'; Native Error Code '-99999'; Error Text '[IBM][CLI Driver] CLI0124E Invalid argument value. SQLSTATE=HY009'. :


Can anyone please help me out?My code is as below:

CREATE PROCEDURE GetData() BEGIN
SET OutputRoot.XML.Data.Result[] = (SELECT T.EMPID, T.NAME, T.DESIGNATION FROM Database.SAMPLE.INFO AS T);
END;
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Sep 27, 2007 5:55 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Platform? Level of WMB? Database?

How is your data source configured?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
CHAK DE
PostPosted: Thu Sep 27, 2007 6:09 am    Post subject: SQL Error Reply with quote

Novice

Joined: 27 Sep 2007
Posts: 10

Platform -Redhat Linux 2.4 i386
WMB Verison-6
I configured the data source by modifying the odbc.ini file as below:

[ODBC Data Sources]
WBRKBKDB=IBM DB2 ODBC Driver
MYDB=IBM DB2 ODBC Driver
ORACLEDB=DataDirect 5.0 Oracle
SYBASEDB=DataDirect 5.0 Sybase Wire Protocol
SQLSERVERDB=DataDirect 5.0 SQL Server Wire Protocol
SAMPLE=IBM DB2 ODBC Driver

[WBRKBKDB]
Driver=/opt/IBM/db2/V8.1/lib/libdb2.so
Description=MQSIBKDB DB2 ODBC Database
Database=WBRKBKDB

[SAMPLE]
Driver=/opt/IBM/db2/V8.1/lib/libdb2.so
Description=SAMPLE DATABASE
Database=SAMPLE

I also set the path for environemnt variables ODBCINI and LD_LIBRARY_PATH AS BELOW:

echo $LD_LIBRARY_PATH
/home/db2inst1/sqllib/lib

echo $ODBCINI
/var/mqsi/odbc/.odbc.ini


Did I miss anything?Please help as I am unable to find out the cause of error.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 27, 2007 6:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What properties have you set on the Compute node that is calling GetData()?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 27, 2007 2:35 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Did you set LD_LIBRARY_PATH64 for the DB2 64 bit libraries.?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Sep 27, 2007 2:53 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

fjb_saper wrote:
Did you set LD_LIBRARY_PATH64 for the DB2 64 bit libraries.?


Broker wouldn't be running otherwise...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
CHAK DE
PostPosted: Thu Sep 27, 2007 10:31 pm    Post subject: SQL Error Reply with quote

Novice

Joined: 27 Sep 2007
Posts: 10

What properties have you set on the Compute node that is calling GetData()?

BASIC:
DataSource:SAMPLE
Transaction:Automatic
ComputMode:Message
Treat Warning as Error
Throw exception on database error


Did you set LD_LIBRARY_PATH64 for the DB2 64 bit libraries.?

I have set the LD_LIBRARY_PATH only not LD_LIBRARY_PATH64 .
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Sep 28, 2007 3:56 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Turn off Treat Warning as Error.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
CHAK DE
PostPosted: Tue Oct 02, 2007 10:03 pm    Post subject: Exception in Time Out Notification Node Reply with quote

Novice

Joined: 27 Sep 2007
Posts: 10

The previous issue is resolved,it was due to missing MQMD part in ESQL code Compute Node.Now the issue I am facing is though I have configured the timeinterval property in time out notification node to be 10 seconds,the message flow is getting triggered at every 1 second .I mean the destination database table is getting updated every 1 second.
I changed the timeinterval to be 120 seconds,but still then the message flow is getting triggered every 40 seconds.
Can anyone please tell me why this is happening?Please suggest.
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 » SQL Error
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.