Oracle如何查找性能最差的SQL
通过ORACLE提供的底层SQL来查找性能最差的SQL。
SELECT * FROM (
SELECT PARSING_USER_ID
EXECUTIONS,
SORTS,
COMMAND_TYPE,
DISK_READS,
sql_text
FROM v$sqlarea
ORDER BY disk_reads DESC )
WHERE ROWNUM<10 ; –查找前十条性能差的sql