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 » Access Oracle or DB2 Depending on where the flow is deployed

Post new topic  Reply to topic
 Access Oracle or DB2 Depending on where the flow is deployed « View previous topic :: View next topic » 
Author Message
pawargmat
PostPosted: Tue May 03, 2005 8:03 am    Post subject: Access Oracle or DB2 Depending on where the flow is deployed Reply with quote

Novice

Joined: 13 Feb 2004
Posts: 14

Hi,

I want to know if it is possible to check within ESQL(compute node) whether we are accessing Oracle of DB2 database.?

We use Passthrus to make Database calls. So I want to know if it is possible write something like

If database is DB2 construct sql this way or if it is Oracle construct sql in another way!.. later make a call using Passthru (sql, parameters)..

Thanks,
pg.
Back to top
View user's profile Send private message
JT
PostPosted: Tue May 03, 2005 11:06 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Can you clarify the need for developing this code? Does the database platform change as the code migrates through the various environments?

Ultimately the database platform of the data source, defined to the Compute node, is resolved through the ODBC configuration. AFAIK, there's now way programmatically for you to derive that information.

Perhaps you can encapsulate the platform-specific SQL calls within stored-procedures, and then invoke those stored-procedures from the ESQL code, regardless of the database platform. By creating a common name for the stored-procedure, the need to determine the database platform is eliminated.
Back to top
View user's profile Send private message
pawargmat
PostPosted: Thu May 05, 2005 2:21 am    Post subject: Reply with quote

Novice

Joined: 13 Feb 2004
Posts: 14

Hi,

Thanks for the reply.

The need : Flows access local Oracle database. If for some reason the local Oracle database cannot be accessed, there is a need to access central Mainframe DB2 database.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu May 05, 2005 3:06 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Code:
Try/Catch -- try --> ComputeNode (Oracle)-- -->
                 -- catch --> ComputeNode (DB2) --|

_________________
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 » Access Oracle or DB2 Depending on where the flow is deployed
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.