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 » How to connect 2 Different Databases through ESQL

Post new topic  Reply to topic
 How to connect 2 Different Databases through ESQL « View previous topic :: View next topic » 
Author Message
Gaya3
PostPosted: Wed Oct 21, 2009 5:34 am    Post subject: How to connect 2 Different Databases through ESQL Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

I am trying to figure out how to connect to 2 Different Database [say Oracle and DB2] through ESQL.

Let me know if there is any link.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Wed Oct 21, 2009 5:37 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

You cant cross polinate databases in the same compute node. you'll need separate compute nodes for this then you should be ok.
Back to top
View user's profile Send private message
nmaddisetti
PostPosted: Wed Oct 21, 2009 6:03 am    Post subject: Reply with quote

Centurion

Joined: 06 Oct 2004
Posts: 145

Serach for this keyword in the infocenter. I hope this will help you.

ak05620_
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Thu Oct 22, 2009 12:37 am    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

Gaya3 wrote:
I am trying to figure out how to connect to 2 Different Database [say Oracle and DB2] through ESQL.


You can not access two different(DB2, Oracle) Databases from a compute node..However you can access the two databse of same type (two oracle database, Db2 DB..). apologize, if you know latter case..
_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Back to top
View user's profile Send private message
Gaya3
PostPosted: Thu Oct 22, 2009 1:10 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

i agree, but i am confused with this statement

Quote:
FROM clause
FROM clause expressions can contain multiple database references, multiple message references, or a mixture of the two. You can join tables with tables, messages with messages, or tables with messages.
FROM clause FieldReferences can contain expressions of any kind (for example, Database.{DataSource}.{Schema}.Table1).

You can calculate a field, data source, schema, or table name at run time.


the above snippet was extracted from the below link
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ah01653_.htm
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
sirsi
PostPosted: Thu Oct 22, 2009 3:12 am    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

from a compute node you can provide only one data source name.

what the statement "FROM clause expressions can contain multiple database references" says is you can have references to multiple schemas or tables within the same DB(data source)
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Thu Oct 22, 2009 4:16 am    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

sirsi wrote:
what the statement "FROM clause expressions can contain multiple database references" says is you can have references to multiple schemas or tables within the same DB(data source)


Not really .,.Though you can specify only one DSN on compute node, you can access two databases (of same type) by mentioning the data source in the ESQL. You must specify one of the DSN on the compute node.
_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Back to top
View user's profile Send private message
nmaddisetti
PostPosted: Thu Oct 22, 2009 6:27 am    Post subject: Reply with quote

Centurion

Joined: 06 Oct 2004
Posts: 145

Just to confirm

look at the below link:

and search for "ESQL enhancements"

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac55400_.htm

And I feel above snippet is the way to connect to differnt databases.
But I really didnt tried.

Thanks,
Venkat.
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Thu Oct 22, 2009 6:42 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

nmaddisetti wrote:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac55400_.htm


I suspect you didnt mean that!

Also, I still dont believe its possible to cross polinate database types in the same compute node.
Back to top
View user's profile Send private message
sirsi
PostPosted: Thu Oct 22, 2009 7:16 am    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

hi MQEnthu, you mean I would have created different DSN to different DB's(eg:- one for Oracle, one for DB2), but I will mention only one DSN name in the compute node and I can access both DSN's inside compute node's esql? interesting... if this is possible why will IBM say you can only mention one DSN in the compute node?

may be somebody can try it out... i dont have access to diff db's...
Back to top
View user's profile Send private message
nmaddisetti
PostPosted: Thu Oct 22, 2009 7:18 am    Post subject: Reply with quote

Centurion

Joined: 06 Oct 2004
Posts: 145

Quote:
I suspect you didnt mean that!

Also, I still dont believe its possible to cross polinate database types in the same compute node.

I first apologize for the wrong link.
Here is actul link I wanted to post:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ab00025_.htm

based on the points in "ESQL enhancements" i.e

Access to multiple databases from the same Compute, JavaCompute, Database, or Filter node.

I confused and understood like we can connect to differnt databases.
Now I am clear that we cant cross polinate database types.

Thanks,
Venkat.
Back to top
View user's profile Send private message
sirsi
PostPosted: Thu Oct 22, 2009 7:27 am    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak05830_.htm
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Thu Oct 22, 2009 9:47 pm    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

sirsi wrote:
hi MQEnthu, you mean I would have created different DSN to different DB's(eg:- one for Oracle, one for DB2), but I will mention only one DSN name in the compute node and I can access both DSN's inside compute node's esql? interesting... if this is possible why will IBM say you can only mention one DSN in the compute node?


I said:

MQEnthu wrote:
you can access two databases (of same type) by mentioning the data source in the ESQL. You must specify one of the DSN on the compute node.


I did not say different DB, I said multiple DBs of same type (i.e 2 DB2 DBs..)..Mention any on DSN on compute node and while accessing in ESQL specify the appropriate DSN..
_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
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 » How to connect 2 Different Databases through ESQL
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.