Thank you for your response.
In the idmc (IBM Data Management Console) repository database,
I can retrieve information about a specific appl_id that was executed in the past as shown below.
db2 "select appl_name,thresh_violations,pool_temp_data_l_reads,sql_text_summary,sqlcode,collected + 9 hours,sql_hash_id
from ibmconsole.event_activity
where appl_id = '10.3.2.35.53386.230817083042'"
However, I'm unable to retrieve the complete SQL text.
I'm inquiring about this because the idmc web console displays the complete SQL text.
It seems that there might be information stored in a certain table, and I would like to know the table and columns involved."
------------------------------
JH Kim
------------------------------
Original Message:
Sent: Thu August 17, 2023 01:42 AM
From: Ondřej Žižka
Subject: How to check the full SQL text in idmc?
Hello,
Have you tried to use EVENT MONITOR to track the pkg cache? If you store the output to e.g. unformatted event (UE) table. You can then filter the queries by the APPL_ID. The structure of the table is as follows:
[db2inst1@db2dev ~]$ db2 describe table TRACKSTMTS Data type ColumnColumn name schema Data type name Length Scale Nulls------------------------------- --------- ------------------- ---------- ----- ------PARTITION_KEY SYSIBM INTEGER 4 0 No APPL_ID SYSIBM VARCHAR 64 0 Yes APPL_NAME SYSIBM VARCHAR 255 0 Yes EVENT_CORRELATION_ID SYSIBM VARCHAR 32 0 Yes EVENT_DATA SYSIBM BLOB 142627332 0 No EVENT_ID SYSIBM BIGINT 8 0 No EVENT_TIMESTAMP SYSIBM TIMESTAMP 10 6 No EVENT_TYPE SYSIBM VARCHAR 128 0 No MEMBER SYSIBM SMALLINT 2 0 No RECORD_SEQ_NUM SYSIBM BIGINT 8 0 No RECORD_TYPE SYSIBM BIGINT 8 0 No SERVICE_SUBCLASS_NAME SYSIBM VARCHAR 128 0 Yes SERVICE_SUPERCLASS_NAME SYSIBM VARCHAR 128 0 Yes WORKLOAD_NAME SYSIBM VARCHAR 128 0 Yes MON_INTERVAL_ID SYSIBM BIGINT 8 0 Yes 15 record(s) selected.
It is then a little bit tricky, to export the SQL statements, but see this link for more info about the process.
https://www.ibm.com/docs/en/db2/11.5?topic=cpcedgr-example-using-package-cache-information-db2advis-look-performance-improvement-opportunities
Regards
Ondrej
------------------------------
Ondřej Žižka
Original Message:
Sent: Wed August 16, 2023 10:54 PM
From: JH Kim
Subject: How to check the full SQL text in idmc?
I am tracking a specific application that is causing issues.
I am investigating using the query below in the idmc repository database:
db2 "select appl_name,thresh_violations,pool_temp_data_l_reads,sql_text_summary,sqlcode,collected + 9 hours
from ibmconsole.event_activity
where appl_id = '10.3.2.35.53386.230817083042'"
My question is, where can I find the complete SQL text of the application?
I appreciate your assistance.
------------------------------
JH Kim
------------------------------