My Oracle Support Banner

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

Last updated on JANUARY 30, 2022

Applies to:

Oracle Data Provider for .NET - Version and later
Microsoft Windows (32-bit)
Microsoft Windows x64 (64-bit)


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


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

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