PATROL for Oracle Enterprise Database execute SQL queries in the monitored databases to collect data in most attributes. The KM opens a JDBC connection and executes the queries. A query that takes a long time to run can block the connection and affect other queries and cause data gaps. In this KM, to avoid query blocking issues and data gaps, you can set a threshold to release a query when its execution duration is equal or greater than the configured threshold. In this way, only the specific attributes for which the query is collecting data might encounter a data gap.
To set the threshold, go to the affected monitor type (like Oracle Data Guard Database) > Environment Configurations > Collections settings > Long running data collection queries (min).
If the threshold is breached, the Long running queries attribute at the environment level reports the query, the effected category, and attributes.
<can you help me take this screenshot?>
Note
Any configured SQL custom query would be affected by the threshold setting, but if a custom query is blocked, it is annotated in the Query Status attribute and not in the Long running data collection queries attribute.
Recommendations