Monitoring of wait time attributes of SQL query

Monitor your Oracle database by using BMC Helix Operations Management or TrueSight Operations Management and proactively know about the issues that might occur. Take preventive measures to avoid disruption in the database services. Monitoring the wait time attributes of an SQL query helps in identifying the queries that take more time to execute. You get the total waiting time for these queries. Use it to identify possible blockers in your environment that are causing the delay and fix the issues proactively.

PATROL for Oracle Enterprise Database stores the wait time information in attributes. Use these attributes to understand the reason of long execution time and proactively resolve the issue. 

To enable the monitoring of wait time attributes at environment level

Configure the wait time attributes configurations for the following monitor types:

To enable the monitoring of wait time attributes at global level

Configure the following variable to monitor the wait time attributes:

VariableDescription
/KOE/Oracle/isTopNQueriesSelected

Enables or disables the filter for top n queries by total wait time.
Set this to 1 to enable.
Set this to 0 to disable. 

Additionally, you can configure the following variables:

VariableDescription
/KOE/Oracle/topNqueryLimit

Sets the number of queries to filter.
The default value is 15. The valid input range is 1-100.

/KOE/Oracle/maxQueryInstances

Sets the value for the maximum number of query instances to filter.
The default value is 1000. The valid input range is 1-2500.

/KOE/Oracle/maxQueryDays

Sets the number of days to keep the query instance.
The default value is 15 days. The valid input range is from 1-60 days.

/KOE/Oracle/waitTimeCollector

Sets the collection time for the wait time query attributes. This field is applicable for query instances attributes only.
The default value is 300 seconds. The valid input range is from 300-3600 seconds.

To add a configuration variable

  1. Click Configuration and select Infrastructure Policies.
  2. Locate the infrastructure policy and click Edit.
  3. Click the Configuration Variables tab and then click Add Configuration Variable.
  4. On the Add Configuration Variable page, in the Variable field, enter the variable path and name.
    For example, /KOE/Oracle/waitTimeCollector.
  5. From the Operation list, select REPLACE
    You create a new variable by using the REPLACE operation. 
    Use the following options for the existing variables:
    • DELVAR: Deletes the variable and disables the task for which you created it. The value is deleted after you save the policy.
    • DELETE: Sets the variable value to an empty string. The value is deleted after you save the policy.
  6. In the Value field, enter the value of the variable.
    If you do not enter a value, default value of the variable is used.

Where to go from here

Configure the wait time attributes collection configurations for the following monitor types:

Was this page helpful? Yes No Submitting... Thank you

Comments