30.01.2015 Views

Mutexes And Changes in Library Cache - HrOUG

Mutexes And Changes in Library Cache - HrOUG

Mutexes And Changes in Library Cache - HrOUG

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DbProf.<br />

com<br />

<strong>Library</strong> <strong>Cache</strong> Misses (1)<br />

• 2 types of “library cache misses”<br />

– Misses <strong>in</strong> library cache dur<strong>in</strong>g parse -> Misses while look<strong>in</strong>g for<br />

execution plan <strong>in</strong> library cache – this means “Hard parse” - normal<br />

situation<br />

– Misses <strong>in</strong> library cache dur<strong>in</strong>g execute -> Misses while about to<br />

execute the plan and found it miss<strong>in</strong>g/<strong>in</strong>valid <strong>in</strong> library cache<br />

• Reasons for library cache miss dur<strong>in</strong>g execution:<br />

– Statement <strong>in</strong>validation due to some significant change has occurred to<br />

the referenced objects<br />

– Execution plan was flushed from the library cache (and “reloaded”) fairly<br />

frequently due to the demand for free memory<br />

• Execution plans are re-creatable, so they can be flushed from memory even<br />

when the cursor is be<strong>in</strong>g held by the client.<br />

• Investigation to determ<strong>in</strong>e the right cause:<br />

– library cache misses reported <strong>in</strong> SQL trace (10046 trace)<br />

– Exam<strong>in</strong><strong>in</strong>g V$SQL area<br />

www.dbprof.com - © 2012 Jože Senegačnik<br />

Oracle ACE Director<br />

14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!