Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> unique violation on SELECT???

unique violation on SELECT???

From: Ed Stevens <ed.stevens_at_home.com>
Date: Fri, 12 Jan 2001 16:07:49 GMT
Message-ID: <93na4c$hv1$1@nnrp1.deja.com>

 I found several occurances of the following in my <sid>alrt.log file:

Errors in file e:\Oradmin\nmms\udump\ORA00476.TRC: ORA-00001: unique constraint (%s.%s) violated ORA-02063: preceding line from LN_DB2T

When I checked the referenced trace file, the "Current SQL statement for this session:" was a SELECT. So how does a SELECT create a unique constraint violation? That should only occur on INSERT and UPDATE.

FWIW, the SELECT statement was an inner join of 3 tables, and two of those tables were actually synonyms for a link which in turn pointed through the Oracle Transparent Gateway to a DB2-MVS database.

--
- Ed Stevens


Sent via Deja.com
http://www.deja.com/
Received on Fri Jan 12 2001 - 10:07:49 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US