Answers for "oracle show running queries"

SQL
0

oracle get running queries

SELECT s.SID,
       s.USERNAME,
       sql.OPTIMIZER_MODE,
       sql.CPU_TIME,
       sql.ELAPSED_TIME,
       sql.SQL_TEXT,
       s.SERIAL#
FROM V$SQLAREA sql,
     V$SESSION s
WHERE s.SQL_HASH_VALUE = sql.HASH_VALUE
  AND s.SQL_ADDRESS = sql.ADDRESS
  AND s.USERNAME IS NOT NULL;
Posted by: Guest on January-15-2021
0

oracle show running queries

SELECT s.SID,
       s.USERNAME,
       OPTIMIZER_MODE,
       HASH_VALUE,
       ADDRESS,
       CPU_TIME,
       ELAPSED_TIME,
       SQL_TEXT,
       SERIAL#
FROM V$SQLAREA SQLAREA,
     V$SESSION s
WHERE s.SQL_HASH_VALUE = SQLAREA.HASH_VALUE
  AND s.SQL_ADDRESS = SQLAREA.ADDRESS
  AND s.USERNAME IS NOT NULL;
Posted by: Guest on January-15-2021

Code answers related to "oracle show running queries"

Code answers related to "SQL"

Browse Popular Code Answers by Language