OracleBulkCopy.WriteToServer() Method Disregards Primary Keys On Destination Table
(Doc ID 1181547.1)
Last updated on MARCH 17, 2025
Applies to:
Oracle Data Provider for .NET - Version 9.2.0.8 and laterMicrosoft Windows (32-bit)
Microsoft Windows x64 (64-bit)
Symptoms
When using the Oracle Data Provider for .NET (ODP.NET) OracleBulkCopy.WriteToServer() method your are able to add duplicate data into the destination table even if a primary key exist on the data that would normally prevent it from being added from a SQL environment.
Here is an example of the problem...
SQL*Plus Script
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |