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 » Not able to connect remote db2 database using WMB 7

Post new topic  Reply to topic
 Not able to connect remote db2 database using WMB 7 « View previous topic :: View next topic » 
Author Message
girish_kulkarni
PostPosted: Tue Jun 11, 2013 1:42 am    Post subject: Not able to connect remote db2 database using WMB 7 Reply with quote

Apprentice

Joined: 08 Oct 2010
Posts: 32

Hi All,

We are trying to connect remote db2 database (9.5.x.x) using WMB 7 (odbc ) in linux environment. I have copied the DB2 ODBC CLI driver package in WMB installed machine.


Below is the odbc ini file (only db2 stanza pasted here)


;#######################################
;#### List of data sources stanza ######
;#######################################

[ODBC Data Sources]
NGIDB=IBM DB2 ODBC Driver for NGIDB
DB2DB=IBM DB2 ODBC Driver
ORACLEDB=DataDirect 6.0 Oracle Wire Protocol
ORACLERACDB=DataDirect 6.0 Oracle Wire Protocol (Real Application Clusters)
SYBASEDB=DataDirect 6.0 Sybase Wire Protocol
SYBASEDBUTF8=DataDirect 6.0 Sybase UTF8 Wire Protocol
SQLSERVERDB=DataDirect 6.0 SQL Server Wire Protocol
INFORMIXDB=IBM Informix ODBC Driver

;###########################################
;###### Individual data source stanzas #####
;###########################################

;# IBM DB2 DSN NGIDB stanza
[NGIDB]
Driver=/opt/ibm/mqsi/7.0/ODBC/V6.0/db2_cli_odbc_driver/odbc_cli/clidriver/lib/libdb2.so
Description=IBM DB2 ODBC Driver for NGIDB
Database=EGOVPROD




When I run mqsicvp getting below error, kindly help

wmbadmin@vmdb08 ~]$ mqsicvp MB7BROKER -n NGIDB

[i]BIP2393E: Database error: ODBC return code '-1' from data source ''NGIDB'' using ODBC driver manager ''libbipodbc.so''.
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 ''08001''; Native Error Code '-1013'; Error Text ''[IBM][CLI Driver] SQL1013N The database alias name or database name "NGIDB" could not be found. SQLSTATE=42705 ''.
The error has the following diagnostic information: SQL State ''08001'' SQL Native Error Code '-1013' SQL Error Text ''[IBM][CLI Driver] SQL1013N The database alias name or database name "NGIDB" could not be found. SQLSTATE=42705 ''
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.


Also, I would like to know is IBM data direct client installation is mandatory in the WMB installed machine or just DB2 ODBC CLI driver package is enough.

I have also updated db2cli.ini and db2dsdriver.cfg with all my db details
Back to top
View user's profile Send private message
stevarg
PostPosted: Tue Jun 11, 2013 1:53 am    Post subject: Reply with quote

Novice

Joined: 20 Nov 2012
Posts: 24

Have you created a System DSN or a User DSN on the box ?
The error says couldnt find the Datasource name.
Back to top
View user's profile Send private message
girish_kulkarni
PostPosted: Tue Jun 11, 2013 3:15 am    Post subject: Reply with quote

Apprentice

Joined: 08 Oct 2010
Posts: 32

Hi,

WMb is in Linux environment, therefore we have just created odbc.ini file which is pasted as below. I think system and user dsn concepts will come in windows machine. Please correct me if i am wrong.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 11, 2013 3:25 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Ask your DB2 admin to fix this problem.

ODBC.ini is not sufficient. You need to catalog the node and the database.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jun 11, 2013 3:26 am    Post subject: Reply with quote

Jedi Knight

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

Have you installed the DB2 client software? Did you follow the installation instructions exactly? Have you attended the WMB Admin training?
_________________
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
girish_kulkarni
PostPosted: Tue Jun 11, 2013 4:37 am    Post subject: Reply with quote

Apprentice

Joined: 08 Oct 2010
Posts: 32

Thanks for your comments.

I would like to know, IBM Data Direct client installation is mandatory, just DB2 ODBC CLI driver package is not enough?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 11, 2013 4:49 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

girish_kulkarni wrote:
Thanks for your comments.

I would like to know, IBM Data Direct client installation is mandatory, just DB2 ODBC CLI driver package is not enough?


Have you considered asking your DB2 administrator?
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 » Not able to connect remote db2 database using WMB 7
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.