Copy Data to Oracle destination

Alessandro Zenato 0 Reputation points
2024-01-08T17:29:59.3033333+00:00

We are trying to copy data to an Oracle DWH, and we are facing issue when trying with different setups on the “Write Batch Size” parameter.

 

The copy activity works when we set the “Write Batch Size” to 1, but of course performances are bad, it writes about 10.000 rows in 5 minutes.

alessandro_horsa_0-1702889747672

To speed up copy we are trying to set the parameter to the default value of 10.000

alessandro_horsa_1-1702889747686

 

But in this case, copy data fails with the following error:

Failure happened on 'Sink' side. ErrorCode=UserErrorOdbcOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ERROR [HY000] [Microsoft][ODBC Oracle Wire Protocol driver][Oracle]ORA-00604: error occurred at recursive SQL level 1
ORA-01031: insufficient privileges
Error in parameter 1.,Source=Microsoft.DataTransfer.ClientLibrary.Odbc.OdbcConnector,''Type=Microsoft.DataTransfer.ClientLibrary.Odbc.Exceptions.OdbcException,Message=ERROR [HY000] [Microsoft][ODBC Oracle Wire Protocol driver][Oracle]ORA-00604: error occurred at recursive SQL level 1
ORA-01031: insufficient privileges
Error in parameter 1.,Source=msora28.dll,'

 

So far we have INSERT privileges on Oracle Schema (in fact writing works with parameter = 1 and using direct SQL), but it looks like something different is used with the default value on Write Batch Size

 

We don’t want to focus on the error message, it is obvious that it has been raised on the Oracle Side.

But we need more information in order to understand what’s causing the issue. It looks like ADF is using two different ways to copy data depending on the value of the parameter.

 

Any help would be greatly appreciated.

 

Thanks in advance

Alessandro

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

1 answer

Sort by: Most helpful
  1. Alessandro Zenato 0 Reputation points
    2025-09-23T12:49:29.3866667+00:00

    We resolved the issue changing the connection to Oracle. Now we use an Oracle user with the same name of the Oracle schema. (I don't know much about Oracle configuration becuase it is managed by third-party).

    Nothing else changed, using this different user the copy activity runs fast.

    Alessandro

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.