473,385 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

CLOB/NCLOB help needed please.

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
Jul 19 '05 #1
2 10516
Here are my database properties:

PROPERTY_NAME PROPERTY_VALUE DESCRIPTION
DICT.BASE 2 dictionary base tables version #
DEFAULT_TEMP_TABLESPACE TEMP Name of default temporary tablespace
DBTIMEZONE -07:00 DB time zone
NLS_LANGUAGE AMERICAN Language
NLS_TERRITORY AMERICA Territory
NLS_CURRENCY $ Local currency
NLS_ISO_CURRENCY AMERICA ISO currency
NLS_NUMERIC_CHARACTERS ., Numeric characters
NLS_CHARACTERSET AL32UTF8 Character set
NLS_CALENDAR GREGORIAN Calendar system
NLS_DATE_FORMAT DD-MON-RR Date format
NLS_DATE_LANGUAGE AMERICAN Date language
NLS_SORT BINARY Linguistic definition
NLS_TIME_FORMAT HH.MI.SSXFF AM Time format
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM Time stamp format
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR Time with timezone format
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR Timestamp with timezone
format
NLS_DUAL_CURRENCY $ Dual currency symbol
NLS_COMP BINARY NLS comparison
NLS_LENGTH_SEMANTICS BYTE NLS length semantics
NLS_NCHAR_CONV_EXCP FALSE NLS conversion exception
NLS_NCHAR_CHARACTERSET AL16UTF16 NCHAR Character set
GLOBAL_DB_NAME PVOR9I.US.ORACLE.COM Global database name
EXPORT_VIEWS_VERSION 8 Export views revision #
NLS_RDBMS_VERSION 9.2.0.3.0 RDBMS version for NLS parameters
"Rob Panosh" <ro************************@asdsoftadfdware.com> wrote in
message news:3f********@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

Jul 19 '05 #2
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" <ro************************@asdsoftadfdware.com> wrote in
message news:3f********@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

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: freak | last post by:
hi i have problems reading an oracle(9i) clob from a php-script with the MDB-class from pear. the table files has 3 fields: id integer document clob picture clob
1
by: Chris | last post by:
I use websphere connection pooling and had a failure attempting a CLOB.createTemporary. tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION); Here's an excerpt of the exception...
1
by: Mat Hess | last post by:
We are currently developing a new application. In this application, we have a table which will hold a large number of rows, where many text fields (one text field per row) will be stored. The users...
2
by: Stephen Chell | last post by:
When creating a table with a CLOB column, I can (should?) specify the maximum length of the CLOB. What purpose does this serve apart from restring the length of data that can be inserted. Are...
3
by: gupta.harika | last post by:
Hi everyone, I am a developer working on php with oracle as backend. I am facing a problem related with the CLOB data. The problem is as follows My application uses a table which contains Clob...
3
by: egarobar | last post by:
I am using Access 2003 (on WinXP) to read from an Oracle db, where there is a table with a CLOB which is a variable-size text field. In the 'linked table' which is created in the Tables panel of...
0
by: srinivasaraonagisetty | last post by:
hi, I am faceing one problem, while inserting the data in db2 using clob. actually i am writing this type code: public class DBParam { private InputStream inputstream; private static int...
2
by: Rob Panosh | last post by:
Hello, I am having trouble moving data from a CLOB to a NCLOB column. My current table structure for table fmattachmentembed: --------------------------------------------------------...
3
by: db2admin | last post by:
Hello all, I have table with CLOB column length of ~65K. application is searching from this table by CLOB and i can not create index on it. I know IBM recommends using DB2 Net Search Extender...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.