Unable to access oracle database from a port using SSL Certificate from Synapse

Xhevahir Mehalla 25 Reputation points
2024-09-24T14:26:11.63+00:00

Hello -

I am struggling to get something working.

Here's the setup:

  1. Use synapse to connect to Oracle OCI database - using port 1521 no encryption and is working fine
  2. Oracle dba creating a new port 2484 which is encrypted
  3. Azure team received the server_ca.cert file from Oracle team
  4. We placing the about file on the VM where are running self-hosted Integration RunTime under c:\app\wallet\server_ca.cert file.
  5. I am trying different ways to create a service link but I cannot make it work.
  6. I use the Key vault to create the connection strings like this: Host=dbname;Port=2484;ServiceName=servicename;User Id=user;Password=user;EncryptionMethod=1;TrustStore=C:\app\wallet;
  7. I tried to create the service link and I get unable to access the TrustStore.
  8. I even to trust to add the ca on the connection string like this: Host=dbname;Port=2484;ServiceName=servicename;User Id=user;Password=user;EncryptionMethod=1;TrustStore=data:// -----BEGIN CERTIFICATE-----certificate-----END CERTIFICATE----- but gives me userName and password error message which is not true.

I can provide you the script if that helps.

Not sure what am I doing wrong.

Please can you help me with this.

Thanks

Xhev

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,448 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
{count} votes

1 answer

Sort by: Most helpful
  1. phemanth 15,755 Reputation points Microsoft External Staff Moderator
    2024-09-26T12:59:21.52+00:00

    @Xhevahir Mehalla

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .

    **Ask:**I am struggling to get something working.

    Here's the setup:

    1. Use synapse to connect to Oracle OCI database - using port 1521 no encryption and is working fine
    2. Oracle dba creating a new port 2484 which is encrypted
    3. Azure team received the server_ca.cert file from Oracle team
    4. We placing the about file on the VM where are running self-hosted Integration RunTime under c:\app\wallet\server_ca.cert file.
    5. I am trying different ways to create a service link but I cannot make it work.
    6. I use the Key vault to create the connection strings like this: Host=dbname;Port=2484;ServiceName=servicename;User Id=user;Password=user;EncryptionMethod=1;TrustStore=C:\app\wallet;
    7. I tried to create the service link and I get unable to access the TrustStore.
    8. I even to trust to add the ca on the connection string like this: Host=dbname;Port=2484;ServiceName=servicename;User Id=user;Password=user;EncryptionMethod=1;TrustStore=data:// -----BEGIN CERTIFICATE-----certificate-----END CERTIFICATE----- but gives me userName and password error message which is not true.

    I can provide you the script if that helps.

    Not sure what am I doing wrong.

    Solution:I have used a different version of this.

    I created the Oracele Connection String as Secret in the key . I added the CA certificate on the Connection string as ---- begin certificate ----- end certificate and seem to work ok.

    Not sure which one is the best way to follow but at least I found one way how to do it.

    Thanks for your help and your suggestions.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.


    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

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