How to Add alternate host in ADF linked service?

Chilla, Vishwanatha 51 Reputation points
2021-10-12T21:42:16.817+00:00

We are adding a DR environment in our on prem Oracle database, how can we include alternate host in ADF linked service.

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

Accepted answer
  1. Cornelius Munz 81 Reputation points
    2022-11-21T11:29:25.253+00:00

    Hi @Chilla, Vishwanatha

    I have had the same issue and was able now to solve it with adding an additional connection property "alternateservers" Here you can provide multiple additional servers for you connection.

    Property name: AlternateServers
    Property value: (HostName=<secondary host>:PortNumber=<secondary port>:ServiceName=<secondary service name>)

    Or if you use a SID connection type
    Property value: (HostName=<secondary host>:PortNumber=<secondary port>:SID=<secondary SID name>)

    You can even add mutliple additional servers only by concatenating the entries with addtional ":"

    I found that this solution is already described in the documentation in the section "Linked service properties" :
    https://learn.microsoft.com/en-us/azure/data-factory/connector-oracle?tabs=data-factory

    Here you can find a screenshot, how to add that additional parameter:

    262661-oracle-alternateservers.png

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,546 Reputation points Microsoft Employee Moderator
    2021-10-13T13:56:47.747+00:00

    Hi @Chilla, Vishwanatha ,

    Thank you for posting query in Microsoft Q&A Platform.

    It seems you are trying to make your Oracle database linked service dynamic, so that you can point to DR database also dynamically. Please correct me if its not the case.

    If above statement is correct, then you should consider having parameters created inside your linked service and use them.

    You can refer below links to know about parameterizing linked services.

    In below screenshot I created parameters called "Hostname" & "SID" and used that parameters inside linked service. Similarly you can create more parameters and use for what ever configuration you want inside linked service.
    140238-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer 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.