概要
Azure Data Facatory にて Oracle Autonomous Database のリンクサービスを作成する方法を共有します。クライアント資格証明(ウォレット)を利用せずに、 Oracle Autonomous Database に Azure Data Fatcory のセルフホステッド統合ランタイムから接続する手順となっております。
追加の接続プロパティとして設定しているencryptionmethod
については、ドキュメントにて次のように説明されています。
ADF では、(リンクされたサービス内の) 接続文字列に EncryptionMethod=1 を追加できます。 これにより、暗号化方法として SSL/TLS が使用されます。
引用元:セキュリティに関する考慮事項 - Azure Data Factory | Microsoft Learn
事前準備
1. Oracle Autonomous Database にてネットワークを設定
Oracle Autonomous Database のページにて、以下が設定されていることを確認。
アクセス制御リストを有効に設定(疎通確認を0.0.0.0/0で実施)
相互TLS (mTLS)認証を不要に設定(相互TLS 相互TLS (mTLS)認証が必要詳細のチェックを外す)
2. Oracle Autonomous Database にて接続文字列を取得
Oracle Autonomous Database のページにて、データベース接続 -> TLS認証をTLSに設定 -> {データベース名}_high(例:kpwq304szjg90by8_high)の接続文字列を表示して、host
とservice_name
の値を控える。
3. セルフホステッド統合ランタイムを構築
実行手順
1. リンクサービスのページにて、+新規
-> Oracle
を選び次
を選択 -> 下記表の設定値を入力 -> テスト接続
-> 作成
を選択
# | 項目 | 設定値 | 設定値例 |
---|---|---|---|
1 | ホスト | Oracle Database のホスト名 | adb.ap-tokyo-1.oraclecloud.com |
2 | ポート | Oracle Database のポート | 1521 |
3 | 接続の種類 | 接続の種類 | Oracle サービス名 |
4 | サービス名 | Oracle Database のサービス名 | g55ca460616b750_kpwq304szjg90by8_high.adb.oraclecloud.com |
5 | ユーザー名 | Oracle Database のユーザー名 | ADMIN |
6 | パスワード | Oracle Database のパスワード | password |
7 | 追加の接続プロパティ_プロパティ名_01 | encryptionmethod | encryptionmethod |
8 | 追加の接続プロパティ_値_01 | 1 | 1 |
2. コピーアクティビティのパイプラインにて動作することを確認
現時点での課題
1. Azure 統合ランタイムからの接続が不可
以下のエラーが発生して接続を確率できず。
ERROR [HY000] [Microsoft][ODBC Oracle Wire Protocol driver]SSL certificate chain could be built up using the untrusted certificates but the root could not be found locally.
ERROR [08001] [Microsoft][ODBC Oracle Wire Protocol driver]SSL Handshake Failure reason [error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed].
ERROR [08001] [Microsoft][ODBC Oracle Wire Protocol driver][Oracle]ORA-12203: unable to connect to destination
2. クライアント資格証明(ウォレット)を利用する方法が不明
truststore と truststorepassword を指定したが、次のエラーが発生。
ERROR [08001] [Microsoft][ODBC Oracle Wire Protocol driver]ORA-12203: unable to connect to destination