Oracle Point, Oracle Life.

Most Popular Posts

September 5, 2007

Tuning SGA with scripts (Part 3) - Library Cache

Filed under: OraclePoint — R.Wang @ 4:57 pm

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

in Oracle,

“The library cache includes the shared SQL areas, private SQL areas (in the case of a multiple transaction server), PL/SQL procedures and packages, and control structures such as locks and library cache handles.

Shared SQL areas are accessible to all users, so the library cache is contained in the shared pool within the SGA.”

To tune Library Cache, we also need to calculate GetHit Ratio and PinHit Ratio.

(Script to “Calculate GetHit Ratio and PinHit Ratio of Library Cache”)

Also, reference the scripts offered at http://www.dba-oracle.com/concepts/pinned_objects.htm

There are two scripts useful there.

  • Show Objects Which Should Be Kept
  • use DBMS_SHARED_POOL.KEEP to retain object in library cache

Besides of above, Parse Ratio and Recursive Call Ratio also need to be paid attention to.

(Script for “Calculate Parse Ratio and Recursive Call Ratio of Library Cache”)

Popularity: 5% [?]

Tags:none

One Response to “Tuning SGA with scripts (Part 3) - Library Cache”

  1. R.Wang Says:

    Another helpful scripts for tuning library cache hit ratio is available at http://www.oracledba.co.uk/tips/choose.htm

Leave a Reply

 

Windows Live Translator:

Google