V$SQLAREA解析

lfree發表於2007-05-12

V$SQLAREA lists statistics on shared SQL area and contains one row per SQL string. It provides statistics on SQL statements that are in memory, parsed, and ready for execution.

ColumnDatatypeDescription
SQL_TEXTVARCHAR2(1000)First thousand characters of the SQL text for the current cursor
SQL_IDVARCHAR2(13)SQL identifier of the parent cursor in the library cache
SHARABLE_MEMNUMBERAmount of shared memory used by a cursor. If multiple child cursors exist, then the sum of all shared memory used by all child cursors.
PERSISTENT_MEMNUMBERFixed amount of memory used for the lifetime of an open cursor. If multiple child cursors exist, the fixed sum of memory used for the lifetime of all the child cursors.
RUNTIME_MEMNUMBERFixed amount of memory required during execution of a cursor. If multiple child cursors exist, the fixed sum of all memory required during execution of all the child cursors.
SORTSNUMBERSum of the number of sorts that were done for all the child cursors
VERSION_COUNTNUMBERNumber of child cursors that are present in the cache under this parent
LOADED_VERSIONSNUMBERNumber of child cursors that are present in the cache and have their context heap (KGL heap 6) loaded
OPEN_VERSIONSNUMBERThe number of child cursors that are currently open under this current parent
USERS_OPENINGNUMBERNumber of users that have any of the child cursors open
FETCHESNUMBERNumber of fetches associated with the SQL statement
EXECUTIONSNUMBERTotal number of executions, totalled over all the child cursors
END_OF_FETCH_COUNTNUMBERNumber 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 END_OF_FETCH_COUNT column should be less or equal to the value of the EXECUTIONS column.
USERS_EXECUTINGNUMBERTotal number of users executing the statement over all child cursors
LOADSNUMBERNumber of times the object was loaded or reloaded
FIRST_LOAD_TIMEVARCHAR2(19)Timestamp of the parent creation time
INVALIDATIONSNUMBERTotal number of invalidations over all the child cursors
PARSE_CALLSNUMBERSum of all parse calls to all the child cursors under this parent
DISK_READSNUMBERSum of the number of disk reads over all child cursors
DIRECT_WRITESNUMBERSum of the number of direct writes over all child cursors
BUFFER_GETSNUMBERSum of buffer gets over all child cursors
APPLICATION_WAIT_TIMENUMBERApplication wait time
CONCURRENCY_WAIT_TIMENUMBERConcurrency wait time
CLUSTER_WAIT_TIMENUMBERCluster wait time
USER_IO_WAIT_TIMENUMBERUser I/O Wait Time
PLSQL_EXEC_TIMENUMBERPL/SQL execution time
JAVA_EXEC_TIMENUMBERJava execution time
ROWS_PROCESSEDNUMBERTotal number of rows processed on behalf of this SQL statement
COMMAND_TYPENUMBEROracle command type definition
OPTIMIZER_MODEVARCHAR2(25)Mode under which the SQL statement was executed
PARSING_USER_IDNUMBERUser ID of the user that has parsed the very first cursor under this parent
PARSING_SCHEMA_IDNUMBERSchema ID that was used to parse this child cursor
KEPT_VERSIONSNUMBERNumber of child cursors that have been marked to be kept using the DBMS_SHARED_POOL package
ADDRESSRAW(4 | 8)Address of the handle to the parent for this cursor
HASH_VALUENUMBERHash value of the parent statement in the library cache
OLD_HASH_VALUENUMBEROld SQL hash value
MODULEVARCHAR2(64)Contains the name of the module that was executing at the time that the SQL statement was first parsed as set by calling DBMS_APPLICATION_INFO.SET_MODULE
MODULE_HASHNUMBERHash value of the module that is named in the MODULE column
ACTIONVARCHAR2(64)Contains the name of the action that was executing at the time that the SQL statement was first parsed as set by calling DBMS_APPLICATION_INFO.SET_ACTION
ACTION_HASHNUMBERHash value of the action that is named in the ACTION column
SERIALIZABLE_ABORTSNUMBERNumber of times the transaction fails to serialize, producing ORA-08177 errors, totalled over all the child cursors
CPU_TIMENUMBERCPU time (in microseconds) used by this cursor for parsing/executing/fetching
ELAPSED_TIMENUMBERElapsed time (in microseconds) used by this cursor for parsing/executing/fetching
IS_OBSOLETEVARCHAR2(1)Indicates whether the cursor has become obsolete (Y) or not (N). This can happen if the number of child cursors is too large.
CHILD_LATCHNUMBERChild latch number that is protecting the cursor
PROGRAM_IDNUMBERProgram identifier

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-83027/,如需轉載,請註明出處,否則將追究法律責任。

相關文章