Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > Character conversion error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-28-03, 07:32
rameshmanickam rameshmanickam is offline
Registered User
 
Join Date: May 2003
Posts: 4
Character conversion error

Hi,

I have created a table

<b>create table ntest (data nclob);</b>

It took more than 4000 characters(using jbdc program). I checked this
with

select length(data) from ntest;

I got the result: 43876

But when I tried to select the value using the sql plus client
using

select data from ntest;

I got <b>ORA-24365: error in character conversion.</b>

But if I use
<b> select to_nchar(data) from ntest;</b>
or
<b> select to_char(data) from ntest; ;</b>
I am getting 4000 characters only. This is displayed in sql
plus client.

I am trying the same through JDBC programs.
My oracle 9.0.1 server is running in HP-UX machine, weblogic 7.0 server is running in windows 2000. I am accessing the value through weblogic type 2 driver for oracle (oci driver).

<b> Please help to solve the 24365 error </b>

<b> Thanks in advance </b>
rami
Reply With Quote
  #2 (permalink)  
Old 05-28-03, 17:57
dbmadcap dbmadcap is offline
Registered User
 
Join Date: May 2003
Posts: 87
Re: Character conversion error

Try changing the column name from "data" to something else and that will get rid of your problem.

HTH !


Quote:
Originally posted by rameshmanickam
Hi,

I have created a table

<b>create table ntest (data nclob);</b>

It took more than 4000 characters(using jbdc program). I checked this
with

select length(data) from ntest;

I got the result: 43876

But when I tried to select the value using the sql plus client
using

select data from ntest;

I got <b>ORA-24365: error in character conversion.</b>

But if I use
<b> select to_nchar(data) from ntest;</b>
or
<b> select to_char(data) from ntest; ;</b>
I am getting 4000 characters only. This is displayed in sql
plus client.

I am trying the same through JDBC programs.
My oracle 9.0.1 server is running in HP-UX machine, weblogic 7.0 server is running in windows 2000. I am accessing the value through weblogic type 2 driver for oracle (oci driver).

<b> Please help to solve the 24365 error </b>

<b> Thanks in advance </b>
rami
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On