Solved

convert byte to char issue

Posted on 2014-02-25
2
322 Views
Last Modified: 2014-03-19
Hi,

Below table is ddl is in bytes:

Commitment JE Document – Purchase

Typ=1 Len=33: 67,111,109,109,105,116,109,101,110,116,32,74,69,32,68,111,99,117,109,101,110,116,32,
150,32,80,117,114,99,104,97,115,101

When i load above bytes table in to char table data is messing up

Commitment JE Document ¿ Earmark

Typ=1 Len=33: 67,111,109,109,105,116,109,101,110,116,32,74,69,32,68,111,99,117,109,101,110,116,32,
194,191,32,69,97,114,109,97,114,107

Any idea what is wrong

Thanks
0
Comment
Question by:sam2929
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 39887576
Is the 'messed up' select from the actual database server or a remote client using sqlplus or similar program?

Looks like you have a character set translation issue.

You need to determine if this is happening during the load or on the select back out.

I'm not an Expert on character set translations but I find it interesting that you could insert 'Purchase' and you end up with 'Earmark'.

What is loading this data?  Try to narrow down that it is database specific and not some other application causing the issue.
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 39888312
on a side note
it's easy to have that effect with a trigger
:new.column := 'Earmark';
but that's probably just a mistake

check nls_lang settings of the client (registry settings)
before starting the program you could alter it to unicode
set nls_lang=AMERICAN_AMERICA.UTF8
sqlplus ...
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question