Ask the Expert

What criteria determines when code should be pinned?

What criteria determines when code should be pinned? Using the following SQL do I pin those with the most loads? Runs? Or some other criteria?
SELECT Owner, Name, Type, Sharable_mem, Loads, Kept, Executions, Locks,
Pins   FROM v$db_object_cache  WHERE type in ('PROCEDURE','PACKAGE 
BODY', 'PACKAGE', 'FUNCTION', 'TRIGGER', 'SEQUENCE')
ORDER BY 5
DESC

    Requires Free Membership to View

Choose to pin objects based first on number of executions and second on size (sharable_mem). If two objects have the same number of executions and you must choose between them, pin the larger of the two.

This was first published in December 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: