When creating an object of the class sqlBulkCopy
and sending the method writeToServer
, passing it as parameter a OracleDataReader
this delay more than 15 minutes, the number of rows that I want to copy are close to 140000, I have already checked the table to which I want to make the copy and does not have triggers
, index
, constraints
.
Imports Oracle.ManagedDataAccess.Client
Dim odbReader As OracleDataReader = Nothing
odbReader = funOracle_ExecQuery_RDR(lConnOra, strQuery, False, "", strMsgErr)
try
{
bulkCopy.BatchSize = 32768
bulkCopy.BulkCopyTimeout = 0
bulkCopy.NotifyAfter = 16384
bulkCopy.WriteToServer(odbReader)
}catch(Exception e)
{
Console.WriteLine(ex.Message)
}