Auto-SQL monitoring is not triggered for a long running SQL ( Oracle DB 19c EE )
Hi,
I'm executing a long running SELECT query. But I'm not seeing it in the Real-time SQL Monitor.
The query is really heavy. It has joins over large tables with millions of records.
The query has 20 rows and the plan is 15 rows.
The only suspicious part is that the plan expects only a few rows due to a specific optimizer statistics, whereas the actual number is large. However, I'm not looking for the optimization. I just want to see the query it in the SQL monitor.
The total duration of the query is 20 hours. It performs millions of buffer gets and 96% is I/O. Apparently, it's >5 sec of CPU or I/O used.