rac sga cache_buffer_size "V$BH"

V$BH:This is a Real Application Clusters view. This view gives the status and number of pings for every buffer in the SGA.
--记录了sga缓冲区中的object及其状态

ColumnDatatypeDescription
FILE#NUMBERDatafile identifier number (to find the filename, query DBA_DATA_FILES or V$DBFILE)
BLOCK#NUMBERBlock number
CLASS#NUMBERClass number
STATUSVARCHAR2(6)Status of the buffer:
  • 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

XNCNUMBERNumber of PCM x to null lock conversions due to contention with another instance. This column is obsolete and maintained for backward compatibility.
LOCK_ELEMENT_ADDRRAW(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_NAMENUMBERThe 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_CLASSNUMBERThe 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.
FORCED_READSNUMBERNumber 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_WRITESNUMBERNumber 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
DIRTYVARCHAR2(1)Y - block modified
TEMPVARCHAR2(1)Y - temporary block
PINGVARCHAR2(1)Y - block pinged
STALEVARCHAR2(1)Y - block is stale
DIRECTVARCHAR2(1)Y - direct block
NEWVARCHAR2(1)Always set to N. This column is obsolete and maintained for backward compatibility.
OBJDNUMBERDatabase object number of the block that the buffer represents
TS#NUMBERTablespace number of block

SQL>  select sum(BLOCK#),status from v$bh group by status;

SUM(BLOCK#) STATUS
----------- ---------------------
1.0537E+11 xcur
1.1988E+10 cr

SQL> alter system flush buffer_cache;

System altered.

SQL> select sum(BLOCK#),status from v$bh group by status;

SUM(BLOCK#) STATUS
----------- ---------------------
    854666 xcur
1.1735E+11 free

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值