Session Cursor Cache hit vs. Soft Parses vs. Hard Parses


Jika Anda menjalankan query ini ke DataBase Oracle, Anda akan melihat perilaku sistem caching kursor yang oracle lakukan.

Jumlah dari ketiga nilai pada kolom harus 100%


select
to_char(100 * sess / calls, '999999999990.00') || '%' cursor_cache_hits,
to_char(100 * (calls - sess - hard) / calls, '999990.00') || '%' soft_parses,
to_char(100 * hard / calls, '999990.00') || '%' hard_parses
from
( select value calls from v$sysstat where name = 'parse count (total)' ),
( select value hard from v$sysstat where name = 'parse count (hard)' ),
( select value sess from v$sysstat where name = 'session cursor cache hits' )
/

Jika nilai dari kolom pertama adalah di bawah 80% maka Anda harus meningkatkan nilai parameter session_cached_cursors.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s