Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert Clob column datatype to NClob

GurjasJan 15 2008 — edited Jan 21 2008

While converting Clob column datatype to NClob datatype
i am getting following problem.

SQL> SELECT * FROM V$VERSION
  2  /

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production


SQL> desc Tab1;
 Name                                                  Null?    Type
 ----------------------------------------------------- -------- ------------------------------------
 P_KEY       	                                       NOT NULL NUMBER
 TABLE_TEXT                                             NOT NULL CLOB

SQL> alter tab1 TABLE_TEXT modify note_text nclob;
alter table j_note modify note_text nclob
                          *
ERROR at line 1:
ORA-22859: invalid modification of columns

Anybody know how to change the clob --> Nclob datatype
without using the temp column usage..

Regards
Singh

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 13 2008
Added on Jan 15 2008
4 comments
3,900 views