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 Error while connecting to Oracle Database

Post new topic  Reply to topic
 ODBC Error while connecting to Oracle Database « View previous topic :: View next topic » 
Author Message
ravilegolas
PostPosted: Wed Jun 19, 2013 8:38 am    Post subject: ODBC Error while connecting to Oracle Database Reply with quote

Novice

Joined: 04 Sep 2012
Posts: 15

Hi all,
I have a message flow which processes EDIFACT message and inserts records in Oracle Database (Oracle 10g Release 2). In production system, we are getting ODBC connection error while connecting to the remote Oracle database. Please find below the message extracted from trace file:


56 RecoverableException BIP2230E: Error detected whilst processing a message in node '
The message broker detected an error whilst processing a message in node 'ICD1A510FMFeedLoadsheetMapping.InsertDataIntoMDRDB'. An exception has been thrown to cut short the processing of the message.
See the following messages for details of the error.
2013-06-18 14:57:00.855829 56 DatabaseException BIP2321E: Database error: ODBC return code '-1'.
The message broker encountered an error whilst executing a database operation. The ODBC return code was '-1'. See the following messages for information obtained from the database pertaining to this error.
Use the following messages to determine the cause of the error. This is likely to be such things as incorrect datasource or table names. Then correct either the database or message broker configuration.
2013-06-18 14:57:00.855835 56 DatabaseException BIP2322E: Database error: SQL State ''08S01''; Native Error Code '0'; Error Text ''[IBM][ODBC 20101 driver]7505''.
The error has the following diagnostic information: SQL State ''08S01'' SQL Native Error Code '0' SQL Error Text ''[b][IBM][ODBC 20101 driver]7505[/b]''
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.
2013-06-18 14:57:00.855840 56 DatabaseException BIP2322E: Database error: SQL State ''21''; Native Error Code '-1'; Error Text ''[IBM][ODBC 20101 driver][20101]11603''.
The error has the following diagnostic information: SQL State ''21'' SQL Native Error Code '-1' SQL Error Text ''[b][IBM][ODBC 20101 driver][20101]11603[/b]''
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.

I have added the database details in odbc.ini file as well as used mqsisetdbparms command on the broker. I executed the same steps in TST system and it worked fine. From the trace file, I found out that the message flow is trying to connect to the database for 5 minutes before throwing the error. If any one has faced such problem, can you please throw some light in how to solve this problem.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 19, 2013 9:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Tell your broker adminstrator that he or she created the ODBC DSN incorrectly in the odbc.ini file.
Back to top
View user's profile Send private message
ravilegolas
PostPosted: Wed Jun 19, 2013 10:58 am    Post subject: Reply with quote

Novice

Joined: 04 Sep 2012
Posts: 15

Thanks for the suggestion. I will definitely check odbc.ini file again. Will we get this error if oracle driver is corrupted?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jun 19, 2013 10:59 am    Post subject: Reply with quote

Jedi Knight

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

ravilegolas wrote:
Will we get this error if oracle driver is corrupted?


Is this a trick question?
_________________
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
mqjeff
PostPosted: Wed Jun 19, 2013 11:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You only get this error if the odbc.ini is wrong.
Back to top
View user's profile Send private message
yellowbee
PostPosted: Wed Jun 19, 2013 12:38 pm    Post subject: Reply with quote

Acolyte

Joined: 14 Apr 2012
Posts: 58

If it is a Oracle database then you have to add configuration details in Tnsnames.ora file.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 19, 2013 1:05 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

yellowbee wrote:
If it is a Oracle database then you have to add configuration details in Tnsnames.ora file.


assuming you have used the odbc.ini to indicate that the DataDirect driver should use the tnsnames.ora file.
Back to top
View user's profile Send private message
Tibor
PostPosted: Fri Jun 21, 2013 4:29 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

Quote:
DatabaseException BIP2322E: Database error: SQL State ''08S01''

It seems very strange for me, because SQLState 08S01 is an MS SQL Server error code.

Not true, it was my mistake... this is a generic ODBC error.
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 » ODBC Error while connecting to Oracle Database
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.