query to find all sql statements taking more than a certain amount of time
Oracle Database 19c Enterprise Edition Version 19.18.0.0.0
Hi,
Please I would like the following Information as output from the query
SID,
SERIAL#,
USERNAME,
STARTTIME,
SQLSTATEMENT the client is executing
for all queries that are taking more than a certain amount of time, say around 4 hours of execution time.
For queries taking more then 4hours, I want the SqlStatement and other details like who is executing this statement, and what time the query started.
Thanks in advance for your help.