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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: ORA-00955: name is already used by an existing object

RE: ORA-00955: name is already used by an existing object

From: Deshpande, Kirti <kirti.deshpande_at_verizon.com>
Date: Mon, 20 Jan 2003 19:38:48 -0800
Message-ID: <F001.0053566D.20030120193848@fatcity.com>


You will get ORA-12992 if there was FK referencing to column you attempted to drop.

There are bugs related to dropping columns from a table with LOB datatypes. This is very bizarre in 8i.
I have experienced it while testing this new feature....

Here is a reproducible case on all versions of 8i, from Metalink Note for Bug# 1769244. (This works fine in 9i, however).

create table mstest (col1 varchar2(4000), col2 varchar2(4000)); alter table mstest add (col1_temp varchar2(4000)); alter table mstest drop column col1 ;
alter table mstest add (col1 clob);
alter table mstest drop column col1_temp; alter table mstest add (col2_temp varchar2(4000)); alter table mstest drop column col2;
alter table mstest add (col2 clob);
-- ORA-955 returned for following....
alter table mstest drop column col2_temp;

But if you changed the above sequence of statements to the following, it works in 8i:

create table mstest (col1 varchar2(4000), col2 varchar2(4000)); alter table mstest add (col1_temp varchar2(4000)); alter table mstest drop column col1 ;
alter table mstest add (col1 clob);
REM drop column col1_temp statement moved to next to last line alter table mstest add (col2_temp varchar2(4000)); alter table mstest drop column col2;
alter table mstest add (col2 clob);
alter table mstest drop column col1_temp; alter table mstest drop column col2_temp; -- no error generated.

HTH,

-----Original Message-----
Sent: Monday, January 20, 2003 10:05 AM
To: Multiple recipients of list ORACLE-L

off the top of my head, although I would expect a different error... are there any foreign key references to the column?

Any other column in any other table which has a column whose name matches for the first 15-20 characters as this one?

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Deshpande, Kirti
  INET: kirti.deshpande_at_verizon.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon Jan 20 2003 - 21:38:48 CST

Original text of this message

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