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 » Problem while Querying the Oracle DB from Message Broker

Post new topic  Reply to topic
 Problem while Querying the Oracle DB from Message Broker « View previous topic :: View next topic » 
Author Message
udaya_isampalli
PostPosted: Fri Feb 09, 2007 5:33 am    Post subject: Problem while Querying the Oracle DB from Message Broker Reply with quote

Novice

Joined: 09 Feb 2007
Posts: 13

We are trying to fetch a result set from a Oracle Database table by issuing the following ESQL statement inside a message flow deployed to Message Broker V6.0

SET OutputLocalEnvironment.Variables.Values[] =
PASSTHRU ('SELECT Field1, Field2, Field3 FROM Schema.TableName WHERE
Field4 = ? AND Field5 = ?', Val_Field4, Val_Field5);

The database table has records that meet this SELECT query. But when the message flow is executed, many a times it returns no result set. There are no issues with the DSN or connectivity to Oracle from the message flow. This query returns the result set if the WHERE clause is removed. (However if this table is created in DB2 the above query always returns the result set).

Has anyone encountered this scenario, should the SELECT query be issued any differently for Oracle? Any pointers in this would be very helpful...
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Feb 09, 2007 5:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

That PASSTHRU syntax might not be what you think it is.

Secondly, it's entirely possible that your Values aren't what you think they are when the query is run.
_________________
I am *not* the model of the modern major general.
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 » Problem while Querying the Oracle DB from Message Broker
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.