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 » Storing XML as CLOB

Post new topic  Reply to topic
 Storing XML as CLOB « View previous topic :: View next topic » 
Author Message
satnam
PostPosted: Fri Nov 14, 2003 9:31 am    Post subject: Storing XML as CLOB Reply with quote

Newbie

Joined: 20 May 2003
Posts: 7

Hi

I am tring to execute the following statement in WMQI database node


PASSTHRU('INSERT INTO STORAGE(
ID,XML)
VALUES (?,?)' , id ,BITSTREAM("Body"));

here is my table definition



ID NOT NULL NUMBER(10)
XML CLOB


I am using WMQI Integration Broker v 2.1 CSD 5
Database Oracle 8.1


While executing this statement I get following error

DatabaseException BIP2322E: Database error: SQL State 'HY104';
Native Error Code '0'; Error Text '[MERANT][ODBC Oracle 8 driver]Invalid precision value. Error in parameter 2.'.


The size od the XML message is around 8K

Please Advice
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Nov 14, 2003 10:23 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

First off, you should be using ASBITSTREAM instead of BITSTREAM. ASBITSTREAM is documented in the readme file.

Secondly, if you're inserting into a CLOB, you should probably be casting the result of ASBITSTREAM into a CHARACTER type instead of trying to insert a BLOB type.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
satnam
PostPosted: Fri Nov 14, 2003 10:40 am    Post subject: Reply with quote

Newbie

Joined: 20 May 2003
Posts: 7

Thanks for the recommendation .I tried using ASBITSTREAM and casting the result of ASBITSTREAM into a CHARACTER but I get the same results

Thanks
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 » Storing XML as CLOB
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.