|
||||||||||||||||||||||||||||
Oracle and Expert Systems Technology
The data dictionary cache is used to hold rows from the internal Oracle metadata tables, including SQL stored in packages. The data dictionary data is maintained in a separate cache called the dictionary cache which is stored in shared SQL area. This is accessed for each SQL statement at parse time and also at runtime for dynamic storage allocation. Cache hits avoid the necessity for recursive calls and performance on SQL statements improves. When a package is invoked, Oracle first checks the dictionary cache to see if the package is already in memory. Of course, a package will not be in memory the first time it is requested, and Oracle will register a dictionary cache miss. Consequently, it is virtually impossible to have an instance with no dictionary cache misses, because each item must be loaded once. The V$ROWCACHE view is used to measure dictionary cache activity. Three columns are of interest: Data Dict., gets, and getmisses. The first column, Data Dict., describes the type of dictionary object that has been requested. The second parameter, gets, provides the total number of requests for objects of that type. The last column, getmisses, counts the number of times Oracle had to perform a disk I/O to retrieve a row from its dictionary tables. The data dictionary cache hit ratio is used to measure the ratio of dictionary hits to misses. Bear in mind, however, that this ratio is only good for measuring the average hit ratio for the life of the instance. The data dictionary cache hit ratio can be measured using the script shown below. dict.sql - displays the dictionary cache hit ratio PROMPT COLUMN "Data Dict.
Gets"
FORMAT 999,999,999
=========================
Fri Feb 23
page 1
Data Dict. Gets Data Dict. cache misses DATA DICT CACHE HIT
RATIO 1 row selected.
col parameter heading 'Parameter Name'
format a20 justify c trunc
select
Entries Entries Pct
Get Pct Rec'd 30 rows selected. Rec'd Action is based on maintaining >80% Entries Used and <10% Gets
You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts. Click here for more books by Donald K. Burleson.
|
|
Burleson is the American Team
Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals. Feel free to ask questions on our Oracle forum. Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications. Errata? Oracle technology is changing and we strive to update our BC Oracle support information. If you find an error or have a suggestion for improving our content, we would appreciate your feedback. Just e-mail:
Copyright © 1996 - 2020 All rights reserved by Burleson Oracle ®
is the registered trademark of Oracle Corporation.
|