How to get the new data factory oracle 2.0 connector to connect?

Blasko, Dan W 60 Reputation points
2025-05-22T14:01:06.2+00:00

We currently connect to oracle using the 1.0 connector.

We must be moved to the new oracle 2.0 connector before end of support, 7/31/25.

I was able to get this to connect to a non encrypted database, but unable to connect to an encrypted database.

I had to add encryption client and crypto checksum client to get this to connect to our non encrypted dev.

Those changes will not work for production.

For dev, I used "accepted" for both.

For prod, i tried both accepted and required

User's image

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

3 answers

Sort by: Most helpful
  1. Moshekov, Ivaylo 0 Reputation points
    2025-07-14T10:37:52.94+00:00

    Hey, I have been following this post in close detail as recently I have also tried to upgrade to the v2 oracle connector, but have failed to do so.

    I have self-hosted IR installed on Windows Server 2022 with TLS 1.3 enabled and have the required additional properties already set up in the linked service. The Oracle source version is 19c (v.19.26).

    I have stuck at the error "Test connection operation failed. Failed to open the Oracle database connection. ORA-50201: Oracle Communication: Failed to connect to server or failed to parse connect string ORA-00542: SSL Handshake failed https://docs.oracle.com/error-help/db/ora-00542/ A call to SSPI failed, see inner exception. The message received was unexpected or badly formatted".

    Inspecting the inner details I have seen the full error message:

    TestConnection failed, error message: 'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Test connection operation failed.,Source=Microsoft.DataTransfer.Connectors.OracleV2Core,StackTrace=   at Microsoft.DataTransfer.Connectors.OracleV2Core.OracleV2CoreValidator.TestConnection()    at Microsoft.DataTransfer.TransferTask.InteractiveTaskFactoryV2.ConnectorTestConnection(ConnectionSetting connectionSetting, TestConnectionV2Response response)    at Microsoft.DataTransfer.TransferTask.InteractiveTaskFactoryV2.TestConnection(TestConnectionV2Request request, TestConnectionV2Response response, OperationContext context, CancellationToken token)    at Microsoft.DataTransfer.TransferTask.InteractiveTask2.Execute(),''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Failed to open the Oracle database connection.,Source=Microsoft.DataTransfer.Connectors.OracleV2Core,StackTrace=   at Microsoft.DataTransfer.Connectors.OracleV2Core.OracleV2CoreConnection.Open()    at Microsoft.DataTransfer.Connectors.OracleV2Core.OracleV2CoreValidator.TestConnection(),''Type=Oracle.ManagedDataAccess.Client.OracleException,Message=ORA-50201: Oracle Communication: Failed to connect to server or failed to parse connect string,Source=Oracle Data Provider for .NET, Managed Driver,StackTrace=   at OracleInternal.ConnectionPool.PoolManager3.Get(ConnectionString csWithDiffOrNewPassw, Boolean bGetForApp, OracleConnection connRefForCriteria, String affinityInstanceName, Boolean bForceMatch, Boolean bAsync)    at OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassw, Boolean bGetForApp, OracleConnection connRefForCriteria, String affinityInstanceName, Boolean bForceMatch, Boolean bAsync)    at OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, OracleOpaqueString securedPassw, OracleOpaqueString securedProxyPassw, OracleConnection connRefForCriteria, Boolean bAsync)    at Oracle.ManagedDataAccess.Client.OracleConnectionInternal.OpenInternal(Boolean bAsync)    at Oracle.ManagedDataAccess.Client.OracleConnectionInternal.Open()    at Oracle.ManagedDataAccess.Client.OracleConnection.Open()    at Microsoft.DataTransfer.Connectors.OracleV2Core.OracleV2CoreConnection.Open(),''Type=OracleInternal.Network.NetworkException,Message=ORA-50201: Oracle Communication: Failed to connect to server or failed to parse connect string,Source=Oracle.ManagedDataAccess,StackTrace=   at OracleInternal.Network.OracleCommunication.DoConnect(String tnsDescriptor, Boolean bAsync)    at OracleInternal.ServiceObjects.OracleConnectionImpl.Connect(ConnectionString cs, Boolean bOpenEndUserSession, OracleConnection connRefForCriteria, String instanceName, Boolean bAsync),''Type=OracleInternal.Network.NetworkException,Message=ORA-00542: SSL Handshake failed https://docs.oracle.com/error-help/db/ora-00542/,Source=Oracle.ManagedDataAccess,StackTrace=   at OracleInternal.Network.TcpsTransportAdapter.Negotiate(ConnectionOption conOption)    at OracleInternal.Network.OracleCommunication.SendConnectPacketAndProcessResponse(AddressResolution addrRes, Boolean bAsync)    at OracleInternal.Network.OracleCommunication.ConnectViaCO(ConnectionOption connOption, AddressResolution addrRes, Boolean bAsync),''Type=System.Security.Authentication.AuthenticationException,Message=A call to SSPI failed, see inner exception.,Source=System,StackTrace=   at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)    at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)    at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)    at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)    at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)    at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest, Boolean renegotiation)    at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)    at OracleInternal.Network.TcpsTransportAdapter.Negotiate(ConnectionOption conOption),''Type=System.ComponentModel.Win32Exception,Message=The message received was unexpected or badly formatted,Source=,'. Log ID: Error

    Would you be able to guide me on some possible next actions?


  2. Shailu81 0 Reputation points
    2025-08-25T19:09:43.58+00:00

    I also ran into the same error and have been working with msft support for over one month and issue hasn't been resolved yet. Below is the exact error message I saw while testing oracle ls 2.0 over tls enabled port: Failed to open the Oracle database connection. ORA-50201: Oracle Communication: Failed to connect to server or failed to parse connect string ORA-00542: SSL Handshake failed https://docs.oracle.com/error-help/db/ora-00542/ A call to SSPI failed, see inner exception. The message received was unexpected or badly formatted". This has been really time consuming so far and we haven't found any clues on yet. Any help/guidance to resolve the issue would be greatly appreciated. Thanks!


  3. roeland rens 0 Reputation points
    2025-10-22T14:29:15.67+00:00

    regarding PROTOCOL=TCPS in version 2.0 on oracle 19c
    resulting in
    Failed to open the Oracle database connection. ORA-50201: Oracle Communication: Failed to connect to server or failed to parse connect string ORA-00542: SSL Handshake failed https://docs.oracle.com/error-help/db/ora-00542/ ...

    check if you have an environment variable TNS_ADMIN pointing to to your tnsnames.ora and sqlnet.ora with the wallet_location specified within.

    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.