How do I find out what query is it running?SAVEPOINT _per_query_svp_;DEALLOCATE "_PLAN0x7fdd58004550";RELEASE _per_query_svp_
That is the last command (multi-statement though it is) that was executed before the transaction/session went idle.
David J.