Oracle 视图 V$SQL_CURSOR 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$SQL_CURSOR是用于监视系统内打开的SQL游标的一个可用的数据结构,其中可以查询或显示SQL游标的一般状态。
用法:
1、查看系统内打开的SQL游标状态。
例如,可以使用这个视图查询当前系统内打开的SQL游标:
SELECT * FROM V$SQL_CURSOR;
2、检查会话等执行SQL语句的状态。
例如,假定我们想查看执行sql查询的会话信息:
SELECT SID, SQL_CHILD_NUMBER, SQL_HASH_VALUE, SQL_TEXT
FROM V$SQL_CURSOR
WHERE SESSION_ID=;
可以使用上述语句检查执行查询的会话状态。
官方英文解释
V$SQL_CURSOR
displays debugging information for each cursor associated with the session querying this view.
Column | Datatype | Description |
---|---|---|
|
|
Cursor number |
|
|
Flags set in the cursor |
|
|
Status of the cursor; that is, what state the cursor is in |
|
|
Pointer to the parent cursor handle |
|
|
Pointer to the parent cursor lock |
|
|
Pointer to the child cursor lock |
|
|
Pointer to the child cursor pin |
|
|
Total amount of memory allocated from persistent heap for this cursor |
|
|
Total amount of memory allocated from the work heap for this cursor |
|
|
Total number of bind positions in the query currently parsed into this cursor |
|
|
Total number of define variables in the query currently parsed into this cursor |
|
|
Which memory heap the bind variables are stored in: either the UGA or the CGA |
|
|
Instantiation object flags |
|
|
Instantiation object flags (continued) |
|
|
Pointer to the child cursor handle |
|
|
The ID of the container to which the data pertains. Possible values include:
|