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 » ODBC and Configurable service

Post new topic  Reply to topic
 ODBC and Configurable service « View previous topic :: View next topic » 
Author Message
Gideon
PostPosted: Mon Jul 11, 2011 2:27 pm    Post subject: ODBC and Configurable service Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I am using WMB 7 on Linux

I made some progress, reading the following link: (I still do not have class approval)

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

I wrote the following 2 files:

Code:
; odbc.ini
[ODBC Data Sources]
IPC=IBM DB2 ODBC DRIVER

[IPC]
Driver=IPC_DB
Description=IPC DB2 ODBC Database


Code:
; odbcinist.ini
[IPC_DB]
Driver=/home/db2inst1/sqllib/lib/libdb2.so

[ODBC]
;# To turn on ODBC trace set Trace=1
Trace=0
TraceOptions=3
TraceFile=/tmp/db2/odbctrace.out
TraceDll=/opt/ibm/mqsi/7.0/ODBC/V6.0/lib/odbctrac.so
InstallDir=/opt/ibm/mqsi/7.0/ODBC/V6.0
UseCursorLib=0
IANAAppCodePage=4
UNICODE=UTF-8

Now I want to create a configurable service, The following link says "You must create connections from the broker to the user database using ODBC or JDBC."

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

I read the following link on how to create a configurable service

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

However, When I try to create a Configurable service, I have the following options of the 'Type' of configurable server:

Code:
Aggregation
CICSConnection
CORBA
Collector
FtpServer
JDBCProviders
JMSProviders
JavaClassLoader
PeopleSoftConnection
Resequence
SAPConnection
SMTP
SIebleCOnnection
TCPIPClient
TCPIPServer
Timer

There is no ODBC 'Type'.

How do you create a ODBC configurable service?
Back to top
View user's profile Send private message Send e-mail
rglack10
PostPosted: Mon Jul 11, 2011 10:44 pm    Post subject: Re: ODBC and Configurable service Reply with quote

Apprentice

Joined: 06 Jul 2011
Posts: 34

Gideon wrote:
I am using WMB 7 on Linux

I made some progress, reading the following link: (I still do not have class approval)

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

I wrote the following 2 files:

Code:
; odbc.ini
[ODBC Data Sources]
IPC=IBM DB2 ODBC DRIVER

[IPC]
Driver=IPC_DB
Description=IPC DB2 ODBC Database


Code:
; odbcinist.ini
[IPC_DB]
Driver=/home/db2inst1/sqllib/lib/libdb2.so

[ODBC]
;# To turn on ODBC trace set Trace=1
Trace=0
TraceOptions=3
TraceFile=/tmp/db2/odbctrace.out
TraceDll=/opt/ibm/mqsi/7.0/ODBC/V6.0/lib/odbctrac.so
InstallDir=/opt/ibm/mqsi/7.0/ODBC/V6.0
UseCursorLib=0
IANAAppCodePage=4
UNICODE=UTF-8

Now I want to create a configurable service, The following link says "You must create connections from the broker to the user database using ODBC or JDBC."

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

I read the following link on how to create a configurable service

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

However, When I try to create a Configurable service, I have the following options of the 'Type' of configurable server:

Code:
Aggregation
CICSConnection
CORBA
Collector
FtpServer
JDBCProviders
JMSProviders
JavaClassLoader
PeopleSoftConnection
Resequence
SAPConnection
SMTP
SIebleCOnnection
TCPIPClient
TCPIPServer
Timer

There is no ODBC 'Type'.

How do you create a ODBC configurable service?


wouldn't that be with the mqsisetdbparms command? as long as your odbc.ini file is correct and your tnsnames.ora etc...
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jul 12, 2011 5:00 am    Post subject: Re: ODBC and Configurable service Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Gideon wrote:
I am using WMB 7 on Linux

I made some progress, reading the following link: (I still do not have class approval)

There is no ODBC 'Type'.
How do you create a ODBC configurable service?


Well, I'm proud of you for requesting the class.

Step 1. mqsisetdbparms <brokername> -n <DB2 instance name> -u <service_id> -p <password>

Step 2. mqsicvp -n <DB2 instance name> -u <service_id> -p <password>
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Gideon
PostPosted: Tue Jul 12, 2011 10:00 am    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I appreciate the help

One question: Can WMB connect to a remote database through the DB2 client

In other words is there a requirement that the DB reside on the same machine as WMB, as WMQ must reside on the same machine as WMB ?
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Tue Jul 12, 2011 10:20 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

This question has been answered many times before. It is also covered in the documentation.
How about:-
http://www.mqseries.net/phpBB2/viewtopic.php?t=55320 for starters.

your original question is also answered by a simple search.

This one -> http://www.mqseries.net/phpBB/viewtopic.php?p=76379, dating from 2004 would even help your first question if you were running the broker on Windows.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Gideon
PostPosted: Tue Jul 12, 2011 5:53 pm    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I read the links in the preceding post, they were very helpful.

I read one statement that surprised me:

Quote:
The broker makes connections via ODBC and, in the case of DB2, the ODBC driver always connects to the database, be it local or remote, via the DB2 client.
So, first a DB2 client definition (i.e. an 'alias') for the remote database must be made and then an ODBC definition made which points to the database alias.


Does this mean that on a machine (say Linux), that I have both a WMB and DB2 database installed, I still need to have a DB2 client installed to connect with the locally hosted database ??? Did I understand that correctly?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ODBC and Configurable service
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.