1SELECT s.SID,
2 s.USERNAME,
3 OPTIMIZER_MODE,
4 HASH_VALUE,
5 ADDRESS,
6 CPU_TIME,
7 ELAPSED_TIME,
8 SQL_TEXT,
9 SERIAL#
10FROM V$SQLAREA SQLAREA,
11 V$SESSION s
12WHERE s.SQL_HASH_VALUE = SQLAREA.HASH_VALUE
13 AND s.SQL_ADDRESS = SQLAREA.ADDRESS
14 AND s.USERNAME IS NOT NULL;