As it was strange, I tried to find a solution. Then I got to know that Oracle has an index created with the same name of the unique constraint dropped/updated.
select index_name
from user_indexes
where table_name = '--insert the table name here--'
and uniqueness='UNIQUE'
/
You can verify it using the above query. Then I dropped the index using the below query and re applied the unique constraint as I wanted, Now the raw is successfully inserted in to the table.
DROP INDEX --insert the constraint name here--
/
Thanks for the below link on the solutionhttp://stackoverflow.com/questions/2372163/finding-ghost-constraint-from-oracle-db
No comments:
Post a Comment