DBA_HIST_SQLSTAT
displays historical information about SQL statistics. This view captures the top SQL statements based on a set of criteria and captures the statistics information from V$SQL
. The total value is the value of the statistics since instance startup. The delta value is the value of the statistics from the BEGIN_INTERVAL_TIME
to the END_INTERVAL_TIME
in the DBA_HIST_SNAPSHOT
view.
This view is used with the DBA_HIST_OPTIMIZER_ENV
, DBA_HIST_SQLTEXT
, and DBA_HIST_SQL_PLAN
views to provide a complete picture of historical SQL statistics.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Unique snapshot ID |
|
|
|
Database ID for the snapshot |
|
|
|
Instance number for the snapshot |
|
|
|
SQL identifier of the parent cursor in the library cache |
|
|
|
Numerical representation of the SQL plan for the cursor. Comparing one |
|
|
Cost of the query given by the optimizer |
|
|
|
Mode under which the SQL statement is executed |
|
|
|
Hash Value for the optimizer environment |
|
|
|
Amount of shared memory used by the child cursor (in bytes) |
|
|
|
Indicates whether the context heap is loaded ( |
|
|
|
Number of children associated with the cursor |
|
|
|
Contains the name of the module that was executing at the time that the SQL statement was first parsed, which is set by calling |
|
|
|
Contains the name of the action that was executing at the time that the SQL statement was first parsed, which is set by calling |
|
|
|
Name of the applied SQL Profile |
|
|
|
The signature used when the |
|
|
|
Schema ID that was used to originally build the child cursor |
|
|
|
Schema name that was used to originally build the child cursor |
|
|
|
User ID that was used to originally build the child cursor |
|
|
|
Cumulative number of fetches associated with the SQL statement |
|
|
|
Delta number of fetches associated with the SQL statement |
|
|
|
Cumulative number of times this cursor was fully executed since the cursor was brought into the library cache. The value of this statistic is not incremented when the cursor is partially executed, either because it failed during the execution or because only the first few rows produced by this cursor are fetched before the cursor is closed or re-executed. By definition, the value of the |
|
|
|
Delta number of times this cursor was fully executed since the cursor was brought into the library cache. The value of this statistic is not incremented when the cursor is partially executed, either because it failed during the execution or because only the first few rows produced by this cursor are fetched before the cursor is closed or re-executed. |
|
|
|
Cumulative number of sorts that were done for this child cursor |
|
|
|
Delta number of sorts that were done for this child cursor |
|
|
|
Cumulative number of executions that took place on this object since it was brought into the library cache |
|
|
|
Delta number of executions that took place on this object since it was brought into the library cache |
|
|
|
Cumulative number of PX server executions |
|
|
|
Delta number of PX server executions |
|
|
|
Cumulative number of times the object was either loaded or reloaded |
|
|
|
Delta number of times the object was either loaded or reloaded |
|
|
|
Cumulative number of times this child cursor has been invalidated |
|
|
|
Delta number of times this child cursor has been invalidated |
|
|
|
Cumulative number of parse calls for this child cursor |
|
|
|
Delta number of parse calls for this child cursor |
|
|
|
Cumulative number of disk reads for this child cursor |
|
|
|
Delta number of disk reads for this child cursor |
|
|
|
Cumulative number of buffer gets for this child cursor |
|
|
|
Delta number of buffer gets for this child cursor |
|
|
|
Cumulative number of rows the parsed SQL statement returns |
|
|
|
Delta number of rows the parsed SQL statement returns |
|
|
|
Cumulative value of CPU time (in microseconds) used by this cursor for parsing/executing/fetching |
|
|
|
Delta value of CPU time (in microseconds) used by this cursor for parsing/executing/fetching |
|
|
|
Cumulative value of elapsed time (in microseconds) used by this cursor for parsing/executing/fetching. If the cursor uses parallel execution, then |
|
|
|
Delta value of elapsed time (in microseconds) used by this cursor for parsing/executing/fetching |
|
|
|
Cumulative value of user I/O wait time (in microseconds) |
|
|
|
Delta value of user I/O wait time (in microseconds) |
|
|
|
Cumulative value of cluster wait time (in microseconds) |
|
|
|
Delta value of cluster wait time (in microseconds) |
|
|
|
Cumulative value of application wait time (in microseconds) |
|
|
|
Delta value of application wait time (in microseconds) |
|
|
|
Cumulative value of concurrency wait time (in microseconds) |
|
|
|
Delta value of concurrency wait time (in microseconds) |
|
|
|
Cumulative value of direct writes |
|
|
|
Delta value of direct writes |
|
|
|
Cumulative value of PL/SQL Execution Time (in microseconds) |
|
|
|
Delta value of PL/SQL Execution Time (in microseconds) |
|
|
|
Cumulative value of Java Execution Time (in microseconds) |
|
|
|
Delta value of Java Execution Time (in microseconds) |
|
|
|
Cumulative value of number of I/O bytes which can be filtered by the Exadata storage system See Also: Oracle Exadata Storage Server Software documentation for more information |
|
|
|
Delta value of number of I/O bytes which can be filtered by the Exadata storage system See Also: Oracle Exadata Storage Server Software documentation for more information |
|
|
|
Cumulative value of number of I/O bytes exchanged between Oracle Database and the storage system |
|
|
|
Delta value of number of I/O bytes exchanged between Oracle Database and the storage system |
|
|
|
Cumulative value of number of physical read I/O requests issued by the monitored SQL |
|
|
|
Delta value of number of physical read I/O requests issued by the monitored SQL |
|
|
|
Cumulative value of number of bytes read from disks by the monitored SQL |
|
|
|
Delta value of number of bytes read from disks by the monitored SQL |
|
|
|
Cumulative value of number of physical write I/O requests issued by the monitored SQL |
|
|
|
Delta value of number of physical write I/O requests issued by the monitored SQL |
|
|
|
Cumulative value of number of bytes written to disks by the monitored SQL |
|
|
|
Delta value of number of bytes written to disks by the monitored SQL |
|
|
|
Cumulative value of number of physical reads from the Database Smart Flash Cache or the Exadata Smart Flash Cache by the monitored SQL |
|
|
|
Delta value of number of physical reads from the Database Smart Flash Cache or the Exadata Smart Flash Cache by the monitored SQL |
|
|
|
Cumulative value of number of uncompressed bytes (that is, size after decompression) that are offloaded to the Exadata cells See Also: Oracle Exadata Storage Server Software documentation for more information |
|
|
|
Delta value of number of uncompressed bytes (that is, size after decompression) that are offloaded to the Exadata cells See Also: Oracle Exadata Storage Server Software documentation for more information |
|
|
|
Cumulative value of number of bytes that are returned by the Exadata cell for smart scan only (that is, not including bytes for other database I/O) See Also: Oracle Exadata Storage Server Software documentation for more information |
|
|
|
Delta value of number of bytes that are returned by the Exadata cell for smart scan only (that is, not including bytes for other database I/O) See Also: Oracle Exadata Storage Server Software documentation for more information |
|
|
|
Bind data |
|
|
|
Reserved for internal use |
|
|
|
The database ID of the PDB for the sampled session |
|
|
|
The ID of the container that
|
See Also:
Oracle Database PL/SQL Packages and Types Reference for more information about the DBMS_APPLICATION_INFO
package