dbTalk Databases Forums  

Can't drop column

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Can't drop column in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ddf
 
Posts: n/a

Default Re: Can't drop column - 07-28-2009 , 12:14 PM






On Jul 28, 12:24*pm, "Sicilian Dragon" <e4c5Nf... (AT) sicilian (DOT) com> wrote:
Quote:
we're running this statement from a VB program

ALTER TABLE MyTable DROP COLUMN MyCol

However I get an error.

ORA-00604: error occured at recursive SQL level 1
ORA-00001: unique constraint (SYS.I_COL_USAGE$) violated

No indexes/constraints have been created on this column (MyCol)
I've searched this error on google and it seems many people have been
troubled by this however nowhere did I find a satisfactory answer.
Provide a create table statement for MyTable so someone can test
this. Also provide the Oracle release you're using (all four or five
numbers) so the problem can be replicated as accurately as possible.

This appears to be a constraint on a data dictionary table, not one on
MyTable. You should have the data dictionary checked for invalid
objects.


David Fitzjarrell

Reply With Quote
  #2  
Old   
Sicilian Dragon
 
Posts: n/a

Default Can't drop column - 07-28-2009 , 12:24 PM






we're running this statement from a VB program

ALTER TABLE MyTable DROP COLUMN MyCol


However I get an error.

ORA-00604: error occured at recursive SQL level 1
ORA-00001: unique constraint (SYS.I_COL_USAGE$) violated

No indexes/constraints have been created on this column (MyCol)
I've searched this error on google and it seems many people have been
troubled by this however nowhere did I find a satisfactory answer.

Reply With Quote
  #3  
Old   
The Boss
 
Posts: n/a

Default Re: Can't drop column - 07-28-2009 , 12:36 PM



On Jul 28, 7:14*pm, ddf <orat... (AT) msn (DOT) com> wrote:
Quote:
On Jul 28, 12:24*pm, "Sicilian Dragon" <e4c5Nf... (AT) sicilian (DOT) com> wrote:

we're running this statement from a VB program

ALTER TABLE MyTable DROP COLUMN MyCol

However I get an error.

ORA-00604: error occured at recursive SQL level 1
ORA-00001: unique constraint (SYS.I_COL_USAGE$) violated

No indexes/constraints have been created on this column (MyCol)
I've searched this error on google and it seems many people have been
troubled by this however nowhere did I find a satisfactory answer.

Provide a create table statement for MyTable so someone can test
this. *Also provide the Oracle release you're using (all four or five
numbers) so the problem can be replicated as accurately as possible.

This appears to be a constraint on a data dictionary table, not one on
MyTable. *You should have the data dictionary checked for invalid
objects.

David Fitzjarrell
I_COL_USAGE$ is an index on table COL_USAGE$ that is used in a script
for the upgrade from 817 to 9i, see:
http://forums.oracle.com/forums/thre...threadID=70282
OP may be hit by bug 2144889 as described on Metalink DocID:171803.1
He might try to complete the drop operation via
ALTER TABLE DROP COLUMNS CONTINUE
If that fails, he should do what is the recommended ACTION for message
ORA-00604:
"If the situation described in the next error on the stack can be
corrected, do so; otherwise contact Oracle Support."

HTH.

Cheers!

--
Jeroen

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.