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 » Unable to read large clob message from db

Post new topic  Reply to topic
 Unable to read large clob message from db « View previous topic :: View next topic » 
Author Message
gunjand
PostPosted: Mon Nov 05, 2012 3:41 pm    Post subject: Unable to read large clob message from db Reply with quote

Novice

Joined: 21 May 2009
Posts: 23

Hi,
We are inserting XML as CLOB in Oracle table and while reading it is failing if the length of message is greater than 21846. While doing further research we found that it has an additional space after length of 21845 and while parsing the message it's failing. We cannot visualize the space if we check the data in database.

We also tried setting value of MQSI_LOB_BUFFER_INCREMENT_SIZE variable to larger value, but still it does not help.

Environment: Message broker 6.1

Back to top
View user's profile Send private message
kash3338
PostPosted: Mon Nov 05, 2012 10:18 pm    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

How are you inserting the XML from the ESQL? Are you CASTing the message to BLOB before doing it or as CHAR? What is the DB being used and whats its version, there is option of XML datatype in Database, which enables to store the XML as-is.
Back to top
View user's profile Send private message Send e-mail
gunjand
PostPosted: Tue Nov 06, 2012 10:04 am    Post subject: Reply with quote

Novice

Joined: 21 May 2009
Posts: 23

Inserting as BLOB by casting the data. DB used is Oracle (11.1 version)
Back to top
View user's profile Send private message
kash3338
PostPosted: Wed Nov 07, 2012 12:55 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

gunjand wrote:
Inserting as BLOB by casting the data. DB used is Oracle (11.1 version)


In Oracle 11g you have the option of storing the XML as a XML type itself. Thats a best way to store your XML messages.

Even when you store as CLOB, first reset your message to BLOB in the flow and before inserting in DB cast as CHAR and store it. Only then you will be able to get back the same message.
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Nov 07, 2012 4:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

kash3338 wrote:
gunjand wrote:
Inserting as BLOB by casting the data. DB used is Oracle (11.1 version)


In Oracle 11g you have the option of storing the XML as a XML type itself. Thats a best way to store your XML messages.


Broker doesn't support native XML data types.
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Nov 07, 2012 4:16 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Quote:
Broker doesn't support native XML data types.


Yes it does for Oracle and DB2:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.doc/ak05730_.htm

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
mqjeff
PostPosted: Wed Nov 07, 2012 4:23 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

mgk wrote:
Quote:
Broker doesn't support native XML data types.


Yes it does for Oracle and DB2:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.doc/ak05730_.htm


Ooooo! Shiny!
Back to top
View user's profile Send private message
kash3338
PostPosted: Wed Nov 07, 2012 8:57 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

mgk wrote:
Quote:
Broker doesn't support native XML data types.


Yes it does for Oracle and DB2:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.doc/ak05730_.htm




We have done this and even CHAR can be used to insert into DB XML column which is not mentioned in the link
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 » Unable to read large clob message from db
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.