
The command below is to find the specific user historical query statements in the SAP HANA database. You can replace the ‘USERNAME’ to your required user-id.
select statement_string, last_execution_timestamp
from SYS.M_SQL_PLAN_CACHE where
user_name = 'USERNAME' order by
last_execution_timestamp desc;
Example on the output result,




Hi
I would like to execution start time and execution end time for the user history queries.