¶¨Î»ÖØÒª£¨ÏûºÄ×ÊÔ´¶à£©µÄSQLÓï¾ä
1¡¢statspack-- ÔÚÄã¿âÉÏÒµÎñ×îæµÃʱºò×¥15·ÖÖÓµÄreport,¿´ÀïÃæµÄtop sql
1 topÕÒµ½ÏûºÄ×ÊÔ´¶àµÄpid
2 È·¶¨ÊÇoracleµÄÓ¦Óýø³Ì»¹ÊǺǫ́½ø³Ì
3 ¸ù¾Ýv$session,v$process,v$sqlarea¶¨Î»
ÓÃoem´øµÄtop session www.2cto.com
SELECT hash_value, executions, buffer_gets, disk_reads, parse_calls
FROM V$SQLAREA
WHERE buffer_gets > 10000000 OR disk_reads > 1000000
ORDER BY buffer_gets + 100 * disk_reads DESC
×÷Õß ¹ùѧÅô