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

本站中文解释

Oracle视囑V$ROWCACHE用于查看数据库缓存中正在被缓存的行,专为Oracle数据库提供缓存管理服务,监控数据库缓存中被缓存的行。该视图使用Oracle内部自动内存管理技术(AMM),跟踪被缓存的行的使用情况,方便管理员进行性能调整与维护。

使用步骤:

1. 首先登录到数据库。

2. 使用SQL指令:SELECT * FROM v$rowcache运行V$ROWCACHE视图,查看数据库缓存当前被缓存的行。

3. 查看视图的列:ADDRESS,KGLHNDL,KGLNAOH,NAMESPACE,NAMESPACE,NFIXEDSCN,CCHSCN,HOLD,CHGIND,CLASS,INDEX,CHGTM。

4. 根据不同场景,可以添加where子句以细化查询结果,如:SELECT * FROM v$rowcache WHERE CLASS = 200;

5. 考察结果,以了解不同场景下缓存的行的使用情况,可以根据行使用情况,调整数据库性能。

官方英文解释

V$ROWCACHE displays statistics for data dictionary activity. Each row contains statistics for one data dictionary cache.

Column Datatype Description

CACHE#

NUMBER

Row cache ID number

TYPE

VARCHAR2(11)

Parent or subordinate row cache type

SUBORDINATE#

NUMBER

Subordinate set number

PARAMETER

VARCHAR2(32)

Name of the initialization parameter that determines the number of entries in the data dictionary cache

COUNT

NUMBER

Total number of entries in the cache

USAGE

NUMBER

Number of cache entries that contain valid data

FIXED

NUMBER

Number of fixed entries in the cache

GETS

NUMBER

Total number of requests for information on the data object

FASTGETS

NUMBER

Reserved for internal use

GETMISSES

NUMBER

Number of data requests resulting in cache misses

SCANS

NUMBER

Number of scan requests

SCANMISSES

NUMBER

Number of times a scan failed to find the data in the cache

SCANCOMPLETES

NUMBER

For a list of subordinate entries, the number of times the list was scanned completely

MODIFICATIONS

NUMBER

Number of inserts, updates, and deletions

FLUSHES

NUMBER

Number of times flushed to disk

DLM_REQUESTS

NUMBER

Number of DLM requests

DLM_CONFLICTS

NUMBER

Number of DLM conflicts

This column is obsolete and is maintained for backward compatibility.

DLM_RELEASES

NUMBER

Number of DLM releases

This column is obsolete and is maintained for backward compatibility.

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$ROWCACHE 官方解释,作用,如何使用详细说明