PK disabled but still does not allow registrations double

Hello
I am using TOAD.
There is a table with PKconstraint. I disabled it and tries to insert a duplicate record.
Its Unique key (name of the PK) violated error.

I think that would not be appropriate to come once you have your off your constraint. Fix?

Another possibility might be that you have created a unique indexes first and then the primary key. Check this

create table t(no integer)
/
create unique index t_idx on t(no)
/
alter table t add constraint t_pk primary key(no)
/
select * from user_indexes where table_name = 'T'
/
select constraint_name, index_name from user_constraints where table_name = 'T'
/
alter table t drop constraint t_pk
/
select * from user_indexes where table_name = 'T'
/
select constraint_name, index_name from user_constraints where table_name = 'T'
/

If you run, you can see even after that you drop the primary key Unique index still exists.

Tags: Database

Similar Questions

Maybe you are looking for

  • El Capitan want allow me to move to the trash

    I had the Apple store install an SSD on my iMac.  Since then I can't move anything (from anywhere) to the trash.  I get a pop-up warning me it is permanent, and it does not move it to the trash.  He's telling the truth.  I know about the "option/file

  • Caps lock flashing black screen

    I bought a laptop HP g62 2/12 years ago, I've not used since almost a year. Problem is to have in the first instance he was not charging properally I would get a low battery message and may need to be replaced, I continued used like this for a month,

  • AnyConnect VPN Microsoft CA and a Public certificate

    Hello I'm looking for some help with a script. I'm no expert in networks by any stretch and I won't implement myself but I need to try to understand if it is possible what I'm looking for. We are implementing an Anyconnect VPN with certificate of our

  • How to delete a profile type wifi WPA2-Enterprise when delete is not available.

    I have a WPA2-Enterprise wifi Windows 7 type profile that does not allow me to remove it. The delete icon is missing and it is listed in a section of managing networks wireless named "Networks you can see." The property screen reads, "these settings

  • Serial number refused. Any reason?

    I have a version of Adobe Acrobat Pro 9. I recently changed my laptop and thought I could install this version on my new because I am just happy with it. It turns out that my serial number was rejected as invalid. Is there a good reason for it? What