Oracle 视图 V$SYSTEM_CURSOR_CACHE 官方解释,作用,如何使用详细说明

本站中文解释

Oracle视图V$SYSTEM_CURSOR_CACHE(系统光标缓存)用来显示当前正在使用的光标的状态和信息,如果程序正在使用光标来运行,那么在该视图中都可以找到,它显示出在当前会话中执行的 SQL 语句的重用状况。

使用Oracle视图V$SYSTEM_CURSOR_CACHE的方法如下:

1、可以使用SELECT语句来查询Oracle数据库,以检查V$SYSTEM_CURSOR_CACHE;

2、也可以使用以下语句来查看:

SELECT * FROM V$SYSTEM_CURSOR_CACHE;

3、可以使用以下语句来查看特定会话:

SELECT * FROM V$SYSTEM_CURSOR_CACHE WHERE SESSION_ADDR =(会话地址);

官方英文解释

V$SYSTEM_CURSOR_CACHE displays system wide information on cursor usage.

See Also:

“V$SESSION_CURSOR_CACHE”

Column Datatype Description

OPENS

NUMBER

Cumulative total of cursor opens

HITS

NUMBER

Cumulative total of cursor open hits

HIT_RATIO

NUMBER

Ratio of the number of times an open cursor was found divided by the number of times a cursor was sought

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data


数据运维技术 » Oracle 视图 V$SYSTEM_CURSOR_CACHE 官方解释,作用,如何使用详细说明