Just had another call with the Azure support team and we finally figured out a solution. Here are the steps:
- Create a new linked service
- Select the runtime you'll be using to connect to the DB server
- Scroll to the bottom where it says "Advanced" and expand that option
- Click the checkbox that says "Specify dynamic contents in JSON format"
- In the JSON section use the following format:
{
"properties": {
"type": "Oracle",
"typeProperties": {
"connectionString": "ServerName=<The server name configured in the TNSNAMES.ORA>;TNSNamesFile=D:\\TNSNAMES.ORA;User Id=<username>;Password=<password>"
}
}
ServerName should be whatever name you use to refer to your database in your tnsnames file.
Also note that all of the backslashes in your TNSNamesFile path should be escaped with an extra slash (\).
Once you have your JSON complete, click "Test Connection".
If someone at Microsoft can please add this example to the official documentation for Azure Data Factory connections to Oracle that would be awesome. This is not at all clear (at least to me) in that documentation.
https://learn.microsoft.com/en-us/azure/data-factory/connector-oracle?tabs=data-factory