0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Azure Data Facatory にて Oracle Autonomous Database のリンクサービスを作成する方法

Last updated at Posted at 2024-02-15

概要

Azure Data Facatory にて Oracle Autonomous Database のリンクサービスを作成する方法を共有します。クライアント資格証明(ウォレット)を利用せずに、 Oracle Autonomous Database に Azure Data Fatcory のセルフホステッド統合ランタイムから接続する手順となっております。

追加の接続プロパティとして設定しているencryptionmethodについては、ドキュメントにて次のように説明されています。

ADF では、(リンクされたサービス内の) 接続文字列に EncryptionMethod=1 を追加できます。 これにより、暗号化方法として SSL/TLS が使用されます。

image.png

引用元:セキュリティに関する考慮事項 - Azure Data Factory | Microsoft Learn

事前準備

1. Oracle Autonomous Database にてネットワークを設定

Oracle Autonomous Database のページにて、以下が設定されていることを確認。

アクセス制御リストを有効に設定(疎通確認を0.0.0.0/0で実施)
相互TLS (mTLS)認証を不要に設定(相互TLS 相互TLS (mTLS)認証が必要詳細のチェックを外す)

image.png

image.png

2. Oracle Autonomous Database にて接続文字列を取得

Oracle Autonomous Database のページにて、データベース接続 -> TLS認証をTLSに設定 -> {データベース名}_high(例:kpwq304szjg90by8_high)の接続文字列を表示して、hostservice_nameの値を控える。

image.png

3. セルフホステッド統合ランタイムを構築

実行手順

1. リンクサービスのページにて、+新規 -> Oracleを選びを選択 -> 下記表の設定値を入力 -> テスト接続 -> 作成を選択

image.png

image.png

# 項目 設定値 設定値例
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

image.png

2. コピーアクティビティのパイプラインにて動作することを確認

image.png

現時点での課題

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

image.png

2. クライアント資格証明(ウォレット)を利用する方法が不明

truststore と truststorepassword を指定したが、次のエラーが発生。

image.png

ERROR [08001] [Microsoft][ODBC Oracle Wire Protocol driver]ORA-12203: unable to connect to destination

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?