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 create ODBC connectivity from IIB9

Post new topic  Reply to topic
 Not able to create ODBC connectivity from IIB9 « View previous topic :: View next topic » 
Author Message
arijitchakraborty1986
PostPosted: Mon Jul 13, 2015 3:06 am    Post subject: Not able to create ODBC connectivity from IIB9 Reply with quote

Newbie

Joined: 13 Jul 2015
Posts: 5

Hi, I am not able to connect to IIB9. I am getting below error.

<text>Exception. BIP2230E: Error detected whilst processing a message in node &apos;JSON_WEBSERVICE.Compute&apos;. : F:\build\slot1\S900_P\src\DataFlowEngine\SQLNodeLibrary\ImbComputeNode.cpp: 497: ImbComputeNode::evaluate: ComIbmComputeNode: JSON_WEBSERVICE#FCMComposite_1_5
BIP2393E: Database error: ODBC return code &apos;-1&apos; from data source &apos;&apos;TEST&apos;&apos; using ODBC driver manager &apos;&apos;odbc32.dll&apos;&apos;. : F:\build\slot1\S900_P\src\DataFlowEngine\MessageServices\ImbOdbc.cpp: 2260: ImbOdbcConnection::checkRcInner: :
BIP2322E: Database error: SQL State &apos;&apos;IM002&apos;&apos;; Native Error Code &apos;0&apos;; Error Text &apos;&apos;[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified&apos;&apos;. : F:\build\slot1\S900_P\src\DataFlowEngine\MessageServices\ImbOdbc.cpp: 2438: ImbOdbcConnection::checkRcInner: : </text>

--------------------


When i am running mqsicvp command i am getting below output


mqsicvp IB9NODE -n Test -i db2admin



BIP8270I: Connected to Datasource 'Test' as user 'db2admin'. The datasource pla
form is 'DB2/NT64', version '09.07.0000'.
===========================
databaseProviderVersion = 09.07.0000
driverVersion = 09.07.0000
driverOdbcVersion = 03.51
driverManagerVersion = 03.80.7601.0000
driverManagerOdbcVersion = 03.80.0000
databaseProviderName = DB2/NT64
datasourceServerName = DB2
databaseName = ARIJITDB
odbcDatasourceName = ARIJITDB
driverName = DB2CLI.DLL
supportsStoredProcedures = Yes
procedureTerm = stored procedure
accessibleTables = No
accessibleProcedures = No
identifierQuote = "
specialCharacters = None
describeParameter = Yes
schemaTerm = schema
tableTerm = table
sqlSubqueries = 31
activeEnvironments = 1
maxDriverConnections = 0
maxCatalogNameLength = 0
maxColumnNameLength = 128
maxSchemaNameLength = 128
maxStatementLength = 2097152
maxTableNameLength = 128
supportsDecimalType = Yes
supportsDateType = Yes
supportsTimeType = Yes
supportsTimeStampType = Yes
supportsIntervalType = No
supportsAbsFunction = Yes
supportsAcosFunction = Yes
supportsAsinFunction = Yes
supportsAtanFunction = Yes
supportsAtan2Function = Yes
supportsCeilingFunction = Yes
supportsCosFunction = Yes
supportsCotFunction = Yes
supportsDegreesFunction = Yes
supportsExpFunction = Yes
supportsFloorFunction = Yes
supportsLogFunction = Yes
supportsLog10Function = Yes
supportsModFunction = Yes
supportsPiFunction = Yes
supportsPowerFunction = Yes
supportsRadiansFunction = Yes
supportsRandFunction = Yes
supportsRoundFunction = Yes
supportsSignFunction = Yes
supportsSinFunction = Yes
supportsSqrtFunction = Yes
supportsTanFunction = Yes
supportsTruncateFunction = Yes
supportsConcatFunction = Yes
supportsInsertFunction = Yes
supportsLcaseFunction = Yes
supportsLeftFunction = Yes
supportsLengthFunction = Yes
supportsLTrimFunction = Yes
supportsPositionFunction = No
supportsRepeatFunction = Yes
supportsReplaceFunction = Yes
supportsRightFunction = Yes
supportsRTrimFunction = Yes
supportsSpaceFunction = Yes
supportsSubstringFunction = Yes
supportsUcaseFunction = Yes
supportsExtractFunction = No
supportsCaseExpression = Yes
supportsCastFunction = Yes
supportsCoalesceFunction = Yes
supportsNullIfFunction = Yes
supportsConvertFunction = Yes
supportsSumFunction = Yes
supportsMaxFunction = Yes
supportsMinFunction = Yes
supportsCountFunction = Yes
supportsBetweenPredicate = Yes
supportsExistsPredicate = Yes
supportsInPredicate = Yes
supportsLikePredicate = Yes
supportsNullPredicate = Yes
supportsNotNullPredicate = Yes
supportsLikeEscapeClause = Yes
supportsClobType = Yes
supportsBlobType = Yes
charDatatypeName = CHAR
varCharDatatypeName = VARCHAR
longVarCharDatatypeName = LONG VARCHAR
clobDatatypeName = CLOB
timeStampDatatypeName = TIMESTAMP
binaryDatatypeName = CHAR (1) FOR BIT DATA
varBinaryDatatypeName = VARCHAR (1) FOR BIT DATA
longVarBinaryDatatypeName = LONG VARCHAR FOR BIT DATA
blobDatatypeName = BLOB
intDatatypeName = INTEGER
doubleDatatypeName = DOUBLE
varCharMaxLength = 0
longVarCharMaxLength = 0
clobMaxLength = 0
varBinaryMaxLength = 0
longVarBinaryMaxLength = 0
blobMaxLength = 0
timeStampMaxLength = 0
identifierCase = Upper
escapeCharacter = \
longVarCharDatatype = -1
clobDatatype = -99
longVarBinaryDatatype = -4
blobDatatype = -98

BIP8273I: The following datatypes and functions are not natively supported by d
tasource 'Test' using this ODBC driver: Unsupported datatypes: 'INTERVAL' Unsup
orted functions: 'POSITION, EXTRACT'
Examine the specific datatypes and functions not supported natively by this dat
source using this ODBC driver.
When using these datatypes and functions within ESQL, the associated data proce
sing is done within IBM Integration Bus rather than being processed by the data
ase provider.

Note that "functions" within this message can refer to functions or predicates.



BIP8071I: Successful command completion.


--------------------------


In my message flow in compute node i define data source name as Test.
code:-

SET OutputRoot.JSON.Data[] = SELECT * FROM Database.db2admin.Test AS P WHERE P.TPNB = productid;

i also created obdc data source in my system as Test.


Please help me to solve this issue.
Back to top
View user's profile Send private message Send e-mail
maurito
PostPosted: Mon Jul 13, 2015 4:11 am    Post subject: Re: Not able to create ODBC connectivity from IIB9 Reply with quote

Partisan

Joined: 17 Apr 2014
Posts: 358

arijitchakraborty1986 wrote:
In my message flow in compute node i define data source name as Test.
code:-

SET OutputRoot.JSON.Data[] = SELECT * FROM Database.db2admin.Test AS P WHERE P.TPNB = productid;

i also created obdc data source in my system as Test.


You don't define the datasource in the code. In the select statement you specify a table name. The datasource is specified elsewhere ( and it is well documented ).
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 13, 2015 4:21 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Are you sure you are using the correct datasource setup?

mqsicvp -n Test -i db2admin shows
Code:
BIP8270I: Connected to Datasource 'Test' as user 'db2admin'. The datasource pla
form is 'DB2/NT64', version '09.07.0000'.


Where your error message shows:
Quote:
BIP2393E: Database error: ODBC return code &apos;-1&apos; from data source &apos;&apos;TEST&apos;&apos
Error Text &apos;&apos;[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified&apos;&apos;.


Remember Test is not the same as TEST. CASE MATTERS!!!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
arijitchakraborty1986
PostPosted: Mon Jul 13, 2015 4:29 am    Post subject: Reply with quote

Newbie

Joined: 13 Jul 2015
Posts: 5

Compute Node->Properties->Basic->Data Source here i declared it as Test[/img]
Back to top
View user's profile Send private message Send e-mail
maurito
PostPosted: Mon Jul 13, 2015 4:38 am    Post subject: Re: Not able to create ODBC connectivity from IIB9 Reply with quote

Partisan

Joined: 17 Apr 2014
Posts: 358

arijitchakraborty1986 wrote:
using ODBC driver manager &apos;&apos;odbc32.dll&apos;&apos


databaseProviderName = DB2/NT64


are you using the correct driver ?
Back to top
View user's profile Send private message
arijitchakraborty1986
PostPosted: Mon Jul 13, 2015 4:40 am    Post subject: Reply with quote

Newbie

Joined: 13 Jul 2015
Posts: 5

How to check this driver?
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Jul 13, 2015 4:53 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

arijitchakraborty1986 wrote:
How to check this driver?


Check to see if it's the one you need for the database you're trying to connect to. There seems to be a discrepancy in the bitness from what you've posted.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
wbisantosh
PostPosted: Mon Jul 13, 2015 12:48 pm    Post subject: Reply with quote

Apprentice

Joined: 12 Nov 2012
Posts: 47

arijitchakraborty1986,

You might want to check the DB Connectivity from Compute Node first. Select the Check Box "Connect before flow starts" from the Compute node properties to do that.

This is a Sample Syntax for a DB Select statement from a Compute Node -
Code:
SET PartsTable.Part[] = SELECT
  P.PartNumber,
  P.Description,
  P.Price
 FROM Database.Datasource.SchemaName.Table AS P;


If not you could also give "PASSTHRU" statement a try

Santosh
Back to top
View user's profile Send private message
mgk
PostPosted: Mon Jul 13, 2015 12:53 pm    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

I suspect that you may have defined the DSN as a User DSN rather than a System DSN in the ODBC control panel applet. This would explain why it works on the command line but the DSN is not found in the compute node as the Node (Broker) is running with a different user id to the one on your command line. User DSNs do work, but only when the Broker is running as the same user id that the DSN is defined for...

Kind regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
arijitchakraborty1986
PostPosted: Mon Jul 13, 2015 10:51 pm    Post subject: Reply with quote

Newbie

Joined: 13 Jul 2015
Posts: 5

Thank you very much.Issue got resolved:P. I delete User DSN from my system and create one System DSN which helped to resolve problem.

Thanks to all of you.
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 » Not able to create ODBC connectivity from IIB9
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.