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 store special characters in Oracle DB

Post new topic  Reply to topic
 Unable to store special characters in Oracle DB « View previous topic :: View next topic » 
Author Message
ShaileshBajaj
PostPosted: Wed Apr 25, 2007 10:57 pm    Post subject: Unable to store special characters in Oracle DB Reply with quote

Newbie

Joined: 04 Jul 2006
Posts: 6

My Flow recieves message from a Mainframe based system (CCSID : 297)

In a compute Node , I am able to update the database , with special characters. But these are corrupted.
I am able to store the special characters, by doing an update manually from SQLPLUSLater on, when doing a select on the same record, WBI logs error:

2007-04-25 06:45:01.652049 46 DatabaseException BIP2322E: Database error: SQL State ''01004''; Native Error Code ''0''; Error Text ''[DataDirect][ODBC Oracle driver]String data, right truncated. Error in column 24.''.
The error has the following diagnostic information: SQL State ''01004'' SQL Native Error Code ''0'' SQL Error Text ''[DataDirect][ODBC Oracle driver]String data, right truncated. Error in column 24.''
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.




Environment
WBI Broker: 6.0 on Sun Unix(Remote)
Toolkit: 6.0.0.1 on Windows XP
Oracle: 9.0 on Sun(Remote) UTF-8.


I am attaching the Trace Node. The special characters 'Véhicule n'accélére plus par moment' are corrupted, when the DB is updated by the update statement.



2007-04-25 06:45:01.116652 46 UserTrace BIP4060I: Data ''(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'I731JJ4002001'
(0x03000000):MessageType = 'BIM_DOCUMENT'
(0x03000000):MessageFormat = 'CWF1'
(0x03000000):Encoding = 785
(0x03000000):CodedCharSetId = 0
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2007-04-24 17:02:41.410'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'414d5120465242525250433120202020460f2ffb20009804'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'UORPCR01'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Format = 'MQIMS '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 2
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'c3e2d840d4d6d6d14040404040404040c07ef09ace0f8295'
(0x03000000):CorrelId = X'414d5120465242525250433120202020460f2ffb20009804'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'MOOJ '
(0x03000000):UserIdentifier = 'awpgcm1 '
(0x03000000):AccountingToken = X'16010515000000c37bca68cbefa795c4fdcd6af401000000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 20
(0x03000000):PutApplName = 'IMJXCF IMOJ '
(0x03000000):PutDate = DATE '2007-04-24'
(0x03000000):PutTime = GMTTIME '17:02:41.410'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000000):MQIIH = (
(0x03000000):Version = 1
(0x03000000):Format = 'MQSTR '
(0x03000000):Encoding = 785
(0x03000000):CodedCharSetId = 0
(0x03000000):Flags = 0
(0x03000000):LTermOverride = ' '
(0x03000000):MFSMapName = ' '
(0x03000000):ReplyToFormat = ' '
(0x03000000):Authenticator = ' '
(0x03000000):TranInstanceId = X'c07ef09ab13c864c4040404040404040'
(0x03000000):TranState = ' '
(0x03000000):CommitMode = '1'
(0x03000000):SecurityScope = ' '
(0x03000000):Reserved = ' '
)
(0x01000021):MRM = (
(0x0300000B):ACS_HEADER = '0000000000000000' from trace node '01000000'
(0x0300000B):CODE_RETOUR_BIM = '0000'
(0x0300000B):MESSAGE_RETOUR_BIM = ''
(0x0300000B):NUM_INT = '01923283201'
(0x0300000B):DAT_CHGT = '18.04.2007'
(0x0300000B):DAT_OUV_OR = '12.04.2007'
(0x0300000B):DAT_FACT_AFF = '16.04.2007'
(0x0300000B):NUM_CPT_AFF = '007000'
(0x0300000B):LIB_CPT_AFF = 'Renault Lyon Est / REAGROUP'
(0x0300000B):PAYS_AFF = 'FR'
(0x0300000B):KM = '0034072'
(0x0300000B):NB_MOIS = '0012'
(0x0300000B):RC = '7M'
(0x0300000B):CONSTAT_CLI = 'Véhicule n'accélére plus par moment'
(0x0300000B):PI_CAUSE = '8200153270'
(0x0300000B):DIAG = 'Potentiomètre pédale accélérateur en CC'
(0x0300000B):TOP_INTEGER_VAL = '0'
(0x0300000B):PAN_IMMO = '0'
(0x0300000B):NAT_DEP = 'G24'
(0x0300000B):NUM_FACT_AFF = '761766'
)
)
''.
The trace node '01000000'
(0x0300000B):CODE_RETOUR_BIM = '0000'
(0x0300000B):MESSAGE_RETOUR_BIM = ''
(0x0300000B):NUM_INT = '01923283201'
(0x0300000B):DAT_CHGT = '18.04.2007'
(0x0300000B):DAT_OUV_OR = '12.04.2007'
(0x0300000B):DAT_FACT_AFF = '16.04.2007'
(0x0300000B):NUM_CPT_AFF = '007000'
(0x0300000B):LIB_CPT_AFF = 'Renault Lyon Est / REAGROUP'
(0x0300000B):PAYS_AFF = 'FR'
(0x0300000B):KM = '0034072'
(0x0300000B):NB_MOIS = '0012'
(0x0300000B):RC = '7M'
(0x0300000B):CONSTAT_CLI = 'Véhicule n'accélére plus par moment'
(0x0300000B):PI_CAUSE = '8200153270'
(0x0300000B):DIAG = 'Potentiomètre pédale accélérateur en CC'
(0x0300000B):TOP_INTEGER_VAL = '0'
(0x0300000B):PAN_IMMO = '0'
(0x0300000B):NAT_DEP = 'G24'
(0x0300000B):NUM_FACT_AFF = '761766'
)
)
'' has output the specified trace data.
This is an information message provided by the message flow designer. The user response will be determined by the local environment.


[/img]
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Thu Apr 26, 2007 4:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

"Right truncated" ususally means that it put less data into the database column than you asked it to, because the column size was too small for the data.

Like you tried to put 48 characters into a 40 character column.

Or likewise you tried to read 48 characters into a 40 character variable.

Also search around here for NLS_LANG and LANG comments.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 26, 2007 12:45 pm    Post subject: Reply with quote

Grand High Poobah

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

If the language set the broker is running under is different from the language set of the DB you will have to set an environment variable like NLS_LANG or LANG before starting the broker.

Enjoy
La France parle aux francais....
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
raghug
PostPosted: Fri Apr 27, 2007 5:29 am    Post subject: Please re-define you DDL That should works well Reply with quote

Acolyte

Joined: 19 Jul 2006
Posts: 60
Location: NJ

Hi I faces this problem I had changes my ddl or re-definr my ddl then test it I think that should works well
Back to top
View user's profile Send private message Yahoo Messenger
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 store special characters in Oracle 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.