【转】V$SQL
来源:互联网 发布:js作用域链面试题 编辑:程序博客网 时间:2024/06/05 16:57
V$SQL
V$SQL
lists statistics on shared SQL area 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.
SQL_TEXT
VARCHAR2(1000)
First thousand characters of the SQL text for the current cursorSQL_FULLTEXT
CLOB
Full text for the SQL statement exposed as a CLOB
column. The full text of a SQL statement can be retrieved using this column instead of joining with the V$SQL_TEXT
dynamic performance view.SQL_ID
VARCHAR2(13)
SQL identifier of the parent cursor in the library cacheSHARABLE_MEM
NUMBER
Amount of shared memory used by the child cursor (in bytes)PERSISTENT_MEM
NUMBER
Fixed amount of memory used for the lifetime of the child cursor (in bytes)RUNTIME_MEM
NUMBER
Fixed amount of memory required during the execution of the child cursorSORTS
NUMBER
Number of sorts that were done for the child cursorLOADED_VERSIONS
NUMBER
Indicates whether the context heap is loaded (1
) or not (0
)OPEN_VERSIONS
NUMBER
Indicates whether the child cursor is locked (1
) or not (0
)USERS_OPENING
NUMBER
Number of users executing the statementFETCHES
NUMBER
Number of fetches associated with the SQL statementEXECUTIONS
NUMBER
Number of executions that took place on this object since it was brought into the library cachePX_SERVERS_EXECUTIONS
NUMBER
Total number of executions performed by Parallel eXecution Servers. The value is 0 when the statement has never been executed in parallel.END_OF_FETCH_COUNT
NUMBER
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 END_OF_FETCH_COUNT
column should be less or equal to the value of the EXECUTIONS
column.USERS_EXECUTING
NUMBER
Number of users executing the statementLOADS
NUMBER
Number of times the object was either loaded or reloadedFIRST_LOAD_TIME
VARCHAR2(19)
Timestamp of the parent creation timeINVALIDATIONS
NUMBER
Number of times this child cursor has been invalidatedPARSE_CALLS
NUMBER
Number of parse calls for this child cursorDISK_READS
NUMBER
Number of disk reads for this child cursorDIRECT_WRITES
NUMBER
Number of direct writes for this child cursorBUFFER_GETS
NUMBER
Number of buffer gets for this child cursorAPPLICATION_WAIT_TIME
NUMBER
Application wait time (in microseconds)CONCURRENCY_WAIT_TIME
NUMBER
Concurrency wait time (in microseconds)CLUSTER_WAIT_TIME
NUMBER
Cluster wait time (in microseconds)USER_IO_WAIT_TIME
NUMBER
User I/O Wait Time (in microseconds)PLSQL_EXEC_TIME
NUMBER
PL/SQL execution time (in microseconds)JAVA_EXEC_TIME
NUMBER
Java execution time (in microseconds)ROWS_PROCESSED
NUMBER
Total number of rows the parsed SQL statement returnsCOMMAND_TYPE
NUMBER
Oracle command type definitionOPTIMIZER_MODE
VARCHAR2(10)
Mode under which the SQL statement is executedOPTIMIZER_COST
NUMBER
Cost of this query given by the optimizerOPTIMIZER_ENV
RAW(691)
Optimizer environmentOPTIMIZER_ENV_HASH_VALUE
NUMBER
Hash value for the optimizer environmentPARSING_USER_ID
NUMBER
User ID of the user who originally built this child cursorPARSING_SCHEMA_ID
NUMBER
Schema ID that was used to originally build this child cursorPARSING_SCHEMA_NAME
VARCHAR2(30)
Schema name that was used to originally build this child cursorKEPT_VERSIONS
NUMBER
Indicates whether this child cursor has been marked to be kept pinned in the cache using the DBMS_SHARED_POOL
packageADDRESS
RAW(4 | 8)
Address of the handle to the parent for this cursorTYPE_CHK_HEAP
RAW(4)
Descriptor of the type check heap for this child cursorHASH_VALUE
NUMBER
Hash value of the parent statement in the library cacheOLD_HASH_VALUE
NUMBER
Old SQL hash valuePLAN_HASH_VALUE
NUMBER
Numerical representation of the SQL plan for this cursor. Comparing one PLAN_HASH_VALUE
to another easily identifies whether or not two plans are the same (rather than comparing the two plans line by line).CHILD_NUMBER
NUMBER
Number of this child cursorSERVICE
VARCHAR2(64)
Service nameSERVICE_HASH
NUMBER
Hash value for the name listed in SERVICE
MODULE
VARCHAR2(64)
Contains the name of the module that was executing at the time that the SQL statement was first parsed, which is set by calling DBMS_APPLICATION_INFO
.SET_MODULE
MODULE_HASH
NUMBER
Hash value of the module listed in the MODULE
columnACTION
VARCHAR2(64)
Contains the name of the action that was executing at the time that the SQL statement was first parsed, which is set by calling DBMS_APPLICATION_INFO
.SET_ACTION
ACTION_HASH
NUMBER
Hash value of the action listed in the ACTION
columnSERIALIZABLE_ABORTS
NUMBER
Number of times the transaction fails to serialize, producing ORA-08177
errors, per cursorOUTLINE_CATEGORY
VARCHAR2(64)
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
NUMBER
CPU time (in microseconds) used by this cursor for parsing, executing, and fetchingELAPSED_TIME
NUMBER
Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetchingOUTLINE_SID
NUMBER
Outline session identifierCHILD_ADDRESS
RAW(4 | 8)
Address of the child cursorSQLTYPE
NUMBER
Denotes the version of the SQL language used for this statementREMOTE
VARCHAR2(1)
Indicates whether the cursor is remote mapped (Y
) or not (N
)OBJECT_STATUS
VARCHAR2(19)
Status of the cursor: VALID
- Valid, authorized without errorsVALID_AUTH_ERROR
- Valid, authorized with authorization errorsVALID_COMPILE_ERROR
- Valid, authorized with compilation errorsVALID_UNAUTH
- Valid, unauthorizedINVALID_UNAUTH
- Invalid, unauthorizedINVALID
- Invalid, unauthorized but keep the timestamp
LITERAL_HASH_VALUE
NUMBER
Hash value of the literals which are replaced with system-generated bind variables and are to be matched, when CURSOR_SHARING
is used. This is not the hash value for the SQL statement. If CURSOR_SHARING
is not used, then the value is 0.LAST_LOAD_TIME
VARCHAR2(19)
Time at which the query plan (heap 6) was loaded into the library cacheIS_OBSOLETE
VARCHAR2(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_LATCH
NUMBER
Child latch number that is protecting the cursorSQL_PROFILE
VARCHAR2(64)
SQL profilePROGRAM_ID
NUMBER
Program identifierPROGRAM_LINE#
NUMBER
Program line numberEXACT_MATCHING_SIGNATURE
NUMBER
Signature calculated on the normalized SQL text. The normalization includes the removal of white space and the uppercasing of all non-literal strings.FORCE_MATCHING_SIGNATURE
NUMBER
The signature used when the CURSOR_SHARING
parameter is set to FORCE
LAST_ACTIVE_TIME
DATE
TIme at which the query plan was last activeBIND_DATA
RAW(2000)
Bind data原文地址:http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2113.htm
- 【转】V$SQL
- v$sqltext,v$sql
- v$sql v$sql_plan
- [转]v$sqlarea,v$sql,v$sqltext提供的sql语句区别?
- oracle系统表v$session、v$sql字段说明(转)
- v$sql,v$sqlarea,v$sqltext区别
- v$sqltext,v$sql,v$sqlarea 区别
- 研究v$sqlarea,V$SQL,V$SQLTEXT
- v$sqltext-----v$sqlare-----v$sql区别
- learning v$ view-> v$sql & V$sql_plan
- V$SQL,V$SQLAREA,V$SQLTEXT
- v$sql , v$sqlarea,v$sqltext 区别
- V$SQL,V$SQLAREA,V$SQLTEXT
- v$sql、v$sqlarea 、v$sqltext
- V$SQL,V$SQLAREA,V$SQLTEXT
- V$SQL,V$SQLAREA,V$SQLTEXT
- v$sql和v$sqlarea
- v$sql,v$sqlarea,v$sqltext 和 v$sql_plan 说明
- 页面刷新
- oracle行列转换(转)
- 韩寒怎么看待三枪这部电影
- 1.flex工程报错出现每次打开窗口的时候都会弹出一个窗口提示错误,提示“a problem has occurred when opening project "your project name",try to restart the applicat
- head refresh 网络协议:RFC2961 - RSVP Refresh Overhead Reduction Extensions
- 【转】V$SQL
- [JQUERY] 宏观欣赏
- struts Logic标签
- 归并排序算法
- ExtJs2.0学习系列(14)--Ext.TreePanel之第三式(可增删改的树)
- 如何使用CBO,CBO与RULE的区别?
- FTP 的主動模式( active )和被動模式( passive )
- JSP中文乱码解决方案-Tomcat5.0版
- DOTNET开发过程中加入静态的文件碎片