---
title: "数据库缓冲区命中率"
author: "suifeng"
date: "2009-02-11T22:21:37Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2009-02-11T22:21:37Z"
id: 327045
url: "https://pipe-line.iteye.com/blog/327045"
---

```
select 1 - ((select to_number(value)
               from v$sysstat t
              where t.name = 'physical reads') -
       (select to_number(value)
               from v$sysstat t
              where t.name = 'physical reads direct') -
       (select to_number(value)
               from v$sysstat t
              where t.name = 'physical reads direct (lob)')) /
       (select to_number(value)
              from v$sysstat t
             where t.name = 'session logical reads')
  from dual;

```