Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Copy with PK problem in oracle 9i
On 27 Feb 2003 12:20:37 -0800, nguyend4_at_hotmail.com (David Nguyen)
wrote:
> Is there anyway that I can copy to another table when it see the
>duplicate PK it just skip that PK and move to the next one? (I disable
>the trigger because I want to reserve the same PK number)
Sure. create an exceptions table using the utlexcp script (IIRC, and
that would be located in $ORACLE_HOME/rdbms/admin)
and set up the primary key with
'exceptions into <your newly created exceptions table>'
The doco has further details.
Hth
Sybrand Bakker, Senior Oracle DBA
To reply remove -verwijderdit from my e-mail address Received on Thu Feb 27 2003 - 17:55:10 CST