Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: ORA-00955 error when dropping field

Re: ORA-00955 error when dropping field

From: Karsten Farrell <kfarrell_at_medimpact.com>
Date: Thu, 24 Oct 2002 16:41:27 GMT
Message-ID: <XoVt9.327$ho.29286506@newssvr13.news.prodigy.com>


Chris Austin wrote:
> Hello:
>
> I am trying to move data from a varchar to a clob. I add a new field
> to the table called TempX and update it with the data from the
> original varchar. When I try to remove the original field I get an
> ORA-00955 error. Here is my SQL
>
> alter table RenewalText drop column NewText;
>
> and this is the error:
>
> ERROR at line 1:
> ORA-00955: name is already used by an existing object
>
> What could be causing this?
>
> Thanks

You can only drop columns from the "end" of a table (the last column when you DESCRIBE the table). When you added your new column, the original column was no longer last.

As a workaround, you could create a working table with the key columns from your original table and your CLOB column. Then load that table. Then drop the original column from your original table. Then add the CLOB column to your original table. Then populate it from your working table. Then drop your working table. Phew! Received on Thu Oct 24 2002 - 11:41:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US