Oracle - ディクショナリキャッシュのチューニングAdvertisementSQLで確認
個々のキャッシュを確認
SQL> select parameter, gets, getmisses, 100*(gets-getmisses)/gets 2 from v$rowcache 3 where gets <> 0; PARAMETER GETS GETMISSES 100*(GETS-GETMISSES)/GETS -------------------- ---------- ---------- ------------------------- dc_free_extents 8 1 87.5 dc_segments 39 23 41.025641 dc_tablespaces 15 2 86.6666667 dc_users 61 3 95.0819672 dc_rollback_segments 529 21 96.0302457 dc_objects 381 73 80.839895 dc_global_oids 4 2 50 dc_object_ids 456 45 90.1315789 dc_usernames 46 4 91.3043478 9行が選択されました。 全体を確認
SQL> select (sum(gets-getmisses))/sum(gets) from v$rowcache;
(SUM(GETS-GETMISSES))/SUM(GETS)
-------------------------------
.890012642
85%以上を目標とする
statspackで確認
下記の部分を確認する
Dictionary Cache Stats for DB: ORCL Instance: orcl Snaps: 37 -38
->"Pct Misses" should be very low (< 2% in most cases)
->"Cache Usage" is the number of cache entries being used
->"Pct SGA" is the ratio of usage to allocated size for that cache
Get Pct Scan Pct Mod Final Pct
Cache Requests Miss Reqs Miss Reqs Usage SGA
---------------------- ------------ ------ ------ ----- -------- ---------- ----
dc_object_ids 47 38.3 0 0 159 95
dc_objects 135 40.7 0 0 249 99
dc_segments 58 3.4 0 0 89 95
dc_tablespaces 5 20.0 0 0 3 43
dc_usernames 38 0.0 0 0 5 24
dc_users 54 0.0 0 0 4 27
-------------------------------------------------------------
Advertisement |
ショートカット・634・634ブログ ・このカテゴリのトップページに戻る ・Incubator(Pukiwiki) ・634ラボ UIコレクションギャラリー ZO-3ジェネレーター サイト検索Y!ログール |