DBA Hub

📋Steps in this guide1/1

Find buffer cache usage

col object_name format a30 col to_total format 999.99

oracle configurationintermediate
by OracleDba
12 views
1

Find buffer cache usage

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
col object_name format a30
col to_total format 999.99
SELECT owner, object_name, object_type, count, (count / value) * 100 to_total
FROM (
SELECT a.owner, a.object_name, a.object_type,
count(*) count
FROM dba_objects a,
x$bh b
WHERE a.object_id = b.obj
and a.owner not in ('SYS', 'SYSTEM')
GROUP BY a.owner, a.object_name, a.object_type
ORDER BY 4),
v$parameter
WHERE name = 'db_cache_size'
AND (count / value) * 100 > .005
ORDER BY to_total desc
/

Comments (0)

Please to add comments

No comments yet. Be the first to comment!