Written by

Question Don Mangold · Jul 10, 2024

Capturing the SQL command sent to Cache for an external system

Is there a way to capture the SQL command that was sent to Cache ? I need to know how to do this. Any help would be appreciated. It is from an external application using JDBC or OBDC. Thanks

Product version: Caché 2017.1
$ZV: Cache for UNIX (Red Hat Enterprise Linux for x86-64 U2/M) 2017.2.2 (Build 865_3_19827U) Mon Mar 30 2020 14:14:50 EDT [HealthShare Modules:Core:15.032.9688 + Linkage Engine:15.032.9688]

Comments

Don Mangold · Jul 10, 2024

But I cannot see the SQL statement which I expected to see in the Audit Data. Would it be some place else? Thanks

0
Alexander Koblov  Jul 10, 2024 to Don Mangold

Please double-check that you enabled Audit itself, and these events particularly

0
Robert Cemper · Jul 10, 2024

Basically every SQL statement whether internal or external is cached for eventual reuse in future
You can find Cached Queries from  SMP > System Explorer > SQL > Cached Query

clicking on one in the list you get the details

Tab SQL Statements shows much more details

Click on SQL Statement Text offers a further drill down into details

0