|
How to find SQL Query statistics in Oracle
Author: Venkata Sudhakar
Oracle exposes a view called v$sql which gives the performance statistics of the queries being run. We can find exact SQL, number of executions and information related to Disk I/O as shown below.
3 | select SQL_ID, SQL_FULLTEXT, EXECUTIONS, PARSE_CALLS, DISK_READS, BUFFER_GETS, CONCURRENCY_WAIT_TIME, USER_IO_WAIT_TIME, ROWS_PROCESSED, CPU_TIME, ELAPSED_TIME, PHYSICAL_READ_BYTES from v$sql; |
|
|