dbTalk Databases Forums  

can not insert a new row in a table, unique constraint violated.

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


Discuss can not insert a new row in a table, unique constraint violated. in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
DA Morgan
 
Posts: n/a

Default Re: can not insert a new row in a table, unique constraint violated. - 03-10-2008 , 11:15 AM






vijaysam wrote:
Quote:
Hi ,

I can not insert a row in a table called duct_connectivity.

when I try to it says.. unique constraint prd.dctconrb `violated.

not I found out there was no conatraint by this name on the table.

but there was a index on the table by this name.

what is happening here.. what is the solution?

regards

Vijay
For help post your version number (3+ decimal places) and the
actual error message not your interpretation of it.

Robert and Fitzjarrell undoubtedly correct but if you can't
sort it out perhaps this will help:

SELECT index_name, index_type
FROM all_indexes
WHERE table_name = 'DCTCONRB';

SELECT constraint_name, constraint_type
FROM all_constraints
WHERE table_name = 'DCTCONRB';
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #12  
Old   
DA Morgan
 
Posts: n/a

Default Re: can not insert a new row in a table, unique constraint violated. - 03-10-2008 , 11:15 AM






vijaysam wrote:
Quote:
Hi ,

I can not insert a row in a table called duct_connectivity.

when I try to it says.. unique constraint prd.dctconrb `violated.

not I found out there was no conatraint by this name on the table.

but there was a index on the table by this name.

what is happening here.. what is the solution?

regards

Vijay
For help post your version number (3+ decimal places) and the
actual error message not your interpretation of it.

Robert and Fitzjarrell undoubtedly correct but if you can't
sort it out perhaps this will help:

SELECT index_name, index_type
FROM all_indexes
WHERE table_name = 'DCTCONRB';

SELECT constraint_name, constraint_type
FROM all_constraints
WHERE table_name = 'DCTCONRB';
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #13  
Old   
DA Morgan
 
Posts: n/a

Default Re: can not insert a new row in a table, unique constraint violated. - 03-10-2008 , 11:15 AM



vijaysam wrote:
Quote:
Hi ,

I can not insert a row in a table called duct_connectivity.

when I try to it says.. unique constraint prd.dctconrb `violated.

not I found out there was no conatraint by this name on the table.

but there was a index on the table by this name.

what is happening here.. what is the solution?

regards

Vijay
For help post your version number (3+ decimal places) and the
actual error message not your interpretation of it.

Robert and Fitzjarrell undoubtedly correct but if you can't
sort it out perhaps this will help:

SELECT index_name, index_type
FROM all_indexes
WHERE table_name = 'DCTCONRB';

SELECT constraint_name, constraint_type
FROM all_constraints
WHERE table_name = 'DCTCONRB';
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


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.