Solved

convert byte to char issue

Posted on 2014-02-25
2
305 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
2 Comments
 
LVL 76

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now