- Oracle en Espanol - Por Francisco Munoz Alvarez - http://oracleenespanol.com -

Informacion de la Library Cache

Posted By fmunoz On 11. April 2008 @ 02:19 In Memoria, Scripts | No Comments

PROMPT
PROMPT ******************************************** LIBRARY CACHE ***********************************************************
PROMPT

COLUMN y new_value sid NOPRINT
SELECT name||’_'||TO_CHAR(sysdate, ‘ddmonyy_hh24miss’) y FROM v$database;

SPOOL library_cache_&sid..txt

BREAK ON HASH_VALUE

SELECT hash_value, sql_text
FROM gv$sqltext
WHERE command_type = 3
ORDER BY 1, piece;

CLEAR BREAKS

SPOOL OFF


Article printed from Oracle en Espanol - Por Francisco Munoz Alvarez: http://oracleenespanol.com

URL to article: http://oracleenespanol.com/2008/04/11/informacion-de-la-library-cache/

Click here to print.