IBM Support

[Db2] 11.5.6: 32 ビット・アプリケーションからの接続が SQL1042C で失敗する

Troubleshooting


Problem

Db2 11.5.6 AIX および Linux  で 32 ビット・アプリケーションからのデータベース接続が SQL1042C で失敗します。
このとき、アプリケーションが動作するインスタンスの db2diag.log には以下のようなエントリーが記録されます。
2021-10-04-06.10.44.213930+000 I292121G1672         LEVEL: Error
PID     : 99996                TID : 4141586176     PROC : appl32
INSTANCE: db2inst1             NODE : 000
HOSTNAME: db2client.example.com
FUNCTION: DB2 Common, Cryptography, cryptContextRealInit, probe:70
MESSAGE : ECF=0x90000403=-1879047165=ECF_CRYPT_UNEXPECTED_ERROR
          Unexpected cryptographic error
DATA #1 : Hex integer, 4 bytes
0xFFFFFFFE
DATA #2 : Hex integer, 4 bytes
0x0000000A
DATA #3 : Hex integer, 4 bytes
0x00000000
DATA #4 : String, 22 bytes
ICC is not initialized
CALLSTCK: (Static functions may not be resolved correctly, as they are resolved to the nearest symbol)
  [0] 0xF44AF977 pdOSSeLoggingCallback + 0x2B7
  [1] 0xF30B7855 /home/db2inst1/sqllib/lib32/libdb2osse.so.1 + 0xD7855
  [2] 0xF30B8730 ossLog + 0x60
  [3] 0xF3ED2C94 cryptLogICCErrorWithStatus + 0x94
  [4] 0xF3ED51C4 cryptContextRealInit + 0x1D4
  [5] 0xF3ED5C49 cryptContextCheckAndInit + 0xA9
  [6] 0xF3ED6169 cryptDHInit + 0x49
  [7] 0xF4A5E46A sqlexSlcServerEncryptAccsec + 0xBA
  [8] 0xF4A5FA9A _Z33sqlexSlcServerEncryptAuthenticateP14db2UCinterfaceiPj + 0xDA
  [9] 0xF4A11FEB _Z20sqlexAppAuthenticateP14db2UCinterface + 0x8CB
  [10] 0xF4CA2F22 _Z18sqljrDrdaArConnectP14db2UCinterface + 0x92
  [11] 0xF49EA462 _Z16sqleUCdrdaARinitP14db2UCconHandle + 0xF2
  [12] 0xF49DE304 sqleUCappConnect + 0x904

Cause

Db2 11.5.6 AIX および Linux (x86-64, PPCLE, zLinux) のパッケージ・ミスにより、暗号化ライブラリー ICC (IBM Crypt for C)  の署名ファイル (ICCSIG.txt) が存在しないため、ICC の初期化に失敗します。
この問題は APAR IT38027 として報告され、Db2 11.5.7 で修正されています。

Environment

Db2 11.5.6 AIX および Linux 版で動作する 32 ビット・アプリケーション

Resolving The Problem

この問題は 11.5.7 で修正されているため、アプリケーションが動作するシステムを 11.5.7 以降にアップグレードしてください。11.5.7 は以下のページからダウンロード可能です。
なお、クライアント・サーバー間の通信で暗号化が不要な場合、クライアントのデータベース・カタログで以下のように認証タイプを明示して暗号化ライブラリーの初期化をバイパスできます。
db2 uncatalog database <データベース名>
db2 catalog database <データベース名> at node <ノード名> authentication SERVER
お問合せ先
技術的な内容に関して、パスポート・アドバンテージの契約のもと Db2 テクニカル・サポートへお問い合わせください。
Db2 テクニカル・サポート

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"ARM Category":[{"code":"a8m500000008PmnAAE","label":"Security and Plug-Ins-\u003EEncryption"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"}],"Version":"11.5.6"}]

Document Information

Modified date:
15 August 2023

UID

ibm16571515