LoginSignup
0
0

More than 1 year has passed since last update.

IIS web アプリケーションからOracle Autonomous database接続時のrequest timed outとORA-00542エラー対応

Last updated at Posted at 2021-11-13

概要

IIS web アプリケーションからOracle Autonomous database接続時下記のエラーが発生して、調査と解決方法のメモです。

エラー1

connection request timed out

エラー2

ORA-00542: Failure during SSL handshake

対応方法

先に対応方法を記述、まず試してみてください。

Step1:IISの該当Application PoolのLoadUserProfile を True に設定

image.png

image.png

Step2: IIS or 該当Application Pool再起動


調査経緯

1、 最初はIISのWeb ApplicationからAutonomous databaseに接続の際、 connection request timed out というエラーになる。
同じサーバー別のツールや、テスト用のNet Application からAutonomous databaseへ無事に接続できる。
ネットワーク、ファイアウォールなどの問題ではない、IISの問題と判断。

ただ、ここで数時間いろいろ調査して進展なし、心が折れそう:cry:

2、tnsname.ora の中身を確認

 *****=(description= (retry_count=20)(retry_delay=3)********

retry_count=20を注目、retry_count=1 に変更して再度テスト。

今度エラーはORA-00542: Failure during SSL handshakeになった

光が見えてきた。:smile::smile:

3、ORA-00542とAutonomous を検索して、下記の記事を参照して問題解決

後記

今回のトラブルシューティング、最初は connection request timed out というエラーばかり注目、何も進みませんでした。
retry回数が多いことによってtimed outエラーになり、本来のORA-00542をキャッチできませんでした。
ダメ元でretry回数変更してテストしたら大きな進展がありました。

感想:
1.エラーの表象から問題解決のヒントをまったく得られない時ある
2.アイディアがありましたら、なんでも試してみること重要

良い経験になりました。:beers:

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