When performing an EXPLAIN or "Show SQL Text" operation in Detector for Db2 for z/OS (PDT), the "DETECTOR Plan SQL Display" screen displays the error message:
DT161E: SQL call text locate failed; validation/read error.
The Xmanager address space logs concurrently report the following SQLCODE -922 error:
PDT0220 STC DB2=#### PKGE=#### REQ=CAF-OPEN SQLCODE= -922
This issue prevents the retrieval of SQL text from the Db2 catalog, impacting the ability to analyze SQL statements through Detector.
Product: Detector for Db2 for z/OS
Version: All supported releases
Platform: z/OS
Component: Detector, Xmanager
The message PDT0220 with SQLCODE= -922 and REQ=CAF-OPEN indicates that the Detector for Db2 Xmanager address space lacks the necessary authorization to connect to the Db2 subsystem. Consequently, Xmanager fails to retrieve the SQL text from the Db2 catalog.
To resolve this connection failure, update the authorization for the Xmanager Db2 Authorization ID:
Refer to the Detector User Guide for additional details:
Xmanager Started Task Authorization