dbTalk Databases Forums  

Oracle 10 + Sun App Server 7: Unique Constraint Violation?!?

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Oracle 10 + Sun App Server 7: Unique Constraint Violation?!? in the comp.databases.oracle.tools forum.



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

Default Oracle 10 + Sun App Server 7: Unique Constraint Violation?!? - 11-15-2006 , 02:25 AM






Hi All,

For about a week and a half I have been trying to solve a mysterious
issue with unique constraint violations on our database server without
any luck.

We basically have a simple table with a unique primary key (number) and
a few string columns that aren't part of the key.

With J2EE on the Sun App Server 7, we always make sure we get the
nextval from the table's sequence before inserting it into the table. I
have checked this numerous times.

The Oracle DB doesn't have any triggers or other procedures accessing
the table in any way.

Quote:
From time to time, we get a bunch of unique constraint key violations
in spaces of about 30 minutes after which its all good again...

Has anybody heard of this issue or know how to fix it?

Regards,

Nikk



Reply With Quote
  #2  
Old   
Renzo Zagni
 
Posts: n/a

Default Re: Oracle 10 + Sun App Server 7: Unique Constraint Violation?!? - 11-15-2006 , 10:53 AM






Have you tried tracing the sessions ? How many concurrent sessions is
your applications generating ?
ndamianov wrote:
Quote:
Hi All,

For about a week and a half I have been trying to solve a mysterious
issue with unique constraint violations on our database server without
any luck.

We basically have a simple table with a unique primary key (number) and
a few string columns that aren't part of the key.

With J2EE on the Sun App Server 7, we always make sure we get the
nextval from the table's sequence before inserting it into the table. I
have checked this numerous times.

The Oracle DB doesn't have any triggers or other procedures accessing
the table in any way.

From time to time, we get a bunch of unique constraint key violations
in spaces of about 30 minutes after which its all good again...

Has anybody heard of this issue or know how to fix it?

Regards,

Nikk


Reply With Quote
  #3  
Old   
rogergorden...@gmail.com
 
Posts: n/a

Default Re: Oracle 10 + Sun App Server 7: Unique Constraint Violation?!? - 11-15-2006 , 11:08 AM




Renzo Zagni wrote:
Quote:
Have you tried tracing the sessions ? How many concurrent sessions is
your applications generating ?
ndamianov wrote:
Hi All,

For about a week and a half I have been trying to solve a mysterious
issue with unique constraint violations on our database server without
any luck.

We basically have a simple table with a unique primary key (number) and
a few string columns that aren't part of the key.

With J2EE on the Sun App Server 7, we always make sure we get the
nextval from the table's sequence before inserting it into the table. I
have checked this numerous times.

The Oracle DB doesn't have any triggers or other procedures accessing
the table in any way.

From time to time, we get a bunch of unique constraint key violations
in spaces of about 30 minutes after which its all good again...

Has anybody heard of this issue or know how to fix it?

Regards,

Nikk
How are you generating the nextval? Are your app users trying to
re-submit values that they aren't sure have been entered due to page
errors, etc?

More info would be helpful.

Roger



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

Default Re: Oracle 10 + Sun App Server 7: Unique Constraint Violation?!? - 11-19-2006 , 11:52 AM



ndamianov wrote:
Quote:
Hi All,

For about a week and a half I have been trying to solve a mysterious
issue with unique constraint violations on our database server without
any luck.

We basically have a simple table with a unique primary key (number) and
a few string columns that aren't part of the key.

With J2EE on the Sun App Server 7, we always make sure we get the
nextval from the table's sequence before inserting it into the table. I
have checked this numerous times.

The Oracle DB doesn't have any triggers or other procedures accessing
the table in any way.

From time to time, we get a bunch of unique constraint key violations
in spaces of about 30 minutes after which its all good again...

Has anybody heard of this issue or know how to fix it?

Regards,

Nikk
Go to www.psoug.org and click on Morgan's Library
Scroll down to DBMS_ERRLOG.

Implement a log and when errors occur next ... trace them
back to the value in the sequence.

BTW: When you write "the table's sequence" ... tables don't have
sequences. A sequence is completely independent of any table or
tables. Be sure something else isn't using the same sequence.
--
Daniel A. Morgan
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 - 2013, Jelsoft Enterprises Ltd.