Re: CLOB/NCLOB help needed please.

From: Rob Panosh <rob_!!!NO!!!SPAM!!!_panosh_at_asdsoftadfdware.com>
Date: Fri, 21 Nov 2003 11:15:46 -0600
Message-ID: <3fbe4cf9$1_at_news.splitrock.net>


To anybody who is interested I resolved my problem by adding the TO_NCLOB( .. ) function to my column.

INSERT /* APPEND */ INTO xxattachmentembed nologging SELECT fmattachmentid

     ,TO_NCLOB(fmvalue)
     ,fmextension
     ,fmsize

Cheers,
Rob Panosh

"Rob Panosh" <rob_!!!NO!!!SPAM!!!_panosh_at_asdsoftadfdware.com> wrote in message news:3fbe4a4b$1_at_news.splitrock.net...
> Hello,
>
> I am having trouble moving data from a CLOB to a NCLOB column.
>
> My current table structure for table fmattachmentembed:
> --------------------------------------------------------
> fmattachmentid number(10,0) not null,
> fmvalue clob null,
> fmextension varchar2(4) null,
> fmsize number(8,0) null
>
> New structure desired:
> ----------------------
> CREATE TABLE xxattachmentembed (
> fmattachmentid number(10,0) not null,
> fmvalue nclob null,
> fmextension nvarchar2(4) null,
> fmsize number(8,0) null )
>
> Now when I execute the insert statement, below, to move the existing data
> into the new table structure the
> following error is encountered: "ORA-01482: unsupported character set".
>
> Any ideas on how to fix this?
>
> Insert Statement to move the data:
> ----------------------------------
> INSERT /* APPEND */ INTO xxattachmentembed nologging
> SELECT fmattachmentid
> ,Translate(fmvalue USING NVARCHAR_CS )
> ,fmextension
> ,fmsize
>
> FROM fmattachmentembed
> /
>
> Drop the old table:
> DROP TABLE fmattachmentembed
> /
>
> RENAME xxAttachmentEmbed TO fmAttachmentEmbed
> /
>
>
> Thanks,
> Rob Panosh
> Advanced Software Designs
>
>
Received on Fri Nov 21 2003 - 18:15:46 CET

Original text of this message