Hi,
To capture the SQL query that a session was running just before it reaches the SESSION_LIMIT_MEMORY and terminates, you can consider using database monitoring tools or querying the database logs directly. These tools can provide insights into the recent queries executed by the session, helping you identify the SQL statement responsible for the high memory usage. Additionally, reviewing database performance monitoring reports or enabling detailed logging can offer further visibility into session activities leading up to the termination.
------------------------------
Kelly Doyle
------------------------------
Original Message:
Sent: Wed July 17, 2024 05:32 AM
From: Steven Weiss
Subject: SESSION_LIMIT_MEMORY
Hi All,
I have SESSION_LIMIT_MEMORY set and I'm trying to find out what sql the session was running just before the engine terminates it. On occasion, we encounter a session with high memory usage.
I've tried alarmprogram but seems engine terminates the session prior to hitting this script.
Any ideas ?
Regards
Steven