By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
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
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.