Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropped constraint not really gone? 1

Status
Not open for further replies.

ThatRickGuy

Programmer
Oct 12, 2001
3,841
US
A table I was working on had a 2 column primary key. Due to some design changes I needed to switch to a 3 column primary key. So I dropped the original PK, and created a new one. Only when I tried to create the new constraint (with the same name as the original one), toad popped an error telling me that an object with that name already exists. I made sure my changes were committed, refreshed toad (even closed toad and came back in) and the original constraint is not showing up, but I still can not use that name. Even worse, the constraint is still applied to the table. Yet the table scripts have no mention of the old primary key.

How can I get rid of this phantom?

Thanks,
-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
I'd start with verifying it's presence in the data dictionary.

select * from all_indexes ai where ai.INDEX_NAME = 'MY_TABLE_PK'

if you find it, and it is what you expected, drop it.

drop index MY_TABLE_PK;

Then try again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top