Method and mechanism for out-of-the-box real-time SQL monitoring
AssigneeOracle International Corporation
InventorsBenoit Dageville, Venkateshwaran Venkataramani
Life of this patent
Estimating the term…
Abstract
Methods, systems, and computer program products for monitoring database queries and executions is disclosed. The query syntax may conform to the structured query language (SQL). The approach supports various performance statistics to be monitored at each step of the query statement's execution plan and for each row processed in order to meet requirements of a near real-time query monitoring solution. Such statistics include timing information plus some miscellaneous statistics like the number of rows processed, the amount of memory used, the amount of data spilled to disk, etc.
Claims24
A method for near real-time monitoring of a query in a database system, comprising:
- determining whether or not to monitor an execution of the query;
- in response to determination that the execution of the query is to be monitored, periodically collecting, by using a computer system comprising a processor, a plurality of statistics from the execution of the query;
- storing the plurality of periodically collected statistics during the execution of the query;
- periodically gathering performance statistics from the plurality of stored statistics using background processes for analysis during the execution of the query;
- storing the periodically gathered performance statistics in a volatile or non-volatile computer-useable medium;
- estimating a time to completion for the query by analyzing the stored performance statistics.
A computer program product comprising a computer useable medium having executable code to execute a process by a processor for monitoring a query in a database system, the process comprising:
- determining whether or not to monitor an execution of the query;
- in response to determination that the execution of the query is to be monitored, periodically collecting, plurality of statistics from the execution of the query;
- storing the plurality of periodically collected statistics during the execution of the query;
- periodically gathering performance statistics from the plurality of stored statistics using background processes for analysis during the execution of the query;
- storing the periodically gathered performance statistics in a volatile or non-volatile computer-useable medium;
- estimating a time to completion for the query by analyzing the stored performance statistics.
A system for monitoring a query in a database system, comprising:
- a processor;
- a memory for holding programmable code;
- and
- wherein the programmable code includes instructions executable by the processor for:
- determining whether or not to monitor an execution of the query;
- in response to determination that the execution of the query is to be monitored, periodically collecting, a plurality of statistics from the execution of the query;
- storing the plurality of periodically collected statistics during the execution of the query;
- periodically gathering performance statistics from the plurality of stored statistics using background processes for analysis during the execution of the query;
- storing the periodically gathered performance statistics in a volatile or non-volatile computer-useable medium;
- estimating a time to completion for the query by analyzing the stored performance statistics.
Dependencies are inferred from the claim text.