Oracle connection string in Azure Key Vault

John Connor 316 Reputation points
2021-10-04T10:39:33.01+00:00

How does one specify an Oracle connection in key vault? the connection type is a service name

Unfortunately there is no information on this page: https://learn.microsoft.com/en-us/azure/data-factory/connector-oracle?tabs=data-factory

So it needs to have host, port, service name, user, password

this page also does not provide the answer, despite dozens of options :D
https://www.connectionstrings.com/oracle/

ps: the search results within this page were not helpful at all

Edit: I would like to set up a linked service in ADF that specifies the connection to Oracle using Key Vault (it is possible by specifying all details, but I would prefer key vault)

137319-image.png

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 Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
0 comments No comments
{count} votes

Accepted answer
  1. Saurabh Sharma 23,846 Reputation points Microsoft Employee Moderator
    2021-10-05T05:55:13.737+00:00

    Hi @John Connor ,

    Thanks for using Microsoft Q&A !!
    You need to store the Oracle connection string like below in the Azure Key Vault which you can use from your linked service if you are connecting using SID.
    Host=<host>;Port=<port>;ServiceName=<servicename>;User Id=<username>;Password=<password>;

    So, you Azure Key Vault secret value could be something like below -
    137579-image.png

    You can refer to this secret from your linked service and you should be able to connect to your oracle instance. (see below)
    137634-image.png

    I have tested the same and it worked fine. You can refer to the documentation you have referred to get the correct connection string format.
    Additionally, you could also test your connection without using Azure Key Vault then check the linked services JSON to get the format. (see below). You need to however add the password at the end of the connection string.

    137662-image.png
    Please let me know if you have any questions.

    Thanks
    Saurabh

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.