-- ssts.sql: session statistics for one SID, filtered by name -- Copyright (c) HASHJOIN. MIT License (https://hashjoin.com/kb/license/) -- https://hashjoin.com/kb/oracle/drill-into-one-session/ -- -- Usage: @ssts.sql -- @ssts.sql 1234 %commit% select n.name,s.value from v$sesstat s , v$statname n where s.STATISTIC#=n.STATISTIC# and name like '&&2' and sid=&&1 /