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 » DB2 9.5 Connect error from WMB 8 using ODBC

Post new topic  Reply to topic
 DB2 9.5 Connect error from WMB 8 using ODBC « View previous topic :: View next topic » 
Author Message
shalabh1976
PostPosted: Thu Sep 12, 2013 11:44 pm    Post subject: DB2 9.5 Connect error from WMB 8 using ODBC Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Returning to WMB after a long time.
OS : Win 7 Pro
WMB: V8.0
DB2: Enterprise Server V9.5
ODBC test connect works if I use odbcad32 in C:\Windows\SysWOW64
IBM DB2 ODBC driver does not exist/cannot be seen in default ODBC screen(Start->Administrative Tools->ODBC).
Now I setup a test message flow to access my TEST DB2 database using ODBC via compute node.
I get the following error :
[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

mqsisetdbparms has also been run.
I think there is a problem/mismatch between the 64 bit OS and the 32 bit driver. Any known workarounds ?
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
smdavies99
PostPosted: Thu Sep 12, 2013 11:59 pm    Post subject: Reply with quote

Jedi Council

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

The first part of your problem is here

http://support.microsoft.com/kb/942976

does 'mqsicvp' work when run against the ODBC connection?
_________________
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
Simbu
PostPosted: Fri Sep 13, 2013 12:01 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

Please read this link

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.doc/ah14442_.htm
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Fri Sep 13, 2013 12:29 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Output of mqsicvp MB8BROKER -n TEST1

BIP2393E: Database error: ODBC return code '-1' from data source ''TEST1'' using ODBC driver manager ''odbc32.dll''.
The broker received an error when processing a database operation. The ODBC return code was '-1'. See the following messages for information obtained from the database about this error.
Use the following messages to determine the cause of the error. Typical problems are an incorrect data source, or table names. Correct either the database or the broker configuration.
BIP2322E: Database error: SQL State ''IM014''; Native Error Code '0'; Error Text ''[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application''.
The error has the following diagnostic information: SQL State ''IM014'' SQL Native Error Code '0' SQL Error Text ''[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application''
This message may be accompanied by other messages describing the effect on the message broker itself. Use the reason identified in this message with the accompanying messages to determine the cause of the error.

BIP8040E: Unable to connect to the database.
The database cannot be accessed with the specified user Id and password pair.
- Check that the database is running.
- Check that the database has an adequate number of database connections available for use.
- On Windows, check that an ODBC connection has been created.
- On systems that use $ODBCINI, check that the file pointed to by $ODBCINI has been correctly updated.
- On z/OS check the BIPDSNAO member of the component's dataset, and check the DB2 64bit ODBC driver (DSNAO64C) is in the STEPLIB.
- Use mqsisetdbparms to set the password to the correct value and try again.


From odbcad32 console I note the DB2 driver as DB2CLI.dll, I also ran mqsisetdbparms again as C:\Program Files\IBM\MQSI\8.0.0.1>mqsisetdbparms MB8BROKER -n odbc::TEST1 -u db2admin -p db2admin
Restarted the broker as well.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
lancelotlinc
PostPosted: Fri Sep 13, 2013 3:18 am    Post subject: Reply with quote

Jedi Knight

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

Your trying to use 32-bit driver for 64-bit application. Try installing the 64-bit driver.
_________________
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
shalabh1976
PostPosted: Fri Sep 13, 2013 3:33 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Downloaded DB2 driver from IBM site (v9.5fp10_ntx64_odbc_cli). Installed the same using db2oreg1. Now driver is seen when I go to ODBC in Administrative tools. However when I try to do a test connect I get the error - ---------------------------
DB2 Message
---------------------------
SQL1531N The database alias "TEST1" could not be found in the db2dsdriver.cfg configuration file.

How do I add this ? Manually or through another utility ?
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
lancelotlinc
PostPosted: Fri Sep 13, 2013 3:47 am    Post subject: Reply with quote

Jedi Knight

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

shalabh1976 wrote:
Downloaded DB2 driver from IBM site (v9.5fp10_ntx64_odbc_cli). Installed the same using db2oreg1. Now driver is seen when I go to ODBC in Administrative tools. However when I try to do a test connect I get the error - ---------------------------
DB2 Message
---------------------------
SQL1531N The database alias "TEST1" could not be found in the db2dsdriver.cfg configuration file.

How do I add this ? Manually or through another utility ?


Ask this guy -> he's "certified" and should know this :

shalabh1976
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
_________________
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
smdavies99
PostPosted: Fri Sep 13, 2013 3:49 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.

Mr Google is your friend here.

As it is friday, I'm feeling a tad generous.

http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=%2Fcom.ibm.swg.im.dbclient.config.doc%2Fdoc%2Fc0054555.html


This might be a good starting point
_________________
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
shalabh1976
PostPosted: Mon Sep 16, 2013 2:24 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Reinstalled DB2...........problem resolved.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DB2 9.5 Connect error from WMB 8 using ODBC
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.