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

本站中文解释

视图

Oracle V$CACHE_TRANSFER视图用于检查在数据库文件缓存中执行的缓存传输操作。它包括以下信息:传输操作的源文件ID,目标文件ID,传输数据量,状态等。

要使用这个视图,用户应该简单地查询这个视图,检查正在执行的传输操作:

SELECT
scn,src_file#,des_file#,transfer_blocks_per_second
FROM v$cache_transfer;

有时用户也可以同时选择其他字段,比如“传输状态”字段,来查看传输操作的情况。

官方英文解释

V$CACHE_TRANSFER is identical to the V$CACHE view but only displays blocks that have been pinged at least once.

This view contains information from the block header of each block in the SGA of the current instance as related to particular database objects. This is an Oracle Real Application Clusters view.

Column Datatype Description

FILE#

NUMBER

Data file identifier number (to find the file name, query DBA_DATA_FILES or V$DBFILE)

BLOCK#

NUMBER

Block number

CLASS#

NUMBER

Class number

STATUS

VARCHAR2(10)

Status of the block:

  • free – Not currently in use

  • xcur – Exclusive

  • scur – Shared current

  • cr – Consistent read

  • read – Being read from disk

  • mrec – In media recovery mode

  • irec – In instance recovery mode

XNC

NUMBER

Number of PCM lock conversions due to contention with another instance. This column is obsolete and maintained for backward compatibility.

FORCED_READS

NUMBER

Number of times the block had to be reread from the cache because another instance has forced it out of this instance’s cache by requesting the lock on the block in exclusive mode

FORCED_WRITES

NUMBER

Number of times GCS had to write this block to cache because this instance had used the block and another instance had requested the lock on the block in a conflicting mode

NAME

VARCHAR2(128)

Name of the database object containing the block

PARTITION_NAME

VARCHAR2(128)

NULL for nonpartitioned objects

KIND

VARCHAR2(15)

Type of database object

See Also: Table 9-1

OWNER#

NUMBER

Owner number

LOCK_ELEMENT_ADDR

RAW(4 | 8)

Address of the lock element that contains the PCM lock that is covering the buffer. If more than one buffer has the same address, then these buffers are covered by the same PCM lock.

LOCK_ELEMENT_NAME

NUMBER

The name of the lock that contains the PCM lock that is covering the buffer

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

See Also:

“V$CACHE”


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