Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> unique violation on SELECT???
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