9.46 V$SQL
V$SQL
lists statistics on shared SQL areas without the GROUP BY
clause and contains one row for each child of the original SQL text entered. Statistics displayed in V$SQL
are normally updated at the end of query execution. However, for long running queries, they are updated every 5 seconds. This makes it easy to see the impact of long running SQL statements while they are still in progress.
Column | Datatype | Description |
---|---|---|
|
|
First thousand characters of the SQL text for the current cursor |
|
|
Full text for the SQL statement exposed as a |
|
|
SQL identifier of the parent cursor in the library cache |
|
|
Amount of shared memory used by the child cursor (in bytes) |
|
|
Fixed amount of memory used for the lifetime of the child cursor (in bytes) |
|
|
Fixed amount of memory required during the execution of the child cursor |
|
|
Number of sorts that were done for the child cursor |
|
|
Indicates whether the context heap is loaded ( |
|
|
Indicates whether the child cursor is locked ( |
|
|
Number of users that have any of the child cursors open |
|
|
Number of fetches associated with the SQL statement |
|
|
Number of executions that took place on this object since it was brought into the library cache |
|
|
Total number of executions performed by parallel execution servers ( |
|
|
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 |
|
|
Number of users executing the statement |
|
|
Number of times the object was either loaded or reloaded |
|
|
Timestamp of the parent creation time |
|
|
Number of times this child cursor has been invalidated |
|
|
Number of parse calls for this child cursor |
|
|
Number of disk reads for this child cursor |
|
|
Number of direct writes for this child cursor |
|
|
Number of direct reads for this child cursor |
|
|
Number of buffer gets for this child cursor |
|
|
Application wait time (in microseconds) |
|
|
Concurrency wait time (in microseconds) |
|
|
Cluster wait time (in microseconds) |
|
|
User I/O Wait Time (in microseconds) |
|
|
PL/SQL execution time (in microseconds) |
|
|
Java execution time (in microseconds) |
|
|
Total number of rows the parsed SQL statement returns |
|
|
Oracle command type definition |
|
|
Mode under which the SQL statement was executed |
|
|
Cost of this query given by the optimizer |
|
|
Optimizer environment |
|
|
Hash value for the optimizer environment |
|
|
User ID of the user who originally built this child cursor |
|
|
Schema ID that was used to originally build this child cursor |
|
|
Schema name that was used to originally build this child cursor |
|
|
Indicates whether this child cursor has been marked to be kept pinned in the cache using the |
|
|
Address of the handle to the parent for this cursor |
|
|
Descriptor of the type check heap for this child cursor |
|
|
Hash value of the parent statement in the library cache |
|
|
Old SQL hash value |
|
|
Numeric representation of the current SQL plan for this cursor. Comparing one |
|
|
Numeric representation of the complete SQL plan for this cursor. Comparing one |
|
|
Number of this child cursor |
|
|
Service name |
|
|
Hash value for the name listed in the |
|
|
Contains the name of the module that was executing when the SQL statement was first parsed, which is set by calling |
|
|
Hash value of the module listed in the |
|
|
Contains the name of the action that was executing when the SQL statement was first parsed, which is set by calling |
|
|
Hash value of the action listed in the |
|
|
Number of times the transaction failed to serialize, producing |
|
|
If an outline was applied during construction of the cursor, then this column displays the category of that outline. Otherwise the column is left blank. |
|
|
CPU time (in microseconds) used by this cursor for parsing, executing, and fetching |
|
|
Elapsed database time (in microseconds) used by this cursor for parsing, executing, and fetching. If the cursor uses parallel execution, then Note that this column displays database time, not wall clock time. In some cases, |
|
|
Outline session identifier |
|
|
Address of the child cursor |
|
|
Denotes the version of the SQL language used for this statement |
|
|
Indicates whether the cursor is remote mapped ( |
|
|
Status of the cursor:
|
|
|
Hash value of the literals which are replaced with system-generated bind variables and are to be matched, when |
|
|
Time at which the query plan was loaded into the library cache |
|
|
Indicates whether the cursor has become obsolete ( |
|
|
Indicates whether the cursor is bind sensitive ( |
|
|
Indicates whether the cursor is bind aware ( |
|
|
Indicates whether the cursor can be shared ( |
|
|
Child latch number that is protecting the cursor. This column is obsolete and maintained for backward compatibility. |
|
|
SQL profile used for this statement, if any |
|
|
SQL patch used for this statement, if any |
|
|
SQL plan baseline used for this statement, if any |
|
|
Program identifier |
|
|
Program line number |
|
|
Signature calculated on the normalized SQL text. The normalization includes the removal of white space and the uppercasing of all non-literal strings. |
|
|
Signature used when the |
|
|
Time at which the query plan was last active |
|
|
Bind data |
|
|
Typecheck memory |
|
|
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 |
|
|
Number of I/O bytes exchanged between Oracle Database and the storage system |
|
|
Number of physical read I/O requests issued by the monitored SQL |
|
|
Number of bytes read from disks by the monitored SQL |
|
|
Number of physical write I/O requests issued by the monitored SQL |
|
|
Number of bytes written to disks by the monitored SQL |
|
|
Number of physical read I/O requests from Database Smart Flash Cache issued by the monitored SQL |
|
|
Total number of times the child cursor has been locked |
|
|
Total number of times the child cursor has been pinned |
|
|
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 |
|
|
Number of filtered bytes returned by Exadata cells (that is, the number of bytes returned after processing has been offloaded on the Exadata cells) See Also: Oracle Exadata Storage Server Software documentation for more information |
|
|
The ID of the container to which the data pertains. Possible values include:
|
|
|
This column shows whether the next execution matching this child cursor will trigger a reoptimization. The values are:
|
|
|
This column shows whether all of the adaptive parts of a plan have been resolved to the final plan. Once the plan is resolved, the plan hash value and the plan displayed by
See Also: Oracle Database PL/SQL Packages and Types Reference for more information about the |
|
|
Number of In-Memory Column Store (IM column store) segment scans |
|
|
Uncompressed size of data scanned from the IM column store |
|
|
In-memory size of data scanned from the IM column store |
|
|
Indicates if a DDL statement updated a dependent object and did not invalidate this cursor. The values are:
|
|
|
Indicates if this cursor is rolling invalidated. The values are:
|
|
|
Indicates if this cursor is rolling invalidated and requires execution time refresh. The values are:
|
|
|
Indicates whether the SQL statement used the result cache ( |
|
|
If the execution plan for this cursor is quarantined, then this column contains the name of the SQL quarantine configuration (corresponds to the |
|
|
Number of times this cursor was prevented from being used due to the plan being quarantined |
Footnote 1 This column is available starting with Oracle Database 19c.
See Also:
-
Oracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_SHARED_POOL
package -
Oracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_APPLICATION_INFO.SET_MODULE
procedure -
Oracle Database PL/SQL Packages and Types ReferenceOracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_APPLICATION_INFO.SET_ACTION
procedure -
Oracle Database PL/SQL Packages and Types ReferenceOracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_XPLAN
package