My Oracle Support Banner

OracleBulkCopy.WriteToServer() Method Disregards Primary Keys On Destination Table (Doc ID 1181547.1)

Last updated on FEBRUARY 15, 2019

Applies to:

Oracle Data Provider for .NET - Version 9.2.0.8 and later
Microsoft Windows (32-bit)
Microsoft Windows x64 (64-bit)
***Checked for relevance on 23-Dec-2013***

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


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.